|
POST
|
Thanks for the tip. I'm probably being overly dense here, but how could I apply this to a legend? I had looked into using that sample from the api samples, but the functionality has to be part of the legend in my program. This sample will help you to get the legend you want. see the attached snapshot from my application.[ATTACH=CONFIG]14589[/ATTACH]
... View more
05-23-2012
09:01 PM
|
0
|
0
|
612
|
|
POST
|
Has anyone found a workaround on this yet? There was some talk sometime back that toggling individual legenditems might be possible by discovering the parent objects of individual LegendItems, but that is way beyond my understanding in c#. Has anyone cracked this yet? Yes! This has been done. There is a sample for that. http://forums.arcgis.com/threads/9141-Get-Layer-Legends-for-Rest-service download the sample SilverlightAPILegend.zip�?? from the above post. the primary method responsible for this task is --- private void LayerList_Click(object sender, RoutedEventArgs e) { CheckBox tickedCheckBox = sender as CheckBox; // string serviceName = tickedCheckBox.Tag.ToString(); bool visible = (bool)tickedCheckBox.IsChecked; //int layerIndex = Int32.Parse(tickedCheckBox.Name); int layerIndex = tickedCheckBox.TabIndex; List<int> visibleLayerList = dynamicLayer.VisibleLayers != null ? dynamicLayer.VisibleLayers.ToList() : new List<int>(); if (visible) { if (!visibleLayerList.Contains(layerIndex)) visibleLayerList.Add(layerIndex); } else { if (visibleLayerList.Contains(layerIndex)) visibleLayerList.Remove(layerIndex); } dynamicLayer.VisibleLayers = visibleLayerList.ToArray(); }
... View more
05-22-2012
09:48 PM
|
0
|
0
|
612
|
|
POST
|
One: What map does "ArcGIS For Silverlight" use ? "Bing" map? Two: Can "ArcGIS For Silverlight" use custom 3D map? Three: Does "ArcGIS For Silverlight" charge? Hi, 1. ArcGIS for Silverlight can use maps from ArcGIS Server REST services and other basemaps from ArcGIS online and also from Microsoft Bing. 2. For custom 3D Maps I am not sure , since it has been done in one of the samples. 3. ArcGIS for Silverlight is a freely downloadable API from ESRI.
... View more
05-22-2012
08:47 PM
|
0
|
0
|
685
|
|
POST
|
Hi guys. Have another question. This one is about working with custom zoom controls to act on a Map control when everything is wired with MVVM. Running in SL4. Right now, I have my View which contains the Map control. The layers of the map control is bound to a property of the view model thatwill load up layers on start. Works great. I was also able to create a Navigation control in the View (in XAML) which is bound to the Map. That works as well. But what if I wanted to instead of using a Nav control create a set of images or buttons that control the zoom. Say Zoom Extent, in, out, etc. Can I wire the button directly to the Map control in XAML or does it have to pass back to the ViewModel through some kind of command binding? If it has to be through the viewmodel, how to do I wire that up? I read that the Map.Extent is not bindable. I also read that I can create the MapExtentHelper dependency to deal with this but didn't couldn't quite get my head around how to implement it. Thanks Ernie Hi, I guess what you require here I had seen a similar approach in one of the Navigation Toolbar sample from ESRI and in that sample a navigation toolbar user control is present which is wired to the mainpage.xaml containing the map. Unfortunately I dont have the download link of the sample but I remember that navigation toolbar containing the zoom in and out buttons was referenced from mainpage.xaml by calling two methods - MyNavToolbar.SetParent(this); MyNavToolbar.SetMap(Mapcontrol); and in the navigationtoolbar the methods are - public void SetParent(MainPage TheParent) { // Assumes that MainPage supports SetCursor and UnsetTool _Parent = TheParent; } public void SetMap(Map TheMap) { _Map = TheMap; _Map.ExtentChanged += _Map_ExtentChanged; _Map.MouseClick += _Map_MouseClick; _ZoomDrawObject = new Draw(_Map) { FillSymbol = DefaultFillSymbol, DrawMode = DrawMode.Rectangle }; _ZoomDrawObject.DrawComplete += _ZoomDrawObject_DrawComplete; } this can only help you as a pointer.
... View more
05-22-2012
08:40 PM
|
0
|
0
|
780
|
|
POST
|
Hi Everyone, I search really much but no result yet. What i need to do is to snap polygon's lines not only edges. I need to be able to snap any point around the polygon. Is that possible in any way, is there a property or what? Thanks in Advance Hi, Have a look at these posts , for sure they will help you. http://forums.arcgis.com/threads/48285-Snap-Options http://forums.arcgis.com/threads/27004-Polygon-Editing-Capabilities-in-Silverlight-API example - <esri:Map x:Name="MyMap" Extent="-13054165,3850112,-13027133,3863559" esri:Editor.SnapDistance="20" esri:Editor.SnapKey="S">
... View more
05-21-2012
11:10 PM
|
0
|
0
|
1106
|
|
POST
|
Hello, I am very new to using silverlight with c# and I am attempting to combine the address locator task and the Identify task. I want to use the graphic point created in searching for an address location to then identify data from an additional Dynamic map service layer with polygon data. Any guidance would be greatly appreciated. Thanks!! Hi, For your issues you need to pass the graphic point from the address location to the identify method. In this case the additional Dynamic map service layer with polygon data will be your identifytask service url. Please have a look on this code it might point you in the right direction. In the below code pass the address location to the StartIdentify method as a mappoint. private void StartIdentify(ESRI.ArcGIS.Client.Geometry.MapPoint clickPoint) { ESRI.ArcGIS.Client.Tasks.IdentifyParameters identifyParams = new IdentifyParameters() { Geometry = clickPoint, MapExtent = Map.Extent, Width = (int)Map.ActualWidth, Height = (int)Map.ActualHeight, LayerOption = LayerOption.visible }; IdentifyTask identifyTask = new IdentifyTask(Service_URL); identifyTask.ExecuteCompleted += IdentifyTask_ExecuteCompleted; identifyTask.Failed += IdentifyTask_Failed; identifyTask.ExecuteAsync(identifyParams); ESRI.ArcGIS.Client.Graphic graphic = new ESRI.ArcGIS.Client.Graphic() { Geometry = clickPoint, Symbol = LayoutRoot.Resources["DefaultPictureSymbol"] as ESRI.ArcGIS.Client.Symbols.Symbol }; //genmethods.ClearGraphik(Map, true, graphic); }
... View more
05-21-2012
10:46 PM
|
0
|
0
|
259
|
|
POST
|
Hi, I have added an infow window in my silverlight application to show the details of the location. Its working normally,But when i move the map with this info window open it goes over the parent control which holds the map. Is there any way to getrid of it? Please help. regards, Joby. Hi, I am having the same problem and tried to control the behavior by removing the infowindow if the mouse is going out of the map control. but while panning the map the mouse is inside the map control and infowindow then comes on top of other controls on edges of the map.
... View more
05-21-2012
09:18 PM
|
0
|
0
|
781
|
|
POST
|
This is very strange. Is there any chance you could have two apps running side-by-side: One that runs 2.4 and the other 3.0, then have Fiddler running and see if the requests that are sent to the server from the two apps are any different? Thanks , I tried to exactly as you asked me. But I failed to notice any differences between the two application requests to the gis server. The service requests for same zoom in/out operation for same location on map, from both the application instances looked same in fiddler in terms of columns - results and body and in statistics.
... View more
05-12-2012
09:26 PM
|
0
|
0
|
818
|
|
POST
|
That will be fixed in the 3.0 release. Thanks again Dominique , waiting for the final release now :rolleyes:.
... View more
05-09-2012
09:14 PM
|
0
|
0
|
899
|
|
POST
|
Is this the same service as before, or have the service also been upgraded? Yes the REST service (from production server AGS 10.0 SP2) is the same, nothing changed since it is serving the old live project build (ESRI SL API 2.4, MS SL 4.0) as well.
... View more
05-09-2012
09:07 PM
|
0
|
0
|
818
|
|
POST
|
[ATTACH=CONFIG]14200[/ATTACH]Hi, Recently in one of my new projects with ESRI SL API 3.0 (ArcGISSilverlight30_prerelease.exe) Silverlight 5, I found that the map was rendering very slow as compared to the same project compiled earlier with ESRI SL API 2.4 and MS Silverlight 4. The Map contains ArcGISDynamicMapServiceLayer with labels enabled from MXD level. In the new project the Labels as well as the map data both are rendering very slowly in some situations of zoom in and out. Though in the earlier project it was not the same. Also the new project does not have any code change as compared to earlier project source. If I am missing something here please guide,help for any new changes required for projects in the new version of the ESRI SL API 3.0. Thanks,
... View more
05-09-2012
02:00 AM
|
0
|
5
|
1140
|
|
POST
|
That's a bug. We'll try to get it fixed in a future version. Thanks for reproting that. Hi, I have recently checked this bug still present in (map rotated to double -38 and infowindow unable to display on top left and bottom right corners of the map) the ArcGIS API for Silverlight v3.0 , it is still not fixed. Map rotation is highly required in various cases and Infowindow issue should be fixed.
... View more
05-09-2012
01:21 AM
|
0
|
0
|
899
|
|
POST
|
Does esri has some thing like google maps does that in Find an Address to start auto populating as user starts typing? [ATTACH=CONFIG]13479[/ATTACH] Hi, for this you need to do some code and then you can achieve the similar functionality. In my case I have executed a query task on the sdk:AutoCompleteBox (xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" ) in its event for AutoBox_KeyUp. and further added the query results to the grid and displayed. therefore on every key up event I query and then clear the grid and then add the results to the grid.
... View more
05-08-2012
02:10 AM
|
0
|
0
|
356
|
|
POST
|
Hi, Requesting here for help/suggestions for the editor widget configuration issue. If I use the default editor widget sample as given in the resources silverlight api, for my mxd dataset. The symbols are not properly loaded in the application (editor widget symbol selector). Instead I get the default symbol for "<ALL OTHER VALUES>" symbology, set in the mxd. I have created a symbology in the mxd categorized as per the unique values of a particular field. Also if I remove the "<ALL OTHER VALUES>" symbology from the mxd then I do not get any symbol loaded in the editor widget template in application. The editor widget code in the xaml and c# is the same as the esri sample, we have tested this by using the same services from the esri sample, the editor behavior is correct but when we replace the service with our service we find the map loaded correctly but the symbol behavior incorrect as described earlier..
... View more
01-09-2012
11:38 PM
|
0
|
1
|
745
|
|
POST
|
I have been looking for this as well, as far as I can tell it is not currently possible. yes instead rotate the map from the mxd>msd>publish service but then you might issues in panning the map in the api. The pan operation then shifts the map irregularly.
... View more
01-04-2012
11:32 PM
|
0
|
0
|
1992
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-31-2024 01:05 AM | |
| 1 | 08-13-2025 02:51 AM | |
| 1 | 07-29-2024 12:11 AM | |
| 1 | 04-07-2019 11:33 AM | |
| 1 | 04-15-2021 01:19 AM |
| Online Status |
Offline
|
| Date Last Visited |
08-25-2025
01:46 AM
|