ebrelsford / Leaflet.loading

A simple loading control for Leaflet
MIT License
143 stars 49 forks source link

no method 'eachLayer' #11

Closed bwyss closed 11 years ago

bwyss commented 11 years ago

When I add the loading control to my map I am getting:

Uncaught TypeError: Object [object Object] has no method 'eachLayer'

var map = new L.Map('full-map', { scrollWheelZoom: false, minZoom: 2, attributionControl: false, loadingControl: true });

ebrelsford commented 11 years ago

@bwyss which version of Leaflet are you using? The examples are using 0.6.3 and we've only been testing against the most recent versions since that's what we use.

We could potentially support older versions if there's a compelling reason to.

bwyss commented 11 years ago

I have updated my version of leaflet to 0.6.4 and the feature works. Even though it is working, I am getting "Uncaught TypeError: Object # has no method 'split'"

ebrelsford commented 11 years ago

Glad it's working for you now. This plugin doesn't use a method named split. Is the error coming from somewhere else?

ebrelsford commented 11 years ago

@bwyss I'm going to close this, but let us know if something else comes up. Hope it's working fine for you now.