[OpenLayers-Users] drillDown: multiple requests but only first in pop-up
Giuseppe De Marco
peppelinux at yahoo.it
Wed May 22 08:57:13 PDT 2013
Using ol 2.12 with different layers configured in three different mapfiles on the same mapserver 6.x, Ubuntu 12.04.
<feature info>
new OpenLayers.Control.WMSGetFeatureInfo({
url: "http://"+ wms_hostname +"/cgi-bin/mapserv?map="+mapfile_path,
title: 'Identify features by clicking',
drillDown: true,
infoFormat:'text/html',
click: 'true',
queryVisible: true,
eventListeners: {
getfeatureinfo: function(event) {
map.addPopup(new OpenLayers.Popup.FramedCloud(
"chicken",
map.getLonLatFromPixel(event.xy),
null,
event.text,
null,
true
));
}
}
}), // fine getfeatureinfo
</feature info>
When I made a featureinfo query I can see 4 http request to my django proxy, using console debug.
Just the first request populates my FramedCloud, the second and the others: nothing to do, but they works !
If I copy n paste the request urls I can see, for the second request, the http-response with formatted html template.
The third and fourth aren't querable so I get the WMS message that explain this.
How could I wait for all the response and merge them into one single pop-up ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130522/5fae427f/attachment.html>
More information about the Users
mailing list