You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe i am not implementing it the right way,
i have managed to install the plugin as guided. I can show the map and pins on the screen but when i call navigatoTo method i get this: ERROR TypeError: Cannot read property 'navigateTo' of undefined
Hi,
Maybe i am not implementing it the right way,
i have managed to install the plugin as guided. I can show the map and pins on the screen but when i call navigatoTo method i get this: ERROR TypeError: Cannot read property 'navigateTo' of undefined
Here is the whole method.
ionViewDidLoad() {
this.map = L.map("mapi").fitWorld();
L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attributions: '',
maxZoom: 18,
id: 'mapbox.streets',
}).addTo(this.map);
this.map.locate({
setView: true,
maxZoom: 10,
enableHighAccaracy: true
}).on('locationfound', (e) => { this.map.directions.navigateTo('41.322223', '19.842798');
}
Best regards,
Fatjoni
The text was updated successfully, but these errors were encountered: