openlayers-elements
openlayers-elements copied to clipboard
Allow to position overlays upfront
Extend overlays with lat/lon and x/y attributes to set the position of overlays declaratively. Should also support the positioning property.
This seems to work for the initial position, but does not work if you change the declaration on a later time.
@veith, sorry I forgot about this comment for a while.
You mean that works for initial position? The idea here was to add declarative positioning like <ol-overlay x=45 y=0>. Currently the only way is to call setPosition()
That said, I'm not sure if x/y should be separate attributes. If they would call the setter underneath then maybe better to make it a complex object property like <ol-overlay position='{ x: 45, y:0 }'> so that the whole value is always set