I use queries and templates to:
- The obvious one, answer selection queries (by box, point or shape). Typically this is in response to hover, click or draw OL controls. - Create data to be displayed as vector features (e.g. return GeoJSON or KML). Typically this is done as part of application initialization. Those are the biggies. Here's an example OL site (with ExtJS) that uses MapServer queries extensively to feed data back to the application... http://www.dnr.state.mn.us/waters/csg/index.html Steve From: [email protected] [mailto:[email protected]] On Behalf Of Saka Royban Sent: Friday, June 24, 2011 12:27 AM To: MapServer Subject: Re: [mapserver-users] Simple Question: using HTML templates with OpenLayers? Thanks a lot Steve so informative. however, Could u guide me to some of possible needs of query templates when using openlayers? ________________________________ From: "Lime, Steve D (DNR)" <[email protected]> To: Saka Royban <[email protected]>; MapServer <[email protected]> Sent: Fri, June 24, 2011 9:41:41 AM Subject: RE: [mapserver-users] Simple Question: using HTML templates with OpenLayers? Browse templates are pretty much useless with OpenLayers. Query templates, on the other hand, are very useful for a number of things w/OpenLayers. Steve ________________________________________ From: [email protected]<mailto:[email protected]> [[email protected]<mailto:[email protected]>] On Behalf Of Saka Royban [[email protected]<mailto:[email protected]>] Sent: Thursday, June 23, 2011 11:57 PM To: MapServer Subject: [mapserver-users] Simple Question: using HTML templates with OpenLayers? Hi all I have a nearly beginner question. Is there any usage for using HTML templates with OpenLayers? i.e. Why and in which case w may need templating while we use openlayers as a viewer? (the reason is that before starting openlayers, i was working with templates. and now it sounds to me that openlayers completely overrides templates, in use.) Regards
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
