CameraOptions
Constructor
constructor
constructor(parameters: object): CameraOptions
Parameters:
Name | Type | Required | Default | Description |
---|---|---|---|---|
parameters | object | Yes | - | |
parameters.centerOnOptions | CameraCenterOnOptions | object | No | new CameraCenterOnOptions() | Define the default options used by CameraManager#centerOn. Can be an CameraCenterOnOptions instance or directly the parameter to pass on the CameraCenterOnOptions constructor |
parameters.zoomEnabled | boolean | No | true | Enable or disable the map zoom |
parameters.rotationEnabled | boolean | No | true | Enable or disable the map rotation |
parameters.minDistance | number | No | 5 | Define the minimal zoom distance |
parameters.maxDistance | number | No | 800 | Define the maximal zoom distance |