[Mapguide_users] Coordinate Systems and Zooms
Scott Hameister
ScottH at mPower-tech.com
Wed Jan 3 18:16:57 EST 2007
I discovered that in mapFrame under the "ZoomSelection" Function that it
makes an fcgi call using GETFEATURESETENVELOPE....
...It's Obvious that GETFEATURESETENVELOPE returns the extents of the
features in their layers native coordinate system and not the MAPS projected
coordinate system.
So if My Map is in State Plan... 1 Layer is in UTM and another layer is in
LL84...and I select things from the UTM and LL84 layer I get a really bad
extent that is a combo of both...
...The only way to fix it would be to intercept/redirect the "ZoomSelection"
function to run some code that iterates through each layer, reprojects the
extent of the selection on that layer, and grabs the x and Y's into an
array...and then look for Max and Min X and Ys to develop the correct Zoom
position.
Now I ask Does GETFEATURESETENVELOPE fcgi call have an undocumented way of
doing this without having to destroy the web-api code?
-----Original Message-----
From: mapguide_users-bounces at lists.osgeo.org
[mailto:mapguide_users-bounces at lists.osgeo.org] On Behalf Of Andy Morsell
Sent: Wednesday, January 03, 2007 11:50 AM
To: mapguide_users at lists.osgeo.org
Subject: RE: [Mapguide_users] Coordinate Systems and Zooms
I have the same problem with a map in an international foot state plane
coordinate system (Oregon, South Zone, NAD83, International feet). The same
thing occurs if you are using a custom web layout search command on a layer.
The search works (as long as its not on a joined field) but clicking on a
result zooms to 0,0 with a scale of 1:0.001.
Andy
-----Original Message-----
From: mapguide_users-bounces at lists.osgeo.org
[mailto:mapguide_users-bounces at lists.osgeo.org] On Behalf Of Scott Hameister
Sent: Tuesday, January 02, 2007 8:16 AM
To: mapguide_users at lists.osgeo.org
Subject: [Mapguide_users] Coordinate Systems and Zooms
I'm having trouble with Zooms in Authored Maps with Coordinate Systems
Assigned...Example I have a Lat/Lon WGS84 map Of states and Counties
Projected locally into UTM Zone 16N...I can look at a weblayout...select a
county...right click and do a zoom selected and it flys off into
nowheresville...It seems to be zooming to the Lat and Lon cords of the
county and not the UTM...is this a known bug, and is there a Fix for this?
_______________________________________________
Mapguide_users mailing list
Mapguide_users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide_users
_______________________________________________
Mapguide_users mailing list
Mapguide_users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide_users
More information about the Mapguide-users
mailing list