Skip to content
This repository has been archived by the owner on May 14, 2021. It is now read-only.

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

Open
clopezpro opened this issue Oct 18, 2017 · 0 comments
Open

Comments

@clopezpro
Copy link

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);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant