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 >:(<br><br>jzs<br><br><div><span class="gmail_quote">On 11/2/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;">
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>>>> John Smith <<a href="mailto:jayzee.smith@GMAIL.COM">jayzee.smith@GMAIL.COM</a>> 10/31/2006 4:22:23 PM >>>
<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 <<a href="mailto:richard.greenwood@gmail.com">richard.greenwood@gmail.com</a>> wrote:<br><br>> On 10/18/06, John Smith <<a href="mailto:jayzee.smith@gmail.com">jayzee.smith@gmail.com
</a>> wrote:<br>> > thks. yeah dbox is cool but i got another question- i'm trying to<br>output<br>> > [imgext] and other cgi variables from dbox. how do i grab them?<br>i'd<br>> really<br>> > want to use the backward and forward browser buttons. i think
<br>navigation<br>> is<br>> > way cooler that way.<br>><br>> When you reload a whole page, you can get mapserver (on the server)<br>to<br>> provide values for variables in [...] but with dBox you are usually
<br>> not reloading the whole page from the server, you are usually only<br>> requesting a new map image. So the new extent needs to be calculated<br>> on the client (the browser).   Thanks to mapserv.js, this is no
<br>harder<br>> than requesting the new values from the server, and a lot more<br>> elegant. The extent, scale, size, etc. are contained in the map<br>> object, and are updated each time you make a new map request.
<br>><br>> But by not relaoding the whole page, the browser's back and forward<br>> buttons don't do what you would expect, and you can not book mark<br>the<br>> URL. There are a couple thing you might try: you could maintain a
<br>> "history" stack and add your own back & forward buttons to your user<br>> interface (ArcIMS, MapBuilder, and many others do this), or you<br>could<br>> try pushing the current map parameters into the browser's history.
<br>> Don't know what problems you'd encounter, but that always seemed<br>more<br>> elegant to me. I just haven't gotten around to trying to implemet<br>it.<br>><br>> Rich<br>><br>> --<br>> Richard Greenwood
<br>> <a href="mailto:richard.greenwood@gmail.com">richard.greenwood@gmail.com</a><br>> <a href="http://www.greenwoodmap.com">www.greenwoodmap.com</a></blockquote></div>