Open Pioneer Trails Packages
    Preparing search index...

    Function registerProjections

    • 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
      });

      Parameters

      • projections: Record<string, ProjectionDefinition>

        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.

      Returns void