Hi, If you want more control *and* if your WMS server supports WFS (like MapServer and GeoServer), you could also consider sending a WFS GetFeature request and tell the service exactly what attributes you want to have returned. You can retrieve them as GML or GeoJSON for example (or KML, etc) and display them in your application the way you want it. I use my own html templates with variables representing the attributes and have those replaced with their value for example.
Regards, Roald stash wrote: > > Barend Kobben wrote: > >> That's probably more a question to ask the underlying WMS (in your case >> geoserver?) ; Eg. I know that when using Mapserver as a WMS, I would >> change >> the >> &INFO_FORMAT=text/plain >> To >> &INFO_FORMAT=text/html >> >> And then make sure I have HTML templates that provide only the attributes >> I >> want, layed out and styled like I want... >> >> >> -- >> Barend Köbben >> International Institute for Geo-Information >> Sciences and Earth Observation (ITC) >> PO Box 6, 7500AA Enschede, The Netherlands >> +31 (0)53 4874253 >> >> >> > > > Hello, > thanks for your answer. In fact, you can build templates in geoserver to > show only the results you want with a getfeatureinfo request. Thanks for the > hint. > > But now I have an other problem. Is it possible to define more templates for > one layer? > > For example, if the user wants output1 --> template 1 will be used by > geoserver to show the results > if the user wants output2 --> template 2 will be used by > geoserver to show the results > > Is this possible? > > Regards > stash > > > > _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
