pacificclimate / pdp

The PCIC Data Portal - Server software to run the entire web application
GNU General Public License v3.0
1 stars 2 forks source link

Use bclite basemap #249

Closed rod-glover closed 2 years ago

rod-glover commented 2 years ago

Changes

Use an OpenLayers XYZ layer pointed at new BC Lite basemap tiles

Resolves #244 (BC Prism) Resolves #246 (Gridded Hydrologic Model) Resolves #247 (Modelled Streamflow Data)

Checklist

rod-glover commented 2 years ago

image image image

rod-glover commented 2 years ago
  1. We now have a proxy for the tile service.
  2. Double escaping is because environment variables are injected into JavaScript via a Python HTML templating tool, and that tool uses the same syntax for variable substitution as JavaScript. The $$ is an escape for $, which results in the string ${z}/${x}/${y}.png being injected. I will document this.