Annoying white flashes happen when zooming in Google Map Api

I am currently developing a web page containing a map based on Google Map Api V3: http://www.fairaidsyria.org

I have two overlays containing polygons that appear sequentially when the user zooms in. Unfortunately, annoying “white flashes” occur when scaling. The problem even occurs at maximum zoom levels, when both overlays are not displayed ...

The blinking seems to be directly related to the presence of polygons in the enlarged area, because if you try to scale elsewhere in the world (the area without polygons), everything works fine: no flashes.

I suspect that these phenomena are “native” and are not related to a mistake that I could make. In fact, the same flashes also happen when you enlarge the triangle in the following official example: https://developers.google.com/maps/documentation/javascript/examples/polygon-simple?hl=en

Has anyone found a way to solve this problem?

+4
source share
1 answer

based on this nice article will change the meta viewport tag to:

<meta name="viewport" content="initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0"> 
0
source

Source: https://habr.com/ru/post/1496810/


All Articles