kajic / leaflet-locationfilter

Leaflet location filter
MIT License
56 stars 38 forks source link

Make buttons optional and translatable #7

Closed jfirebaugh closed 12 years ago

jfirebaugh commented 12 years ago

For example, passing the {adjustButton: false} option will disable the button entirely. The button text can be customized by passing {adjustButton: {text: "Text"}}, e.g. for translating it into other languages.

As a follow up, make enable/disable public, so that LocationFilter can be enabled/disabled when the buttons are not being used.