[Mapserver-users] Using mapserv.js with decimal degrees
Ethan Alpert
ealpert@digitalglobe.com
Mon, 3 May 2004 13:31:54 -0600
Did you change the extents of the calls to dBox and Mapserv?
>From the demo there's a file called itasca_add_dhtml.html
In that file there are calls to create dBox and Mapserv that require
proper extents. In addition theres a mounsemove_handler which you'll
need to change to display the proper coordinates.
I got mine to work but I'm using a very simple map. I'd imaging that
crossing the date line or a any map that contains a pole might cause
problems with the calculations.
-e
-----Original Message-----
From: mapserver-users-admin@lists.gis.umn.edu
[mailto:mapserver-users-admin@lists.gis.umn.edu] On Behalf Of Matthew
Perry
Sent: Monday, May 03, 2004 1:01 PM
To: mapserver-users@lists.gis.umn.edu
Cc: Gregor Mosheh
Subject: [Mapserver-users] Using mapserv.js with decimal degrees
Hey all,
I have been using the mapserv.js and dbox.js
libraries for developing mapserver interfaces. It
works great for projected data but now we're trying to
get the navigation tools (panning, zooming, etc) to
work with decimal degrees.
In the mapserv.js, there is a global variable called InchesPerMapUnit
that you need to set correctly if not using meters. Since lat/long is
measured in angular units (degrees), how would you set this variable?
Are there any other tricks to get the coordinate
calculations working with lat/long? Anyone had any
luck with this? Is it even possible?
Thanks for any input!
Matt Perry
Natural Resources Planning
Humboldt State University
mtperry78@sbcglobal.net
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users