What WMS are you using? If you're using GeoServer, check out:
http://docs.geoserver.org/latest/en/user/extensions/querylayer/index.html Best regards, Bart -- Bart van den Eijnden OpenGeo - http://opengeo.org Expert service straight from the developers. On Nov 22, 2012, at 11:46 AM, Paul Meems <[email protected]> wrote: > I have two layers: > * Buildings > * Roof tops > > I now have implemented OpenLayers.Control.WMSGetFeatureInfo on the roof tops > layer. > This works great and a popup is shown with the data. > > I want to change this so that WMSGetFeatureInfo works on the Buildings layer. > I know how to do that, but instead of showing the data of the building I want > to show the data of the roof tops that belong to that building. > I can get the roof tops using the building ID but how do I make > WMSGetFeatureInfo fill my popup with the roof top data? > > I think I need to call a php-file that returns a json string with the data. > I'm doing something similar when looking for addresses. > I also need to change the popup so that every roof top gets its own tab. > > Any advice would be much appreciated. > > Thanks, > > Paul > _______________________________________________ > Users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/openlayers-users
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
