POST
|
OK, I had thought about that (we only wish to do map tip on a current "selected" layer so I could insert it as an invisible feature layer and use the dynamic layers to render everything. The only thing we seem not to get in the dynamic layers is opacity (there's an option to set it but it does nothing).
... View more
07-02-2013
08:06 AM
|
0
|
0
|
972
|
POST
|
In my exploration I find I can load my layers from a Map Package file either as dynamic map layers or as feature layers. When loaded as dynamic map layers I can use the Layer Drawing Options to turn on and off label display on the features. When I load them as feature layers, I get the ability to add Map Tips to the features. Is there any way to get BOTH of these features on a loaded layer (both map tips and labels)?
... View more
07-01-2013
11:09 AM
|
1
|
2
|
8458
|
POST
|
Can we get a prediction? We're pretty much screwed here as we already made the leap to 2012 assuming that ESRI wouldn't take over a YEAR to get around to supporting the current Microsoft OS's and development platforms (silly us, I know). We bailed on the WPF runtimes, just too many bugs and too little functionality.
... View more
05-16-2013
05:29 AM
|
0
|
0
|
618
|
POST
|
Hi, Can you zip up and post your example on this thread? (or email me on mbranscomb@esri.com) Cheers Mike Actually, you can do this without any special code. 1. Create a New ArcGISWpfApplication with the New Project in Visual Studio. 2. Turn on one of the commented out map layers in the MainWindow.xaml 2. Go to Applicacation.xaml and disable the initial load of the main window. 3. From a thread other than the main thread create the MainWindow class (in my case it's a COM class). The whole mainwindow will create properly but goes boom asynchronously early on with the path above. Amusingly, I can work around this by kluging the service creation/start in my thread:
map_pkg = new ArcGISLocalDynamicMapServiceLayer(map_file_name);
//
// These next three lines are SUPPOSED to be handled automatically.
// However, this works around an internal bug in the ServiceLayer crash where it runs
// things in the wrong thread when we run out of a com context.
// It doesn't happen if we take care of starting up the service ourselves.
// <KLUDGE>
map_pkg.Service = new LocalMapService();
map_pkg.Service.Path = map_file_name;
map_pkg.Service.Start();
// </KLUDGE>
I'll see if I can cut out the proprietary stuff and zip up a canned set of programs that does this later today. Amusingly I've worked around this by forcing the service start in the right thread by inserting these lines before I return from the window creation...
... View more
05-03-2013
05:46 AM
|
0
|
0
|
284
|
POST
|
After the layer service has been initialized, you can run down and twiddle the visibility. Example:
var map_layer= new ArcGISLocalDynamicMapServiceLayer(map_file_name);
map_layer.Initialized += (s, e) =>
{
foreach (LayerInfo sublayer in map_layer) {
// figure out if you wan it visible
map_layer.SetLayerVisibility(sublayer.ID, visible);
}
};
... View more
05-01-2013
11:54 AM
|
0
|
0
|
541
|
POST
|
I'm trying to set the OverviewMap.Layer to one of my local map packages (via a local dynamic map server) and I've tried just about a zillion ways. No matter what I do it dies complaining about changing the SpatialReference without clearing all the map layers. This occurs from some internal function that seems to be updating the embedded Map object's Extent from the some invented MaximumExtent (not the one I set I expect). Any ideas?
... View more
05-01-2013
09:17 AM
|
0
|
0
|
272
|
POST
|
If I write a rather simple version that follows the example, these load into my map fine. If I try to create these in a com control, I get an InvalidOperationException from the Dependency Object being invoked in the wrong thread. Of course, it's way down in the bowels of the service diddling the Url: > WindowsBase.dll!System.Windows.Threading.Dispatcher.VerifyAccess() + 0x4a bytes
WindowsBase.dll!System.Windows.DependencyObject.SetValue(System.Windows.DependencyProperty dp, object value) + 0x15 bytes
ESRI.ArcGIS.Client.dll!ESRI.ArcGIS.Client.ArcGISDynamicMapServiceLayer.Url.set(string value) + 0x2b bytes
ESRI.ArcGIS.Client.Local.dll!ESRI.ArcGIS.Client.Local.ArcGISLocalDynamicMapServiceLayer.CompleteServiceInitialize(ESRI.ArcGIS.Client.Local.LocalMapService service) + 0xba bytes
ESRI.ArcGIS.Client.Local.dll!ESRI.ArcGIS.Client.Local.LocalMapService.GetServiceAsyncInternal.AnonymousMethod__0(object s, System.ComponentModel.AsyncCompletedEventArgs e) + 0x4b bytes
ESRI.ArcGIS.Client.Local.dll!ESRI.ArcGIS.Client.Local.LocalService.OnStartCompleted() + 0x76 bytes
ESRI.ArcGIS.Client.Local.dll!ESRI.ArcGIS.Client.Local.LocalMapService.UpdateMapServicePropertiesCompleteStart.AnonymousMethod__c(ESRI.ArcGIS.Client.Local.LayersInfo layersInfo, ESRI.ArcGIS.Client.Local.Internal.RequestInfo requestInfo2) + 0x48b bytes
ESRI.ArcGIS.Client.Local.dll!ESRI.ArcGIS.Client.Local.Internal.Requests.ProcessResponse<ESRI.ArcGIS.Client.Local.LayersInfo>(string url, string queryParameters, System.Exception err, bool cancelled, string result, System.Action<ESRI.ArcGIS.Client.Local.LayersInfo,ESRI.ArcGIS.Client.Local.Internal.RequestInfo> callback) + 0x2d0 bytes
ESRI.ArcGIS.Client.Local.dll!ESRI.ArcGIS.Client.Local.Internal.Requests.Start<ESRI.ArcGIS.Client.Local.LayersInfo>.AnonymousMethod__3(object s, System.Net.DownloadStringCompletedEventArgs e) + 0x186 bytes
System.dll!System.Net.WebClient.OnDownloadStringCompleted(System.Net.DownloadStringCompletedEventArgs e) + 0x15 bytes
System.dll!System.Net.WebClient.DownloadStringOperationCompleted(object arg) + 0x2a bytes
mscorlib.dll!System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(object state) + 0x3e bytes
mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) + 0xa7 bytes
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) + 0x16 bytes
mscorlib.dll!System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() + 0x60 bytes
mscorlib.dll!System.Threading.ThreadPoolWorkQueue.Dispatch() + 0x149 bytes
mscorlib.dll!System.Threading._ThreadPoolWaitCallback.PerformWaitCallback() + 0x5 bytes
[Native to Managed Transition] I've tried routing the code that does all this to the same thread that the MainWindow (and the ArcGISRuntime.Initialize) is run in and it doesn't help. Any ideas.
... View more
05-01-2013
08:55 AM
|
0
|
3
|
421
|
POST
|
Never mind, I hooked the initialized event... map_pkg.Initialized += (s, e) =>
{
CheckLayers();
};
... View more
04-23-2013
07:36 PM
|
0
|
0
|
266
|
POST
|
I'm loading a local map package as follows: map_pkg = new ArcGISLocalDynamicMapServiceLayer("C:\Users\Me\foo.mpk");
map_pkg.EnableDynamicLayers = true;
map.Layers.Add(map_pkg); If I immediately check the Layers in in map_pkg there's nothing there, the property is null. If I let the application run for a bit and process some events and check back, it is populated with the layers in the file. Is there anyway either prior to adding the pkg to the map or shortly there after to inspect the layers (I'd like to adjust the visibility early one).
... View more
04-23-2013
07:28 PM
|
0
|
2
|
2970
|
Title | Kudos | Posted |
---|---|---|
1 | 07-01-2013 11:09 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|