Replies: 1 comment 1 reply
-
|
sourceLayer isn't relevant with a geojson source, as geojson doesn't have layers. Otherwise, your first example looks correct to me. How are you creating this MapUiState? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to display custom icons on the map using a
SymbolLayersourced from aGeoJsonSource. The GeoJSON data is fetched dynamically from a network based on the map's viewport.My initial setup used a static GeoJSON file from assets, and it worked correctly. However, when switching to dynamic data fetching and updating the
GeoJsonSourcewithrememberGeoJsonSource(GeoJsonData.Features(...)), the icons do not appear on the map, even though the data is fetched correctly.What am I doing wrong?
Here's what I've tried:
I don't use bbox and zoom from
getFeaturessince I fetch data based on geohashes (I wanted to cache responses) and calculate geohash fromcameraStatelike this:Beta Was this translation helpful? Give feedback.
All reactions