[OpenLayers-Users] Chicken in AddPopup

Charles Galpin cgalpin at lhsw.com
Fri Jun 1 12:54:54 PDT 2012


See the docs - it's the id of the popup.

http://dev.openlayers.org/releases/OpenLayers-2.6/doc/apidocs/files/OpenLayers/Popup/FramedCloud-js.html

hth
charles

On Jun 1, 2012, at 3:49 PM, Smaran Harihar wrote:

> Hi,
> 
> I am using this code from the OpenLayers Examples code and I was bit confused about what exactly does "chicken" mean here?
> 
> 
> info = new OpenLayers.Control.WMSGetFeatureInfo({
> 
> 
>             url: 'http://localhost:8080/geoserver/iPlant/wms', 
> 
> 
>             title: 'Identify features by clicking',
> 
> 
>             queryVisible: true,
> 
> 
>             eventListeners: {
> 
> 
>                 getfeatureinfo: function(event) {
> 
> 
>                     map.addPopup(new OpenLayers.Popup.FramedCloud(
> 
> 
>                         "chicken", 
> 
> 
>                         map.getLonLatFromPixel(event.xy),
> 
> 
>                         null,
> 
> 
>                         event.text,
> 
> 
>                         null,
> 
> 
>                         true
> 
> 
>                     ));
> 
> 
>                 }
> 
> 
>             }
> 
> 
>         });
> 
> 
>         map.addControl(info);
> 
> 
>         info.activate();
> 
> -- 
> Thanks & Regards
> Smaran Harihar
> 
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120601/73c0bd61/attachment-0001.html>


More information about the Users mailing list