markerclusterer - Leaflet / Mapbox rendering issue (grey area) -
for reason, map has big grey area on it, until move makes appear.
but on first look, there's part missing. i've seen quite lot around web before never wondered how fix until now.
this simple mapbox map using markerclustergroup clusters.
here's screenshot , link page:
so wondering, there easy known fix kind of behavior?
i can add code snippets if required.
thanks , have nice day!
it seems map element size has changed since initialization , did not invalidate it.
did change visibility (eg. display: none
style), position (eg. position: absolute
or position: fixed
in affix), or removed html element dynamically (with js)? perhaps, loading resources in wrong order , styles loaded after leaflet.js
? or, perhaps changed margins or padding? these kind of operations can change size of other elements implicitly , leaflet applet loads tiles area covered old size. shows loaded tiles correctly in "grey" area, though, can scroll , grey space @ bottom filled then.
if case, should execute invalidatesize()
method on leaflet map object.
Comments
Post a Comment