new ProjectionCache()
- Source:
- mapspace/projectioncache.js
Methods
-
addProjection(projDef)
-
Adds a
Mapspace.ProjectionDefinition
to the cache.Parameters:
Name Type Description projDef
Mapspace.ProjectionDefinition The projection definition.
- Source:
- mapspace/projectioncache.js
-
getProjection(epsg)
-
Returns the
Mapspace.ProjectionDefinition
with the info of the projection.Parameters:
Name Type Description epsg
string The EPSG code with or without prefixing with 'EPSG:'. It detects if EPSG is added in the string.
- Source:
- mapspace/projectioncache.js
Returns:
-
removeProjection(epsg)
-
Removes a projection from the cache.
Parameters:
Name Type Description epsg
string The EPSG code with or without prefixing with 'EPSG:'. It detects if EPSG is added in the string.
- Source:
- mapspace/projectioncache.js