-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[Android] Layer symbol changes with the zoom #9975
Comments
@paulVulog could you share some code how you are changing the icon? |
Hi @tobrun , I use the same kind of code :
Then I just change the "is_selected" property and I reload the layer. E.G:
However, I notice the same issue on a simple symbol layer.
and updated by
In addition, let me know if you have a better way to achieve what I want to do :
|
The best way to achieve this is using a token that refers to a key in your geojson (eg. An example of this can be found in the mapbox-android-demo app: eg. the images shown in gif below are being shown with a single layer: (the cluster items are seperate):
I will work on adding an example of this to the mentioned example here |
I updated our zoom function example #9987 with UX requested. Didn't run into any of the mentioned issues. So I'm going to close this as non-reproducible. Feel free to add more context or create any follow up issues. re. showing user location, feel free to check out our locaiton layer plugin that uses layers/sources to do the same. You might find the code there usefull to 👀. See here. |
Thanks for all the information and links. I will have a look and perhaps have a try with simple Markers too. |
The same issue |
Guys, I have an issue related to this topic. I'm trying to prepare an Activity with Symbols dependent of zoom but it seems to be a problem with but in both cases I have an error like:
Thanks for help! |
@mpuchala Per documentation, "The output type must be |
Hi,
from time to time, I have issue with my symbol layers.
When I change the zoom from one level to another, my layer display either the current state or the old state. (The big marker is one unique layer. I only change the marker icon. The blue direction is another layer)
Below are two captures taken with the same application state but at a slightly different zoom level :
Is it a known issue ? I am not able to find any comments about it. I can explain my code as needed.
(Mapbox 5.1.3)
Thanks.
The text was updated successfully, but these errors were encountered: