[OpenLayers-Users] XML, icon and offset
François Van Der Biest
f.vanderbiest at gmail.com
Thu Aug 14 12:50:37 EDT 2008
Hi Guillaume,
You can set your popup position anywhere nearby a feature by applying an
offset. For instance,
var popup = new OpenLayers.Popup.FramedCloud("mypopup",
new OpenLayers.LonLat(feature.geometry.x,feature.geometry.y),
null,
html,
{'size': new OpenLayers.Size(5,5), 'offset': new OpenLayers.Pixel(10,10)},
true,
function(){this.hide()}
);
For your second question, you may want to open the popup in one fixed
direction ... (using FramedCloud Popups' fixedRelativePosition option).
HTH.
BTW, what's the link with XML ?
Cheers,
F.
2008/8/13, Guillaume Sueur <guillaume.sueur at neogeo-online.net>:
>
> Hi list,
>
> Is there a way to offset properly the popup anchor on a vector layer ?
> Tried to do it be displacing the lonlat for popup but as I can't know in
> which direction to displace it, it's not clean.
>
> Thanks
>
> --
> Guillaume
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080814/070dadc3/attachment.html
More information about the Users
mailing list