Class: ProjectionCache

Mapspace.projection. ProjectionCache

A cache object to manage projection info. This is the type of info returned by Blom GetSRSInfo service.


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:
Type
Mapspace.ProjectionDefinition

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