Reduce map maxZoom to avoid tiles missing on retina
Due to a problem with Leaflet, the combination of setting maxZoom, maxNativeZoom and detectRetina causes the map on retina devices to go blank when zooming to max zoom level. Decreasing max zoom to 18 reduces the ability of users to zoom in, but prevents this issue.
This commit is contained in:
parent
937ddcc4d2
commit
8f94c22586
@ -87,7 +87,7 @@ class ColouringMap extends Component<ColouringMapProps, ColouringMapState> {
|
||||
center={initialMapViewport.position}
|
||||
zoom={initialMapViewport.zoom}
|
||||
minZoom={9}
|
||||
maxZoom={19}
|
||||
maxZoom={18}
|
||||
doubleClickZoom={false}
|
||||
zoomControl={false}
|
||||
attributionControl={false}
|
||||
|
Loading…
Reference in New Issue
Block a user