Skip to content

Commit 3a6cf79

Browse files
authored
Replace mapwarper with self-hosted 1930 Manhattan Atlas (#1277)
Tiles are compressed to webp. Webp is now well supported. One oddity is that I pulled different zoom levels at different times. Some in 2023, some recently. They seem to have different crops. Maybe someone updated some of the plate cropping. So when you zoom some crops can change. They are served by Cloudfront with http/2 which allows more tiles to be loaded simultaneously. Mapwarper has been having intermittent DNS issues for me and not working a lot of the time. ⚠️ In 2020 I tried directly proxying Mapwarper on using Cloudfront with edge compression. It was incredibly expensive. I believe the main costs were the outbound bandwidth from the internet for the soruce, while this uses s3 which has no bandwidth cost. Watch costs!
1 parent c443cf2 commit 3a6cf79

File tree

1 file changed

+3
-1
lines changed
  • frontend/src/screens/App/screens/MapPane/components/MainMap

1 file changed

+3
-1
lines changed

frontend/src/screens/App/screens/MapPane/components/MainMap/overlays.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,11 @@ export const installLayers = (
9595
bounds: MANHATTAN,
9696
},
9797
{
98-
url: 'https://mapwarper.net/mosaics/tile/1194/{z}/{x}/{y}.png',
98+
url: 'https://maptiles.1940s.nyc/manhattan-atlas-1930/webp-lossy-hi/{z}/{x}/{y}.webp',
9999
targetId: 'atlas-1930',
100100
attribution: '[1930] ' + NYPL_ATTRIBUTION,
101101
bounds: MANHATTAN,
102+
maxzoom: 20,
102103
},
103104
{
104105
url: 'https://nypl-tiles.1940s.nyc/1453/{z}/{x}/{y}.png',
@@ -130,6 +131,7 @@ export const installLayers = (
130131
...(mapSpec.bounds
131132
? { bounds: mapSpec.bounds as [number, number, number, number] }
132133
: {}),
134+
...(mapSpec.maxzoom ? { maxzoom: mapSpec.maxzoom } : {}),
133135
});
134136

135137
map.addLayer(

0 commit comments

Comments
 (0)