[OpenLayers-Users] show wfs attributes in popup
Eric Lemoine
eric.c2c at gmail.com
Mon Feb 18 05:59:40 EST 2008
On Feb 18, 2008 9:56 AM, Maria Panagou <snowdrop at ath.forthnet.gr> wrote:
>
> [...]
>
> function feature_info(feature) {
> selectedFeature = feature;
>
> //popup = feature.createPopup(false);
>
> popup = new OpenLayers.Popup.Anchored("Info",
> feature.geometry.getBounds().getCenterLonLat(),
> new OpenLayers.Size(250,75),
> "ö<sup>ï</sup>N: "+ feature.attributes.late + ", ë<sup>ï</sup>E:
> "+ feature.attributes.lone,
> true);
> [...]
The fifth argument passed to the OpenLayers.Popup.Anchored constructor
must be an object with the properties 'size' and offset'. It is
usually the Icon you want to anchor your popup to. See the doc:
<http://dev.openlayers.org/apidocs/files/OpenLayers/Popup/Anchored-js.html>.
Cheers,
--
Eric
More information about the Users
mailing list