perliedman / leaflet-control-geocoder

A simple geocoder form to locate places. Easily extended to multiple data providers.
http://www.liedman.net/leaflet-control-geocoder/
BSD 2-Clause "Simplified" License
560 stars 220 forks source link

Allow function overwrite for markGeocode #256

Closed jtraub91 closed 5 years ago

jtraub91 commented 5 years ago

I added a simple one line modification that I am using for my own purposes. It keeps current functionality intact while also allowing a function to passed in to overwrite the default markGeocode function, in case the developer needs to incorporate more specific functionality.

Please pull if you think this is a worthwhile addition. I'd be happy to update the documentation accordingly.

simon04 commented 5 years ago

Custom markgeocode handling is already supported, see https://github.com/perliedman/leaflet-control-geocoder#customizing