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

Cannot extend L.Control.Geocoder since version 2.0.0 #324

Open bagage opened 3 years ago

bagage commented 3 years ago

Previously we could extend Geocoder using ExtendedGeocoder = L.Control.Geocoder.extend({}) but it seems it doesn't work anymore:

Uncaught TypeError: L.Control.Geocoder.extend is not a function

Here is a demo of the issue (it works in 1.13.0, it doesn't in 2.X.X).

Am I doing something wrong? Nonetheless thanks for the great library!