Closed frolody closed 7 years ago
don't use minfized version to debugging.. try to use expanded version of plugin: /src/leaflet-search.js
@stefanocudini now error like this :
Uncaught TypeError: m.getLatLng is not a function
at leaflet-search.js:578
at eachLayer (leaflet.js:7)
at e.
if just use one geojson file, search control is work. if i combine both, error show like above.
this error is caused from you old version of plugin.. try to upgrade to te the last version: https://github.com/stefanocudini/leaflet-search/blob/master/src/leaflet-search.js#L578
@stefanocudini Thanks sir, works like a charm
hi @frolody you can try mny new platform http://keplerjs.io/ ;-)
Show error : Uncaught TypeError: a.getLatLng is not a function at leaflet-search.min.js:17 at eachLayer (leaflet.js:7) at e. (leaflet-search.min.js:17)
at eachLayer (leaflet.js:7)
at e._recordsFromLayer (leaflet-search.min.js:17)
at e._fillRecordsCache (leaflet-search.min.js:17)
at leaflet-search.min.js:17