leaflet-material
leaflet-material copied to clipboard
I am getting this error in the console and you can not start the map
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);