Mike,I've attached a source file for a button add-in that will navigate to 20 different places and output the time the ZoomTo() method takes to finish.Here are the results I get (times in ms):0 time: 93.751 time: 78.1252 time: 46.8753 time: 46.8754 time: 46.8755 time: 62.56 time: 62.57 time: 62.58 time: 46.8759 time: 93.7510 time: 62.511 time: 78.12512 time: 78.12513 time: 78.12514 time: 78.12515 time: 62.516 time: 78.12517 time: 62.518 time: 93.7519 time: 78.125Here's the code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using ESRI.ArcGISExplorer;
using ESRI.ArcGISExplorer.Application;
using ESRI.ArcGISExplorer.Mapping;
using ESRI.ArcGISExplorer.Geometry;
using ESRI.ArcGISExplorer.Data;
using ESRI.ArcGISExplorer.Threading;
namespace ZoomPerformanceTest
{
public class Button : ESRI.ArcGISExplorer.Application.Button
{
public override void OnClick()
{
Application.ActiveMapDisplay.AnimateMovement = false;
for (int i = 0; i < 20; i++)
{
Viewpoint vp = new Viewpoint(
new ESRI.ArcGISExplorer.Geometry.Point(i, 0, 85000),
new ESRI.ArcGISExplorer.Geometry.Point(i, 0, 0));
DateTime d1 = DateTime.Now;
Application.ActiveMapDisplay.ZoomTo(vp);
System.Diagnostics.Debug.WriteLine(i + " time: " + (DateTime.Now - d1).TotalMilliseconds);
}
}
}
}
Thanks.-- JamesHi Mike,
Currently the only data that is loaded is the Bing Maps basemap.
I'll try and do some more tests and post some results to see if I can figure out what the problem might be.
Also, is (or will there be) a way to capture the mouse, other than using a Windows Mouse Hook?
Thanks.