POST
|
I wrote a sample app for a customer and this the part with black magic 😄 void axMapControl1_OnExtentUpdated(object sender, ESRI.ArcGIS.Controls.IMapControlEvents2_OnExtentUpdatedEvent e) { if (oldScale != m_mapControl.MapScale) { // Fill with cached map scales double[] cachedScales = new double[] { 1500, 15000, 55000, 125000, 350000, 750000, 1500000, 3500000, 13000000, 60000000 }; double newScale = cachedScales[cachedScales.Length-1]; // Scale changed! // Scale to the closest scale level of cached map service for (int i = 1; i<cachedScales.Length; i++) { if (cachedScales >= m_mapControl.MapScale) { if (Math.Abs(cachedScales[i - 1] - m_mapControl.MapScale) <= Math.Abs(cachedScales - m_mapControl.MapScale)) { newScale = cachedScales[i - 1]; } else { newScale = cachedScales; } break; } } oldScale = newScale; m_mapControl.MapScale = newScale; m_mapControl.ActiveView.Refresh(); oldScale = m_mapControl.MapScale; } }
... View more
09-21-2012
02:29 AM
|
0
|
0
|
1
|
POST
|
Hi, Is there any way to find the location type of the address (like urban, suburban, rural etc.) while geo search? Thank you.
... View more
08-05-2012
12:56 PM
|
0
|
0
|
2289
|
POST
|
Hi, I am developing a VB.Net application to locate an address on map using ArcGIS engine 10. I am using ARCGIS world imagery in the map control. The result is placed on incorrect coordinate space on the map. Sample Image attached. I appreciate any help on this issue. Thanks.
... View more
07-29-2012
07:42 PM
|
0
|
0
|
442
|
POST
|
Hi, I have attached a geosearch sample map generated with javascript api. Any reason why the point is away from the actual address? Thank you.
... View more
08-11-2012
06:12 AM
|
0
|
0
|
1
|
POST
|
Hi, I am getting the error "The upgrade patch cannot be installed by windows..." whent trying to install the service pack ArcObjectsSDKNET10sp3. I have attached the completed error message as well. Any help is greatly appreciated. Regards, Vinny
... View more
07-23-2012
09:52 AM
|
0
|
0
|
264
|
POST
|
Hi, I am developing a custom .Net application using ArcGIS Engine. I would like to use the online basemaps in the Map Control and then locate an address in the map. Thank you in advance. Regards, Vinny
... View more
06-24-2012
02:45 AM
|
0
|
0
|
212
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|