Steve --<br><br>Did you see this example?<br><br><a href="http://kappa.gonfi.org/ka-map-query/htdocs/index_query.html">http://kappa.gonfi.org/ka-map-query/htdocs/index_query.html</a><br><br>Not quite the same as it creates a tiled layer with the query results that you can zoom/pan just like everything else, but IMHO a better way for showing query results as it's a bit more 'sticky'.
<br><br>The valuable application for the approach that you're talking about would be to zoom to an area and then use a single, size-of-the-viewport map for time sensitive data. Think: zoom to an area and then have a weather radar that auto-refreshed every so many seconds.
<br><br>db<br><br><div><span class="gmail_quote">On 6/23/06, <b class="gmail_sendername">Steve Lime</b> <<a href="mailto:Steve.Lime@dnr.state.mn.us">Steve.Lime@dnr.state.mn.us</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Sure, I'll have a go. One question that is sort of related. It is possible to overlay<br>an map generated at the same scale/cellsize as the viewport contents, but arbitrary<br>size? You'd know the extent so presumably you'd know where to place the overlay.
<br><br>The reason I ask is that it might be a slick way to hilite a feature. For example, you<br>could have MapServer or whatever generate a small map with the feature hilited and<br>then use it as an acetate.<br><br>Steve
<br><br>>>> Paul Spencer <<a href="mailto:pspencer@dmsolutions.ca">pspencer@dmsolutions.ca</a>> 6/23/2006 7:59:55 AM >>><br>Steve,<br><br>this seems like it would be good to put in the wiki at <a href="http://ka-">
http://ka-</a><br><a href="http://map.ominiverdi.org/wiki/index.php/Query">map.ominiverdi.org/wiki/index.php/Query</a><br><br>I copied/pasted your response there but it is lacking some details.<br>Could you edit the page and include details on hooking up the ka-Map
<br>side of things as well.<br><br>This would be portable to the OpenLayers stuff too so I think its<br>worth the effort to document how to do it<br><br>Cheers<br><br>Paul<br><br>On 22-Jun-06, at 1:22 PM, Steve Lime wrote:
<br><br>> Have you installed the stock mapserver demo? It shows you how to do<br>> a simple query pretty easily. Here's another example from a site here:<br>><br>> <a href="http://maps/cgi-bin/mapserv46?map=/usr/local/www/docs_maps/">
http://maps/cgi-bin/mapserv46?map=/usr/local/www/docs_maps/</a><br>> mapserver_demos/tests46/query/test.map&program=/cgi-bin/<br>> mapserv46&htmlroot=/mapserver_demos/tests46&map_web_imagepath=/usr/<br>> local/www/docs_maps/tmp/&map_web_imageurl=/tmp/
<br>><br>> The mapfile and template file are available.<br>><br>> The idea is pretty straight forward, there are 2 steps:<br>><br>> 1) author a template file<br>><br>> Although typically HTML files you can return XML or whatever. For
<br>> example,<br>> if you have a DBF file with 3 attributes ITEM1, ITEM2 and ITEM3<br>> then a template<br>> might look like:<br>><br>> <html><br>> <head><title>Sample Template</title></head>
<br>> <body><br>> <li> item 1 is [ITEM1]<br>> <li> and item 2 is [ITEM2]<br>> <li> but item 3 is [ITEM3]<br>> </body><br>> </html><br>><br>> 2) reference the template in the LAYER
<br>><br>> Typically that means adding the line:<br>><br>> TEMPLATE 'mytemplate.html'<br>><br>> to the mapfile.<br>><br>> In my ka-map example all I am doing is using ka-map properties to<br>> make standard query calls to MapServer...
<br>><br>> Steve<br>><br>>>>> "Mike D'Ambrogia" <<a href="mailto:miked@jamagination.com">miked@jamagination.com</a>> 6/21/2006 7:20:27 PM >>><br>> Steve,<br>><br>> I'm fully lost in the query side of things (after being fully lost
<br>> virtually everywhere else...) is there a snippet of the mapfile<br>> that you<br>> could send back that would show how you setup the mapfile to pass the<br>> query event. The code below makes total sense, I just can't
<br>> connect the<br>> dots between clicking the "i" icon in ka-map and firing the jscript<br>> snippet below, my thought is that it's a mapfile setup thing that I'm<br>> not understanding<br>><br>
> Any help appreciated<br>><br>> Mike<br>><br>> -----Original Message-----<br>> From: <a href="mailto:ka-map-users-bounces@lists.maptools.org">ka-map-users-bounces@lists.maptools.org</a><br>> [mailto:
<a href="mailto:ka-map-users-bounces@lists.maptools.org">ka-map-users-bounces@lists.maptools.org</a>] On Behalf Of Steve<br>> Lime<br>> Sent: Wednesday, June 21, 2006 12:16 PM<br>> To: <a href="mailto:pspencer@dmsolutions.ca">
pspencer@dmsolutions.ca</a>; <a href="mailto:absarz@hotmail.com">absarz@hotmail.com</a><br>> Cc: <a href="mailto:ka-map-users@lists.maptools.org">ka-map-users@lists.maptools.org</a><br>> Subject: Re: [ka-Map-users] Map Query
<br>><br>><br>> I have a simple query capability working in this example:<br>><br>> <a href="http://maps.dnr.state.mn.us/ka-map/compass.html">http://maps.dnr.state.mn.us/ka-map/compass.html</a><br>><br>
> It's pretty straight-forward. I just take the output from the query<br>> event and pass that along to your mapping application. In my case I'm<br>> handing the query off to a standard MapServer CGI application in a new
<br>> window. The relevant code looks like:<br>><br>> function myQuery( eventID, queryType, coords ) {<br>><br>> window.open("/cgi-bin/mapserv410?<br>> maps=COMPASS_MAPFILE&mode=query&mapxy="
<br>> + coords[0] + "+" + coords[1]); }<br>><br>> Steve<br>><br>>>>> Paul Spencer <<a href="mailto:pspencer@dmsolutions.ca">pspencer@dmsolutions.ca</a>> 6/20/2006 12:45:36 PM >>>
<br>> sorry, I don't have anything like that. Perhaps someone on the<br>> mailing list does ...<br>><br>> On 20-Jun-06, at 1:09 AM, Absar Ali wrote:<br>><br>>><br>>> Dear Paul Spencer,<br>>>
<br>>> Thnkx for ur prompt response, if you have the code for query then<br>>> please email me, i will be very thnk ful to u.<br>>><br>>> Regards,<br>>><br>>> Absar<br>>><br>>>> From: Paul Spencer <
<a href="mailto:pspencer@dmsolutions.ca">pspencer@dmsolutions.ca</a>><br>>>> To: absar ali <<a href="mailto:absarzaidi@yahoo.com">absarzaidi@yahoo.com</a>><br>>>> CC: <a href="mailto:ka-map-users@lists.maptools.org">
ka-map-users@lists.maptools.org</a><br>>>> Subject: Re: [ka-Map-users] Map Query Date: Mon, 19 Jun 2006<br>>>> 17:09:48 -0400<br>>>><br>>>> Absar,<br>>>><br>>>> the info tool is an example of how you can integrate a query
<br>>>> capability into your application. It ensures that you have the<br>>>> coordinates requested by the user. You need to implement the<br>>>> capability to search your data.<br>>>>
<br>>>> Cheers<br>>>><br>>>> Paul<br>>>><br>>>> On 19-Jun-06, at 1:36 AM, absar ali wrote:<br>>>><br>>>>> I have sucessfully installed ka map n its worknig but when i
<br>>>>> select the info tool and click on the polygon a java script<br>>>>> message window appear with some extent values and x y values of<br>>>>> the map,<br>>>>> what i want is when i click on the polygon a new window will
<br>>>>> appear with values from the dbf files.<br>>>>><br>>>>> Waiting for a v good n working response.<br>>>>><br>>>>><br>>>>> Regards,<br>>>>>
<br>>>>> Absar Ali<br>>>>><br>>>>> Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously<br>>>>> low rates.<br>>>>> _______________________________________________
<br>>>>> ka-Map-users mailing list<br>>>>> <a href="mailto:ka-Map-users@lists.maptools.org">ka-Map-users@lists.maptools.org</a><br>>>>> <a href="http://lists.maptools.org/mailman/listinfo/ka-map-users">
http://lists.maptools.org/mailman/listinfo/ka-map-users</a><br>>>><br>>>> +-----------------------------------------------------------------+<br>>>> |Paul Spencer <a href="mailto:pspencer@dmsolutions.ca">
pspencer@dmsolutions.ca</a> |<br>>>> +-----------------------------------------------------------------+<br>>>> |Applications & Software Development |<br>>>> |DM Solutions Group Inc
<a href="http://www.dmsolutions.ca/|">http://www.dmsolutions.ca/|</a><br>>>> +-----------------------------------------------------------------+<br>>>><br>>>><br>>>><br>>>><br>
>>> _______________________________________________<br>>>> ka-Map-users mailing list<br>>>> <a href="mailto:ka-Map-users@lists.maptools.org">ka-Map-users@lists.maptools.org</a><br>>>> <a href="http://lists.maptools.org/mailman/listinfo/ka-map-users">
http://lists.maptools.org/mailman/listinfo/ka-map-users</a><br>>><br>>><br>><br>> +-----------------------------------------------------------------+<br>> |Paul Spencer <a href="mailto:pspencer@dmsolutions.ca">
pspencer@dmsolutions.ca</a> |<br>> +-----------------------------------------------------------------+<br>> |Applications & Software Development |<br>> |DM Solutions Group Inc
<a href="http://www.dmsolutions.ca/|">http://www.dmsolutions.ca/|</a><br>> +-----------------------------------------------------------------+<br>><br>><br>><br>><br>> _______________________________________________
<br>> ka-Map-users mailing list<br>> <a href="mailto:ka-Map-users@lists.maptools.org">ka-Map-users@lists.maptools.org</a><br>> <a href="http://lists.maptools.org/mailman/listinfo/ka-map-users">http://lists.maptools.org/mailman/listinfo/ka-map-users
</a><br>><br>><br>> _______________________________________________<br>> ka-Map-users mailing list<br>> <a href="mailto:ka-Map-users@lists.maptools.org">ka-Map-users@lists.maptools.org</a><br>> <a href="http://lists.maptools.org/mailman/listinfo/ka-map-users">
http://lists.maptools.org/mailman/listinfo/ka-map-users</a><br>><br>><br>> _______________________________________________<br>> ka-Map-users mailing list<br>> <a href="mailto:ka-Map-users@lists.maptools.org">
ka-Map-users@lists.maptools.org</a><br>> <a href="http://lists.maptools.org/mailman/listinfo/ka-map-users">http://lists.maptools.org/mailman/listinfo/ka-map-users</a><br><br>+-----------------------------------------------------------------+
<br>|Paul Spencer <a href="mailto:pspencer@dmsolutions.ca">pspencer@dmsolutions.ca</a> |<br>+-----------------------------------------------------------------+<br>|Applications & Software Development |
<br>|DM Solutions Group Inc <a href="http://www.dmsolutions.ca/|">http://www.dmsolutions.ca/|</a><br>+-----------------------------------------------------------------+<br><br><br><br><br>_______________________________________________
<br>ka-Map-users mailing list<br><a href="mailto:ka-Map-users@lists.maptools.org">ka-Map-users@lists.maptools.org</a><br><a href="http://lists.maptools.org/mailman/listinfo/ka-map-users">http://lists.maptools.org/mailman/listinfo/ka-map-users
</a><br><br>_______________________________________________<br>ka-Map-users mailing list<br><a href="mailto:ka-Map-users@lists.maptools.org">ka-Map-users@lists.maptools.org</a><br><a href="http://lists.maptools.org/mailman/listinfo/ka-map-users">
http://lists.maptools.org/mailman/listinfo/ka-map-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>************************************<br>David William Bitner<br><a href="mailto:bitner@gyttja.org">bitner@gyttja.org
</a>