leaflet-material icon indicating copy to clipboard operation
leaflet-material copied to clipboard

I am getting this error in the console and you can not start the map

Open clopezpro opened this issue 8 years ago • 0 comments

I'm using leaflet with openstreet map, the erro is

leaflet.js:6 Uncaught TypeError: Cannot read property '_leaflet_id' of undefined at Object.o.Util.stamp (leaflet.js:6) at Object.addListener (leaflet.js:8) at e._addZoomFunction (leaflet-material.min.js:1) at e.onAdd (leaflet-material.min.js:1) at e.addTo (leaflet.js:9)

my code var materialOptions = { fab: true, miniFab: true, rippleEffect: true, toolTips: false, color: 'primary' }

var map = L.map('regularMap').setView([mycoord, mycoord], 14);

var materialZoomControl = new L.materialControl.Zoom({position: 'topright', materialOptions: materialOptions}).addTo(map);

clopezpro avatar Oct 18 '17 14:10 clopezpro