@vcmap/geofence
v1.0.2
Published
A plugin designed to ensure the VCMap camera stays within the predefined area
Downloads
69
Readme
@vcmap/geofence
Part of the VC Map Project
The Geofence plugin restricts the visible area in both 2D and 3D views by constraining camera movement within defined boundaries.
Configuration
An example configuration to restrict the view to Berlin city center can be find below:
"extentOptions": {
"coordinates": [13.35, 52.49, 13.43, 52.53],
"projection": {
"type": "Projection",
"epsg": "EPSG:4326"
},
"type": "Extent"
}