On Feb 18, 2008 9:56 AM, Maria Panagou <[EMAIL PROTECTED]> 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
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to