Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 736 Bytes

File metadata and controls

29 lines (18 loc) · 736 Bytes

⚠️ WIP

A TerriaJS plugin using proj4leaflet library to implement custom projection support in Leaflet/2D mode.

It uses the proj4leaflet library.

Setup

  1. Add the plugin as dependency to your terriamap.
cd terriamap/
yarn add -W plugin-terriajs-proj4leaflet 
  1. Register the plugin from terriamap/plugins.ts
// terriamap/plugins.ts
const plugins: () => Promise<TerriaPluginModule>[] = () => [
  import("terriajs-plugin-proj4leaflet")
];
  1. Configure available projections

You can set the available projections using a configuration similar to this one.