Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/src/frontend/map/layers/building-base-layer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function BuildingBaseLayer({ theme }: {theme: MapTheme}) {
key={theme} /* needed because TileLayer url is not mutable in react-leaflet v3 */
url={getTileLayerUrl(tileset)}
minZoom={14}
maxZoom={19}
maxZoom={21}
detectRetina={true}
/>;
}
2 changes: 1 addition & 1 deletion app/src/frontend/map/layers/building-data-layer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function BuildingDataLayer({tileset, revisionId} : { tileset: BuildingMap
key={`${tileset}-${revisionId}`} /* needed because TileLayer url is not mutable in react-leaflet v3 */
url={getTileLayerUrl(tileset, {rev: revisionId})}
minZoom={9}
maxZoom={19}
maxZoom={21}
detectRetina={true}
/>;
}
2 changes: 1 addition & 1 deletion app/src/frontend/map/layers/building-highlight-layer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function BuildingHighlightLayer({selectedBuildingId, baseTileset}: {selec
key={`${selectedBuildingId}-${baseTileset}`} /* needed because TileLayer url is not mutable in react-leaflet v3 */
url={getTileLayerUrl('highlight', {highlight: `${selectedBuildingId}`, base: baseTileset})}
minZoom={13}
maxZoom={19}
maxZoom={21}
detectRetina={true}
/>;
}
2 changes: 1 addition & 1 deletion app/src/frontend/map/layers/building-numbers-layer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function BuildingNumbersLayer({revisionId}: {revisionId: string}) {
key={`numbers-${revisionId}`} /* needed because TileLayer url is not mutable in react-leaflet v3 */
url={getTileLayerUrl('number_labels', {rev: revisionId})}
minZoom={17}
maxZoom={19}
maxZoom={21}
detectRetina={true}
/>;
}
4 changes: 2 additions & 2 deletions app/src/frontend/map/layers/city-base-map-layer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export function CityBaseMapLayer({ theme }: { theme: MapTheme }) {
return <TileLayer
url={baseUrl}
attribution={attribution}
maxNativeZoom={18}
maxZoom={19}
maxNativeZoom={20}
maxZoom={21}
detectRetina={true}
className={theme_class}
/>;
Expand Down
2 changes: 1 addition & 1 deletion app/src/frontend/map/map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const ColouringMap : FC<ColouringMapProps> = ({
center={initialMapViewport.position}
zoom={initialMapViewport.zoom}
minZoom={9}
maxZoom={18}
maxZoom={21}
doubleClickZoom={false}
zoomControl={false}
attributionControl={false}
Expand Down
2 changes: 1 addition & 1 deletion app/src/tiles/rendererDefinition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const tileCache = new TileCache(
{
tilesets: getBuildingLayerNames(),
minZoom: 9,
maxZoom: 19,
maxZoom: 21,
scales: [1, 2]
},
shouldCacheFn,
Expand Down