POST
|
Hi, We are using the ESRI 4.6 Javascript API and we are trying to have 2 maps synchronized as in the ESRI sample below, except we are using 2 MapViews: Synchronize MapView and SceneView | ArcGIS API for JavaScript 4.7 We are wondering if there was a way to make each view able to show/hide its layers independently. As of now, with the layer list widget, it seems that if you hide a layer from one view it affects the other view. Is there a way to change this behaviour without dealing with multiple Map objects? Thanks for your insight.
... View more
05-31-2018
02:07 AM
|
0
|
1
|
509
|
POST
|
There are several instances of the same application zooming on different extents. They all use the same server application. The penalty of starting the server is only on the first instance. Thanks Vouillas
... View more
01-30-2013
10:50 PM
|
0
|
0
|
449
|
POST
|
Hello, I have the pretty simple map application below. In the code behind I programmatically add the layers and zoom to a particular extent at startup. The map displays as expected. See images in attachment. But when I resize the window, the map is not adjusted accordingly. I tried to remove the width and height properties of the map but it then displays a very tiny image... I would appreciate any hints toward making this work! Thanks Vouillas <Window x:Class="VaccinationTrackingSystem.MapClient.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:esri="http://schemas.esri.com/arcgis/client/2009" xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" Title="Map" Height ="600" Width ="800" Closing="Window_Closing"> <Grid x:Name="LayoutRoot"> <Grid.ColumnDefinitions> <ColumnDefinition Width="*" /> <ColumnDefinition MaxWidth="200" MinWidth="200"/> </Grid.ColumnDefinitions> <esri:Map x:Name="_map" Grid.Column="0" UseAcceleratedDisplay="False" Width="600" Height="600" HorizontalAlignment="Left" VerticalAlignment="Top"> <i:Interaction.Behaviors> <esri:MaintainExtentBehavior /> </i:Interaction.Behaviors> </esri:Map> <esri:MapProgressBar x:Name="MyProgressBar" Grid.Column="0" Map="{Binding ElementName=_map}" HorizontalAlignment="Center" VerticalAlignment="Bottom" Width="150" Height="12" Margin="5" /> <esri:ScaleLine Grid.Column="0" Map="{Binding ElementName=_map}" Margin="10" HorizontalAlignment="Left" VerticalAlignment="Bottom" Foreground="Black"/> <esri:Navigation Grid.Column="0" Margin="5" HorizontalAlignment="Left" VerticalAlignment="Top" Map="{Binding ElementName=_map}" /> <esri:Legend Grid.Column="1" Name="_legend" HorizontalAlignment="Right" VerticalAlignment="Top" ShowOnlyVisibleLayers="True" Width="200" Map="{Binding ElementName=_map}"> </esri:Legend> </Grid> </Window>
... View more
01-18-2013
12:47 AM
|
0
|
1
|
2206
|
POST
|
Thanks for your answer. I finally made it work. I'm starting a local map service in a console application using LocalMapService and store the random URL in a database. Then I'm starting a WPF client reading the URL from the database and using ArcGISDynamicMapServiceLayer (not ArcGISLocalDynamicMapServiceLayer) for instance to connect to the REST local service provided by the console application. I can launch as many WPF clients as I want. I no longer have the penalty of waiting for the server to start then. Bottom line is that you need to pass on the random URL used by the Server to the Client. I used a database as it was available in my application but they are many ways. Of course, you have to deal with inter process synchronization as well as the client has to wait for the service to be ready. I used EventWaitHandle class to achieve it. Cheers
... View more
01-18-2013
12:17 AM
|
0
|
0
|
449
|
POST
|
Hello, I have an WPF application displaying a simple map which always uses the same mpk but is passed as an argument the map extent. Several instances of this application can run concurrently with different map extents but they all instantiate their own LocalMapService. Is there a way to ensure there is only one service running for all application instances when one instance is already running to save the precious seconds it takes to launch the service ? Thanks for any hints La vouillas
... View more
01-01-2013
05:58 AM
|
0
|
7
|
2227
|
Online Status |
Offline
|
Date Last Visited |
01-21-2021
11:34 AM
|