smeijer / leaflet-geosearch

A geocoding/address-lookup library supporting various api providers.
https://smeijer.github.io/leaflet-geosearch/
MIT License
1.03k stars 273 forks source link

support laravel 7? #237

Closed destiaarti closed 3 years ago

destiaarti commented 3 years ago

can this package support laravel?if i see this , more support react

smeijer commented 3 years ago

I don't see why not. It's a leaflet plugin, it doesn't come with react components either.

ozilion commented 3 years ago

I don't see why not. It's a leaflet plugin, it doesn't come with react components either.

But your eaxamples in readme uses React syntax! I am trying your plugin with pure PHP + jQuery but can't use your examples.

yznts commented 3 years ago

@ozilion Sorry, guy, but I don’t see React syntax here. Only in docs (this is not related to the library itself). I’m using this library in Vue.js project. Maybe you’re talking about ES6? Or you can’t rich needed functionality with CDN distribution, without bundler? Please, describe your problem in details. If you are getting any troubles, you can just use providers functionality directly.

ozilion commented 3 years ago

Ah sorry my fault yes it's ES6 syntax. Somehow I managed to change search provider to Google and added search input control to map but it can't bring any result. Using OpenStreetMapProvider searching input control being added and can auto search as i write but when I click one of search results it give "Uncaught (in promise) TypeError: can't convert undefined to object" at SearchControl.ts:412:27 I am using CDN links of leaflet v1.7.1 and geosearch v3.0.0

yznts commented 3 years ago

Please, try the latest release (3.0.5 at this moment). Some issues may appear for earlier builds only. If that issue will not be resolved, I'll explore it in details.

smeijer commented 3 years ago

I'm going to close this issue. Please feel free to open a new issue, if the TypeError also occurs in the latest version.