Class: Fixed

ol.Overlay. Fixed

An overlay fixed on the map. Use setPosition(coord, true) to force the overlay position otherwise the position will be ignored.


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