ThinkGeo.com    |     Documentation    |     Premium Support

Blazor zooming or panning my icons and shapes redraw

BaseMap.zip (329.2 KB)

See the attached source. When zooming in and out or panning my icons and shapes redraw. This causes them to flash and is distracting. I initially removed all references to RedrawAsync, which caused other issues but did not fix the problem.

Thanks,
James R.

Hi James,

Thanks for the sample project!

It turned out to be a bug on our side, and has been fixed in the latest beta122. Your explicit RedrawAsync calls now keep working exactly as before for pushing data changes to the map, so no code changes are needed on your side.

Thanks,
Ben

Thanks Ben it works great. We had a demo last week and it was mentioned, so I played with for a bit Friday to see if it was something I could fix.

James R.

Ben,

I did notice something. When you scroll in with the mouse wheel before the icons are totally resized, the smaller version is ghosted on top of the previous icon. This is particularly noticeable with the white icons. Same source works with then beta 122. See the attached video in the zip file.
Thanks,
James R.

Resize delay.zip (3.4 MB)

Hi James,

Thanks for the video! It’s recreated and fixed in 15.0.0-beta123. No code changes are needed on your side.

Cause: On a transparent overlay like your LayerOverlay, the newly arrived tile was being blended over that scaled-up preview instead of replacing it. So for as long as any neighbouring tile was still loading, both copies of the icon were on screen at once — the stretched one underneath and the correctly sized one on top.

Fix: Tiles at the view’s current zoom level now replace that preview within their own area instead of blending over it, so an icon is only ever drawn once. Areas whose tiles haven’t arrived yet still show the scaled preview, so the map doesn’t blank out mid-zoom either.

Thanks,
Ben

Ben,

Thank you, I grabbed it this morning and it is definitely much better. I have already put in place for our demos later today.

James R.

That’s Awesome! :+1: