so mapserv()'s an object with cgi variables stored in array as properties?<br><br>well i insert the alert after line 50 and then it pops up 3 different values on a simple reload. me thinks it might be easier if i can just get dbox to spit out the variable values as get.
<br><br>about my zoombox, it's a dhtml problem- the damn zoombox won't draw from right-bottom to left-top &gt;:(<br><br>jzs<br><br><div><span class="gmail_quote">On 11/2/06, <b class="gmail_sendername">Steve Lime</b> &lt;
<a href="mailto:Steve.Lime@dnr.state.mn.us">Steve.Lime@dnr.state.mn.us</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
He's refering to the Mapserv object. It may have been called something<br>different earlier<br>in its life.<br><br>Yes, the extent can change and there are two reasons:<br><br>1) the user has explicitly triggered something that computes a new
<br>scale (e.g. a zoom, pan or<br>box zoom)<br><br>2) that computed extent must be adjusted to the map size (imagine<br>dragging a tall, thin zoom<br>box)<br><br>Depending on where you put alerts in mapserv.js you may see changes
<br>before or after these<br>cases. I've not implemented accessor functions everywhere so you need<br>to access the object<br>members directly. For example, the extent member contains the extent of<br>the currently<br>displayed map.
<br><br>When you say your zoombox doesn't work. Is that a dBox zoombox or your<br>own code? If I<br>remember back to the days when I started dBox an error like that has to<br>do with the order<br>of coordinates handed to whatever is drawing the rectangle. Perhaps it
<br>is expecting<br>minx. miny, maxx, maxy and your sending the reverse? Just a thought.<br><br>Steve<br><br>&gt;&gt;&gt; John Smith &lt;<a href="mailto:jayzee.smith@GMAIL.COM">jayzee.smith@GMAIL.COM</a>&gt; 10/31/2006 4:22:23 PM &gt;&gt;&gt;
<br>map object??<br><br>i've popped up using alert(this.extent) but depending on where you<br>insert<br>that alert() in mapserv.js its value changes! i've looked through<br><a href="http://maps.dnr.state.mn.us/tools/dbox/docs/jsdocs/">
http://maps.dnr.state.mn.us/tools/dbox/docs/jsdocs/</a> but can't get the<br>values<br>contained in the map object. is there a dbox guru lurking on this list<br>;)?<br><br>i've also tried making my own zoombox but can't get the zoombox to
<br>follow<br>the cursor if the cursor is dragged from right-bottom to left-top in<br>the<br>negative direction. any help with that?<br>i admit this is not strictly a mapserver question but then again<br>there's no<br>dbox list.
<br>jzs<br>On 10/18/06, Richard Greenwood &lt;<a href="mailto:richard.greenwood@gmail.com">richard.greenwood@gmail.com</a>&gt; wrote:<br><br>&gt; On 10/18/06, John Smith &lt;<a href="mailto:jayzee.smith@gmail.com">jayzee.smith@gmail.com
</a>&gt; wrote:<br>&gt; &gt; thks. yeah dbox is cool but i got another question- i'm trying to<br>output<br>&gt; &gt; [imgext] and other cgi variables from dbox. how do i grab them?<br>i'd<br>&gt; really<br>&gt; &gt; want to use the backward and forward browser buttons. i think
<br>navigation<br>&gt; is<br>&gt; &gt; way cooler that way.<br>&gt;<br>&gt; When you reload a whole page, you can get mapserver (on the server)<br>to<br>&gt; provide values for variables in [...] but with dBox you are usually
<br>&gt; not reloading the whole page from the server, you are usually only<br>&gt; requesting a new map image. So the new extent needs to be calculated<br>&gt; on the client (the browser).&nbsp;&nbsp; Thanks to mapserv.js, this is no
<br>harder<br>&gt; than requesting the new values from the server, and a lot more<br>&gt; elegant. The extent, scale, size, etc. are contained in the map<br>&gt; object, and are updated each time you make a new map request.
<br>&gt;<br>&gt; But by not relaoding the whole page, the browser's back and forward<br>&gt; buttons don't do what you would expect, and you can not book mark<br>the<br>&gt; URL. There are a couple thing you might try: you could maintain a
<br>&gt; &quot;history&quot; stack and add your own back &amp; forward buttons to your user<br>&gt; interface (ArcIMS, MapBuilder, and many others do this), or you<br>could<br>&gt; try pushing the current map parameters into the browser's history.
<br>&gt; Don't know what problems you'd encounter, but that always seemed<br>more<br>&gt; elegant to me. I just haven't gotten around to trying to implemet<br>it.<br>&gt;<br>&gt; Rich<br>&gt;<br>&gt; --<br>&gt; Richard Greenwood
<br>&gt; <a href="mailto:richard.greenwood@gmail.com">richard.greenwood@gmail.com</a><br>&gt; <a href="http://www.greenwoodmap.com">www.greenwoodmap.com</a></blockquote></div>