city-locatting OK... next step! =)

Stephen Lime steve.lime at
Tue Nov 14 11:32:47 EST 2000

To have a browsable map you MUST set imgext to be the extent of the
displayed map. The way you've got it set up now doesn't give you that
information. MapServer certainly calculates it in building the image but 
since your just retrieving the image there's no way to get it back to
you since you're not using templates. 

The solution is to calculate the extent in the client using a bit of javascript.
This is not hard. Then extent in hand you can use the image in a normal
mapserver form interface. Here's an example that does just that.


Stephen Lime
Internet Applications Analyst

Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155

>>> Nicolau Werneck <nwerneck at> 11/10/00 10:48AM >>>
   OK, I've successfully used the [shpmidx|y] 
thing... But now, how can I use that to continue to
browse trough the map?
   Why won't something like
work? Isn't defining a mapxy/scale pair the same as
defining a mapext? they should be equivalent!

(I'm almost understanding this thing. I hope I can
contribute to the documentation, because this program
rocks! :)   )

-- Nicolau

Do You Yahoo!?
Crie o seu e-mail grátis do Yahoo! Mail com 6 Megabytes livres!

More information about the mapserver-users mailing list