but I can't save the chnages in my service.
Hello, I managed to combine Identify a button in the toolbar that when I launch the application, the Identify window does not opens, until I click the button, it appears, emptycode: <esri1:ToolbarItem x:Name="Identify" Text="Identify"><esri1:ToolbarItem.Content><Button ><Image Source="i_identify.png" Stretch="UniformToFill"/><i:Interaction.Triggers><i:EventTrigger EventName="Click"><local:ToggleVisibilityAction TargetName="IdentifyBorder"></local:ToggleVisibilityAction></i:EventTrigger></i:Interaction.Triggers></Button></esri1:ToolbarItem.Content></esri1:ToolbarItem>what I want is that when I click the button nothing appears until I click on the map, then the Identify window opens with the information ... I hope if someone can help me.thank you very much.
For this particular aspect of your question, note that the arcgis.com viewer doesn't allow to save configuation (popoup, symbology...) at the service level. It is only possible at the map level.To save at the service level, you can use ArcGIS Online Explorer.
For Each layer As Layer In MapaGIS.Layers If layer.GetValue(Document.PopupTemplatesProperty) IsNot Nothing Then amsCapasMapa = TryCast(layer, ArcGISDynamicMapServiceLayer) idcDIccionario = TryCast(layer.GetValue(Document.PopupTemplatesProperty), IDictionary(Of Integer, DataTemplate)) For Each linInformacionCapa As LayerInfo In amsCapasMapa.Layers If ((dblEscalaMapa > linInformacionCapa.MaxScale AndAlso dblEscalaMapa < linInformacionCapa.MinScale) OrElse (linInformacionCapa.MaxScale = 0.0 AndAlso linInformacionCapa.MinScale = 0.0) OrElse (dblEscalaMapa > linInformacionCapa.MaxScale AndAlso linInformacionCapa.MinScale = 0.0)) AndAlso idcDIccionario.ContainsKey(linInformacionCapa.ID) Then ' id present in dictionary intLayerID = linInformacionCapa.ID dtmInformacionCapa = idcDIccionario(linInformacionCapa.ID) Exit For End If Next linInformacionCapa End If Next
I still waiting for your help, if you want!!!!
IdentifyTask task = new IdentifyTask("http://romulus/arcgis/rest/AllLayerService/MapServer"); //Your parameters define the sub layers used task.ExecuteAsync(parameters);
Can you give me an example, please!? How I can call the service when operating the Identify tool without adding in the code and where place in the code??
I made an error before, there is no reason why that service would need to be in your map and not visible. The service simply needs to exist on the serverGood luck-Joe
I will try to create a service that does not appear on my application, but only to operate the Identify tool and I will get back to you to inform you of the results. Thank you very much for your cooperation
You are not declaring your services separately, your services are your services. An IdentifyTask (as does any rest call) has a single rest endpoint. If you want to make calls into different services than you are making method calls on multiple rest endpoints. This is not something in the ESRI API causing a problem, this is how rest works. Tasks are simply convenient easy to use wrappers for rest method calls, An option if you only want one IdentifyTask call would be to create a 'super' service that is not visible in the map. The IdentifyTask could be run against this service instead of needing to run against multiple services. Hope that helps-Joe
Then,I must declare all my services separatly in C #: C # code:IdentifyTask identifyTask IdentifyTask = new ("http://romulus/ArcGIS/rest/.../Continents/MapServer"'IdentifyTask identifyTask IdentifyTask = new ("http://romulus/ArcGIS/rest/.../Pays/MapServer");IdentifyTask identifyTask IdentifyTask = new ("http://romulus/ArcGIS/rest/.../Communes/MapServer");....
http://romulus/ArcGIS/rest/services/Axeroute_Luxembourg/MapServer http://romulus/ArcGIS/rest/services/CENTRALITE_Administration_Etat/MapServer
private void QueryPoint_MouseClick(object sender, ESRI.ArcGIS.Client.Map.MouseEventArgs e) { MapPoint clickPoint = e.MapPoint; IdentifyParameters identifyParams = new IdentifyParameters() { Geometry = clickPoint, MapExtent = MyMap.Extent, Width = (int) MyMap.ActualWidth, Height = (int) MyMap.ActualHeight, LayerOption = LayerOption.visible, SpatialReference = MyMap.SpatialReference, }; IdentifyTask identifyTask = new IdentifyTask("http://romulus/ArcGIS/rest/services/...../Monde/MapServer") identifyTask.ExecuteCompleted += IdentifyTask_ExecuteCompleted; identifyTask.Failed += IdentifyTask_Failed; identifyTask.ExecuteAsync(identifyParams); }
private void QueryPoint_MouseClick(object sender, ESRI.ArcGIS.Client.Map.MouseEventArgs e) { MapPoint clickPoint = e.MapPoint; IdentifyParameters identifyParams = new IdentifyParameters() { Geometry = clickPoint, MapExtent = MyMap.Extent, Width = (int) MyMap.ActualWidth, Height = (int) MyMap.ActualHeight, SpatialReference = MyMap.SpatialReference, }; identifyParams.LayerIds.Add(2); IdentifyTask identifyTask = new IdentifyTask("http://romulus/ArcGIS/rest/services/...../Monde/MapServer") identifyTask.ExecuteCompleted += IdentifyTask_ExecuteCompleted; identifyTask.Failed += IdentifyTask_Failed; identifyTask.ExecuteAsync(identifyParams); }
identifyParams.LayerIds.Add(2);
Hello, I managed to make the sample "Identify" from API Silverlight in my application with a service that contains several layers:Code:IdentifyTask identifyTask = new IdentifyTask("http://romulus/ArcGIS/rest...../Monde/MapServer")But in my application, I would be obliged to work with multiple services and each service contains a single layer, for example, to display their attribute table, then when I wanted to test the tools with a service that contains a single layer, it does not work:Example of Feature Layer: Code:IdentifyTask identifyTask = new IdentifyTask("http://romulus/ArcGIS/rest/services/CENTRALITE_Administration_Etat/MapServer/2")So what to do in case I want the Identify fonction on all services that I declared in my Group Layer?Please help me if you have ideas.
parameters.LayerIds.Add(2); identifyTask.ExecuteAsynch(parameters)
<esri:FeatureLayer ID="MyLayer" OutFields="*" Url="yourServiceUrl"> <esri:FeatureLayer.MapTip> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="Auto"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <ItemsControl ItemsSource="{Binding Keys}" Grid.Column="0" /> <ItemsControl ItemsSource="{Binding Values}" Grid.Column="1" /> </Grid> </esri:FeatureLayer.MapTip> </esri:FeatureLayer>
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.