JSPM

@airport-discovery/airport-diagram

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 17
  • Score
    100M100P100Q72080F
  • License MIT

Airport runways diagram based on Geo Coordinates 📍 for React.

Package Exports

  • @airport-discovery/airport-diagram

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@airport-discovery/airport-diagram) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Airport Diagram

Airport runways diagram based on Geo Coordinates 📍 for React.

Please read the documentation and check out the demo for more usage instructions.

Installation

yarn

yarn add @airport-discovery/airport-diagram

npm

yarn add @airport-discovery/airport-diagram

Documentation

Please read the documentation and check out the demo for more usage instructions.

Usage

import { Airport, Runway, RunwayId } from '@airport-discovery/airport-diagram';
import '@airport-discovery/airport-diagram/lib/styles.css';
<Airport>
  <Runway
    startingGeoPoint={{
      lat: 45.650384,
      long: 8.727896,
    }}
    endingGeoPoint={{
      lat: 45.61575,
      long: 8.73749722,
    }}
  >
    <RunwayId name={`17L`} pattern={`left`} />
    <RunwayId name={`35R`} pattern={`right`} />
  </Runway>
</Airport>

Development

yarn start

Then go to http://localhost:4000 where you can see the documentation and test the modifications.

Developers

Credits

License

MIT ©