[mapguide-users] how to get zoom scale? how to compute it for different polyline?

Andy Morsell amorsell at spatialgis.com
Thu Sep 14 13:52:10 EDT 2006


 Using the API, you should be able to determine the length of that street
segment and then zoom to it accordingly.  Take a look in the API
documentation under the MgGeometricEntity class and look at the GetLength()
and Envelope() functions.


Andy Morsell, P.E.
Spatial Integrators, Inc.
http://www.SpatialGIS.com

-----Original Message-----
From: Maciej Skorczewski [mailto:maciej.skorczewski at procad.pl] 
Sent: Thursday, September 14, 2006 12:21 AM
To: users at mapguide.osgeo.org
Subject: [mapguide-users] how to get zoom scale? how to compute it for
different polyline?


hi

i have another problem whit zoom and goto option.

My map have 1500 streets. Now i write a search engine of this street. 
When you click on search results (street name) it should make goto action to
show this street on map .

The problem is: How to compute the zoom scale , (the streets are in
different size) the zoom scale should show street on screen in one piece .
Solution whit CONST zoom scale (ex. 2000) can't be use. I want compute zoom
scale and copy it into database.


Have you make it?


--
Maciej Skorczewski




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at mapguide.osgeo.org
For additional commands, e-mail: users-help at mapguide.osgeo.org







More information about the Mapguide-users mailing list