POST
|
Hi, It works in Desktop with 10.1 so it shouldn't be a problem with 10.1 engine. Regards, David
... View more
10-05-2012
08:01 AM
|
0
|
0
|
548
|
POST
|
True, but you would probably need to open existing MXD, change version and save it as new version?
... View more
10-03-2012
07:19 AM
|
0
|
0
|
521
|
POST
|
Doesn't look like it. IMapDocument has Save and SaveAs methods but you can't specify a version David
... View more
09-21-2012
02:50 AM
|
0
|
0
|
521
|
POST
|
Hi, Take a look at ArcGIS Runtime if it's something that might come handy to you. http://www.esri.com/software/arcgis/runtime/ David
... View more
09-21-2012
02:41 AM
|
0
|
0
|
302
|
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
|
441
|
POST
|
How do I hook to selection change event (or OnMouseDown) of ArcMap TOC from a custom plugin. I have a plugin that has an extension and dockable window and I need to update the window with information every time you select a new layer in TOC. Is this even possible?
... View more
09-18-2012
06:23 AM
|
0
|
3
|
1803
|
POST
|
Hi, If you have access to geometry you could use REST points to do this. Or a simpler way when the layers are fixed would be to use a GP tool. David
... View more
09-13-2012
05:10 AM
|
0
|
0
|
258
|
POST
|
Did you consider using users windows registry for storing this user related values?
... View more
09-13-2012
03:22 AM
|
0
|
0
|
382
|
POST
|
I assume you're using cached services from ArcGIS server. Best thing to do is to save the cache levels to an array and the zoom to the closest one. David
... View more
09-13-2012
03:13 AM
|
0
|
0
|
441
|
POST
|
I saw that article and I tried to implement the code on my sample. The problem is that in this line GazSearchDockableWindow.AddinImpl winImpl = AddIn.FromID<GazSearchDockableWindow.AddinImpl>(ThisAddIn.IDs.GazGazSearchDockableWindow); The ThisAddIn is not recognized and I can't figure out which object I need to pass in here. Regards, David
... View more
02-09-2012
01:54 AM
|
0
|
0
|
656
|
POST
|
Is there more code that explains this anywhere? My setup function in UserCommand always returns null on Win7 64bit
private void SetupDockableWindow()
{
if (m_dockableWindow == null)
{
IDockableWindowManager dockWindowManager = m_application as IDockableWindowManager;
if (dockWindowManager != null)
{
UID windowID = new UIDClass();
windowID.Value = DockableWindowGuid;
m_dockableWindow = dockWindowManager.GetDockableWindow(windowID); // here I get NULL returned
}
}
}
any ideas?
... View more
02-03-2012
07:22 AM
|
0
|
0
|
656
|
POST
|
reinstalling the sdk in Eclipse solved the problem 😛
... View more
02-01-2012
06:25 AM
|
0
|
0
|
435
|
POST
|
Hi! I cant figure out why this error is returned in my android app. I have ArcGIS SDK for android 1.0.1 installed. There are also some weird errors like: The constructor GraphicsLayer() is undefined Because constructor has at least one parameter to be passed in? The constructor ArcGISDynamicMapServiceLayer(String) is undefined again because it demands 2 parameters (Context, string) The method unpause() is undefined for the type MapView according to SDK MapView has unpause and pause methods.
... View more
02-01-2012
05:23 AM
|
0
|
1
|
2899
|
Title | Kudos | Posted |
---|---|---|
1 | 03-09-2017 05:36 AM | |
1 | 03-19-2018 07:55 AM | |
1 | 03-20-2018 02:39 AM | |
1 | 03-23-2017 03:22 AM | |
1 | 03-17-2017 07:29 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:22 AM
|