项目作者: Airport-Discovery

项目描述 :
Airport runways diagram based on Geo Coordinates 📍 for React.
高级语言: JavaScript
项目地址: git://github.com/Airport-Discovery/airport-diagram.git
创建时间: 2020-12-31T07:14:06Z
项目社区:https://github.com/Airport-Discovery/airport-diagram

开源协议:MIT License

下载


Airport Diagram

Airport runways diagram based on Geo Coordinates 📍 for React.

alt mxp

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

  1. import { Airport, Runway, RunwayId } from '@airport-discovery/airport-diagram';
  2. import '@airport-discovery/airport-diagram/lib/styles.css';
  1. <Airport>
  2. <Runway
  3. startingGeoPoint={{
  4. lat: 45.650384,
  5. long: 8.727896,
  6. }}
  7. endingGeoPoint={{
  8. lat: 45.61575,
  9. long: 8.73749722,
  10. }}
  11. >
  12. <RunwayId name={`17L`} pattern={`left`} ></RunwayId>
  13. <RunwayId name={`35R`} pattern={`right`} ></RunwayId>
  14. </Runway>
  15. </Airport>

Development

yarn start

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

Developers

Credits

License

MIT ©