/utils/proj4
The proj4 utility module exports methods to manage Openlayers projections.
The proj4 library will be imported through mapp.utils.esmImport('proj4@2.9.0')
- Source
Methods
(async, inner) addProjection(params)
The proj4 utility method adds a new projection to the ol library.
mapp.utils.proj4.addProjection({
name: 'EPSG:27700',
defs: '+proj=tmerc +lat_0=49 +lon_0=-2 +k=0.9996012717 +x_0=400000 +y_0=-100000 +ellps=airy +datum=OSGB36 +units=m +no_defs',
extent: [0, 0, 700000, 1300000]
});
Parameters:
Properties| Name | Type | Description |
|---|---|---|
params | object |
| Name | Type | Description |
|---|---|---|
params.name | string | |
params.defs | string | |
params.extent | array |
- Source