Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a possibility to use this without a map? #243

Open
Bowis opened this issue Sep 7, 2021 · 5 comments
Open

Is there a possibility to use this without a map? #243

Bowis opened this issue Sep 7, 2021 · 5 comments

Comments

@Bowis
Copy link

Bowis commented Sep 7, 2021

MapBox has the example at: https://docs.mapbox.com/mapbox-gl-js/example/mapbox-gl-geocoder-no-map/ where the input is used without a map, is this in any way possible with this plugin?

@thopiddock
Copy link

thopiddock commented Sep 7, 2021

Yes. It's literally the example. Forgive me, but I'm not sure what you're trying to do that is any different to what you see in that link.

You just import the script using the CDN link as in the example, then bind a new geocoder instance to a div of your choice and handle the event for the result in whatever way you want.

@Bowis
Copy link
Author

Bowis commented Sep 7, 2021

@thopiddock I meant with the use of the VueMapbox plugin, so that I can use the components from this plugins. I am able to read and understand hte given example, i merely was looking for another way to handle the event handlers in a more Vue manner.

@thopiddock
Copy link

Aha! That makes sense:

https://github.com/soal/vue-mapbox-geocoder

@hamzaafzal9009
Copy link

@Bowis are you able to use geocoder without the map?

@Bowis
Copy link
Author

Bowis commented Dec 20, 2021

@Bowis are you able to use geocoder without the map?

yes, I was

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants