Closed agracia-foticos closed 1 year ago
There isnt an example in the documentation https://github.com/AlexLavoie42/Nuxt-Mapbox
Can you give me an example?
Add it the same way the rest of the controls are added.
<MapboxMap>
<MapboxLayer
source-id="{ID}"
:source="{
type: 'geojson',
data: '/test.geojson'
}"
:layer="{
source: '{ID}',
id: 'geojson-layer',
type: 'fill'
}"
/>
<MapboxGeocoder />
</MapboxMap>
Add it the same way the rest of the controls are added.
<MapboxMap> <MapboxLayer source-id="{ID}" :source="{ type: 'geojson', data: '/test.geojson' }" :layer="{ source: '{ID}', id: 'geojson-layer', type: 'fill' }" /> <MapboxGeocoder /> </MapboxMap>
But i need Mapboxgeocoder without MapboxMap
I need this example https://docs.mapbox.com/mapbox-gl-js/example/mapbox-gl-geocoder-no-map/
@AlexLavoie42 we can use MapboxGeocoder without mapbox like this example?? https://docs.mapbox.com/mapbox-gl-js/example/mapbox-gl-geocoder-no-map/
It is being added when I release the next update with CustomGeocoder
You can demo it now on v1.3.5-dev.1
Added in #28
Add MapboxGeocoder to module