Repository navigation
Commit 2e17e04
authored
fix(frontend): replace watermarked CARTO basemap with Esri Gray Canvas (#1034)
CARTO now requires an API key for basemaps.cartocdn.com. Keyless requests
still return HTTP 200, so nothing appeared broken, but the tiles come back
with an "API KEY REQUIRED" watermark burned into the PNG — the rain map has
been rendering that across the whole viewport.
A CARTO key is free (5M tiles/month, no account needed), but the request
form wants a domain and halo is LAN-only, and CARTO says the raster PNG
tier is being retired. Moving off it is the better fix.
Esri's Gray Canvas is keyless, has matching dark and light variants, and
needs no new dependencies. Two differences from CARTO worth noting:
- Canvas splits geometry and place labels into separate services, so the
base-layer effect now builds two layers. The labels get a dedicated pane
at z-index 450 — above overlayPane so the 0.6-opacity precipitation wash
doesn't smear them, below markerPane so they don't bury the home marker.
- No {s} subdomains, the tile path is {z}/{y}/{x} with y before x, and
there is no @2x tile, so detectRetina replaces the old {r} suffix.
Attribution updated to Esri, HERE, Garmin, OpenStreetMap. The FMI credit
is unchanged.
Caveat: Esri deprecated this endpoint for open-source clients in 2022 and
its terms now point at a free ArcGIS account plus a key. It serves fine
today and the swap is confined to one URL template, so replacing it later
is a small edit. OpenFreeMap (vector, explicitly no-key) and filtered OSM
standard tiles are the keyless fallbacks if it goes away.1 parent 63d6ab5 commit 2e17e04
1 file changed
Lines changed: 34 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
207 | 208 | | |
208 | 209 | | |
209 | 210 | | |
| |||
235 | 236 | | |
236 | 237 | | |
237 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
238 | 247 | | |
239 | 248 | | |
240 | 249 | | |
| |||
247 | 256 | | |
248 | 257 | | |
249 | 258 | | |
| 259 | + | |
250 | 260 | | |
251 | 261 | | |
252 | 262 | | |
253 | 263 | | |
254 | 264 | | |
255 | 265 | | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
256 | 276 | | |
257 | 277 | | |
258 | 278 | | |
259 | 279 | | |
260 | | - | |
261 | | - | |
262 | | - | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
263 | 285 | | |
| 286 | + | |
264 | 287 | | |
265 | | - | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
266 | 294 | | |
267 | 295 | | |
268 | 296 | | |
| 297 | + | |
269 | 298 | | |
| 299 | + | |
270 | 300 | | |
271 | 301 | | |
272 | 302 | | |
| |||
0 commit comments