kajic / leaflet-locationfilter

Leaflet location filter
MIT License
56 stars 38 forks source link

Move this._layer initialization to _initialDraw #14

Closed jfirebaugh closed 11 years ago

jfirebaugh commented 11 years ago

This fixes a bug where, when the location filter was added, removed, and re-added to a map, it would not display. This happened because the re-add would reinitialize this._layer but not call _initialDraw, which sets up this._layer.

kajic commented 11 years ago

Thanks for the fix!