Adds new registrations to the global proj4js definition set.
See the proj4js documentation for more details.
Example:
import { registerProjections } from "@open-pioneer/map";registerProjections({ "EPSG:25832": "+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs", // ... more projections}); Copy
import { registerProjections } from "@open-pioneer/map";registerProjections({ "EPSG:25832": "+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs +type=crs", // ... more projections});
An object containing (key, definition) pairs. The key must be projection name (such as "EPSG:4326"). The value can be a string defining the projection or an existing proj4 definition object.
"EPSG:4326"
Adds new registrations to the global proj4js definition set.
See the proj4js documentation for more details.
Example: