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 <[EMAIL PROTECTED]>:
>
> 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
> [email protected]
> http://openlayers.org/mailman/listinfo/users
>
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to