A TerriaJS plugin using proj4leaflet library to implement custom projection support in Leaflet/2D mode.
It uses the proj4leaflet library.
- Add the plugin as dependency to your terriamap.
cd terriamap/
yarn add -W plugin-terriajs-proj4leaflet
- Register the plugin from
terriamap/plugins.ts
// terriamap/plugins.ts
const plugins: () => Promise<TerriaPluginModule>[] = () => [
import("terriajs-plugin-proj4leaflet")
];
- Configure available projections
You can set the available projections using a configuration similar to this one.