Hmm, actually this will be trickier than I first thought...<br>
<br>
When you zoom in it should resize the query sqaure and make it bigger
based on the zoom. That's kinda tough but I'm sure there are some
functions that would assist in this isn't there? SInce the size
of the square on the mini map change and all. Any pointers?<br>
<br>
Thanks,<br>
Clark<br><br><div><span class="gmail_quote">On 9/27/05, <b class="gmail_sendername">Clark Endrizzi</b> <<a href="mailto:cendrizzi@gmail.com">cendrizzi@gmail.com</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;">
Ok, I implemented the ability to stay. <a href="http://dev.naiutah.com/KaMap/cvs_version/htdocs/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://dev.naiutah.com/KaMap/cvs_version/htdocs/</a>
<br>
<br>
I would love to see this option become a part of kamap (so I don't have
to modify it manually every time I upgrade). so I tried to make it work
well (even commented!). Basically I added a third argument called
"options" to the query class/object that I figure could be used to
specify the behaivor of the query tool. Currently I only have
"stay" as an option (which might sound lame but I couldn't think of a
better option name). I think I'm going to play with doing some
other options as well, like maybe the resizable stuff. This way I
figure the options argument could be added as comma seperated arguments
or something. Perhaps this doesn't follow the same programming
style, let me know how I could change it if it doesn't..<br>
<br>
There is some things that could probably be changed. Like if you
have a selection box currently available then a single click should
cancel it....<br>
<br>
The notable code is below:<br>
<span style="font-style: italic;">the class:</span><br>
function kaQuery( oKaMap, type, options)<br>
<br>
<span style="font-style: italic;">In the mouse up section:<br>
</span> if(this.options = 'stay'){<br>
this.bMouseDown = false;<br>
}else{ <br>
this.startx = this.endx = this.starty = this.endy = null;<br>
}<span style="font-style: italic;"><br>
</span><br>
Thanks,<br>
Clark<div><span class="e" id="q_106988ceccb4c225_1"><br><br><div><span class="gmail_quote">On 9/27/05, <b class="gmail_sendername">Paul Spencer</b> <<a href="mailto:pspencer@dmsolutions.ca" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
pspencer@dmsolutions.ca</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;">
I don't believe I've seen a query tool that works this way before.<br>You could probably modify the existing query tool to do what you<br>want, but it will be tricky to make it moveable/resizeable. It would<br>be trivial to leave the query rectangle on the map after mouseup and
<br>to provide a clear capability. I would start there and then go on to<br>see if you can make it resize.<br><br>Cheers<br><br>Paul<br><br>On 27-Sep-05, at 11:51 AM, Clark Endrizzi wrote:<br><br>> Hi,<br>> Every other feature I've thought I might need to implement has
<br>> either been implemented or trivial to do some other way than I was<br>> thinking. With this in mind, the default query tool doesn't quite<br>> work the way I'd like it to so I'm curious if there is any easy way
<br>> to make it work this way (described below).<br>><br>> I would rather the query stay where it is and make it resizable.<br>> After the resize it would return the coordinates just like it is<br>> now. If the user want to do a different query region altogether
<br>> they would use the query tool and draw another and/or there could<br>> be a clear button. This could be done quite well using the<br>> availabe cursors and stuff but I imagine knowing whether you're at<br>
> the border won't be as trivial as my image question. Has it been<br>> done?<br>><br>> --<br>> -Clark Endrizzi<br>> _______________________________________________<br>> ka-Map-users mailing list<br>
> <a href="mailto:ka-Map-users@lists.maptools.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ka-Map-users@lists.maptools.org</a><br>> <a href="http://lists.maptools.org/mailman/listinfo/ka-map-users" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://lists.maptools.org/mailman/listinfo/ka-map-users</a>
<br>><br><br>+-----------------------------------------------------------------+<br>|Paul
Spencer
<a href="mailto:pspencer@dmsolutions.ca" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">pspencer@dmsolutions.ca</a> |<br>+-----------------------------------------------------------------+<br>|Applications
& Software
Development |<br>|DM
Solutions Group
Inc
<a href="http://www.dmsolutions.ca/%7C" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.dmsolutions.ca/|</a><br>+-----------------------------------------------------------------+<br><br>
<br><br><br></blockquote></div><br><br clear="all"><br></span></div>-- <br><span class="sg">-Clark Endrizzi
<br>
</span></blockquote></div><br><br clear="all"><br>-- <br>-Clark Endrizzi<br>