ionic start demoMapApp --type=angular
ionic generate page pages/map-routing
ionic generate page pages/map-polygon
ionic generate component components/rmap
ionic generate component components/pmap
npm install leaflet
npm install leaflet-routing-machine
in [login to view URL]
import Leaflet from 'leaflet';
Ok. If you know Ionic 4 and Leaflet library for import OSM maps, i think you understand from CLI commands, what i need.
I want get demo Ionic 4 demo app with 2 pages.
- First page must demonstrate map with polygon.
- Second page must demonstrate routing, path with coordinates A and B.