-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Adding MGLRasterStyleLayer on map is not refreshing until we pan the map. #10160
Comments
Hi, @ThiyagarajanShivSankaran. Thank you for using Mapbox. Looking at the source code you provided I realized that the source is added but raster layer. If you add this line it will work: The full example should be:
I tried this code with 3.6.4 and 3.7.0-beta.1 and works as expected.
Let me know if this helps. |
Hi @fabian-guerra thank you for the reply , Actually I have missed the line while copying and pasting. Now edited the above code snippet. Also, updated the steps to reinvent the issue can you look at that, Thanks, |
Hi, @ThiyagarajanShivSankaran. Thank you for updating the example. I tried the sample code you provided and I still don't get any problem.
I'm loading the style in: |
Hi @fabian-guerra adding raster style in: Look at the below steps to reinvent,
If you are unable to reinvent just reply me. I will try to upload a video, Thanks. |
Hi, @ThiyagarajanShivSankaran. Thank you for providing the steps to reproduce the error. Now I see what is happening. I am going to track down the problem. |
@jfirebaugh could you please take a look. |
@jfirebaugh this is the code sample to reproduce the problem.
This must be called outside |
@fabian-guerra Sure -- can you please push a branch with the code that reproduces the issue? |
Oops, didn't see your latest comment! |
@jfirebaugh no worries if it's more useful I made this branch that reproduces the problem. https://github.com/mapbox/mapbox-gl-native/tree/fabian-load-style-10160 Tap on Add Style and pan the map. |
Platform: IOS
Mapbox SDK version: ios-v3.7.0-beta.1
Steps to trigger behavior
MGLRasterStyleLayer
.MGLRasterStyleLayer
on map is not refreshing until we pan the map.Expected behavior
MGLRasterStyleLayer
should add on map.Actual behavior
Here is how I am adding
MGLRasterStyleLayer
on map,The same is working in older version of SDK.
The text was updated successfully, but these errors were encountered: