[OpenLayers-Users] Label and point symbol together

Mark Paxton mark at innaxys.com
Tue Sep 11 09:24:36 PDT 2012


On 11/09/2012 16:38, Mark Paxton wrote:
> Hello,
>
> I just have a seemingly simple question that I'm having trouble with.
>
> I'd like to create a point with a text label and symbol. I'd like offset
> the text label from the point, so that you can see the symbol, but also
> change the alignment, so the text could be bl/rt etc.
>
> It seems that you can use /either/ labelAlign /or/
> labelXOffset+labelYOffset, but not both at the same time.
Looks like I was slightly wrong on this, but ideally the offset should
account for left/right/top/bottom alignment, so that it's always moving
the label away from the point, rather, for example than having to use
-ve offset to move a top aligned label further down.

Mark


More information about the Users mailing list