new OpenLayersMapView()
Methods
createLayer(layerModel) → {ol.Layer}
Creates an OpenLayers layer from a given LayerModel.
Parameters:
Name | Type | Description |
---|---|---|
layerModel |
core/models.LayerModel | The layerModel to create a layer for. |
Returns:
The OpenLayers layer object
- Type
- ol.Layer
createMap()
Convenience function to setup the map.
initialize(options)
Initialize an OpenLayersMapView
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
options |
Object | Options to initialize the view with.
Properties
|
removeLayer()
Remove the layer from the given group;
setupControls()
Creates OpenLayers interactions and adds them to the map.
setupEvents()
Set up all events from the layer collections