You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I trigger either of the two above functions there's a definite delay with the responsiveness of the geocoder component and the map + marker. Is there some sort of delay that when the component turns visible?
If this helps, when I use a source layer instead of marker to display a point, there is zero lag/delay in updating it. I do this just by setting the data for the source to a point value mapRef.value?.getSource('search-result').setData(searchResultGeojson.value);
My guess is that this is due to the marker component rendering and the source option above works because it's already rendered and I'm just updating the data for it??
Fairly new to Nuxt so please let me know if I'm doing something wrong!
Many thanks
The text was updated successfully, but these errors were encountered:
I've found a workaround which is to set the lnglat of the marker initially to any co-ordinates and then update it using useMapboxMarker composable before making it visible with v-if. Hope this helps narrow down the issue!
Hey there,
I'm trying to use the MapboxDefaultMarker component to place a result on the map from a custom geocoder result.
My code is something similar to the below:
When I trigger either of the two above functions there's a definite delay with the responsiveness of the geocoder component and the map + marker. Is there some sort of delay that when the component turns visible?
If this helps, when I use a source layer instead of marker to display a point, there is zero lag/delay in updating it. I do this just by setting the data for the source to a point value
mapRef.value?.getSource('search-result').setData(searchResultGeojson.value);
My guess is that this is due to the marker component rendering and the source option above works because it's already rendered and I'm just updating the data for it??
Fairly new to Nuxt so please let me know if I'm doing something wrong!
Many thanks
The text was updated successfully, but these errors were encountered: