new Fixed(options)
Parameters:
Name | Type | Description |
---|---|---|
options |
Extend Overlay options |
Example
var popup = new ol.Overlay.Fixed(); map.addOverlay(popup); popup.setposition(position, true);
Extends
Methods
-
setPosition(position, force)
-
Prevent modifying position and use a force argument to force positionning.
Parameters:
Name Type Description position
ol.coordinate force
boolean true to change the position, default false
-
updatePixelPosition()
-
Update position according the pixel position
- Overrides:
- ol.Overlay#updatePixelPosition