Hi, you might check this out: http://openlayers.org/dev/examples/GMLParser.html (make an getFeatureInfo in GML format by changing info_format=application/vnd.ogc.gml, and then parse it with Format.GML)
Cheers On Tue, Feb 3, 2009 at 11:10 AM, Max Stephan <x....@gmx.net> wrote: > Hey everybody! > > I got a shapefile here which I added to my geoserver. I have integrated it > as a layer in an openlayers map container. In the attributes of the > layer/shapefile is a field which contains an URL to a pic of each feature > (in this case the features are points). Now I want this picture to be > displayed in a popup (like it can be done in a marker layer). But I want to > have the URL automatically read from the attributes of the feature I´m > clicking on. It would be great to see some of the other attributes read from > the feature as well. The problem is I don´t know that much about the > OpenLayers-API. I only know how to write a GetFeatureRequest but this would > show me only the attribute table. If it´s too difficult to show a picture > which´s URL is in the attributes it would be even enough if the URL in the > attribute table (the one I get from the GetFeatureRequest) would be > clickable. > > Greets and thanks for your help in advance Max Stephan > > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users > -- Ivan Grcic _______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users