This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Leaflet properties Routing and Locate does not exist

0

I have installed using npm the plugins for routing and location for leaflet (that are leaflet-routing-machine and leaflet-locatecontrol), then imported in my typescript file this way:

 import { locatecontrol, locationfound, locate} from 'leaflet.locatecontrol'
 import { Routing} from "leaflet-routing-machine"

However, if I do L.control.locate() or L.Routing it tells me that, respectively, locate() cannot be found as a property and Routing does not exist.
Am I missing something to import or things like that?

asked 24 Aug '17, 14:18

PachiEPap's gravatar image

PachiEPap
11334
accept rate: 0%

Source code available on GitHub .