vue-mapbox icon indicating copy to clipboard operation
vue-mapbox copied to clipboard

Is there a possibility to use this without a map?

Open Bowis opened this issue 3 years ago • 5 comments

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?

Bowis avatar Sep 07 '21 15:09 Bowis

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.

thopiddock avatar Sep 07 '21 21:09 thopiddock

@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.

Bowis avatar Sep 07 '21 21:09 Bowis

Aha! That makes sense:

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

thopiddock avatar Sep 07 '21 23:09 thopiddock

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

hamzaafzal9009 avatar Dec 14 '21 13:12 hamzaafzal9009

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

yes, I was

Bowis avatar Dec 20 '21 15:12 Bowis