|
POST
|
I have a layer set as SchoolZones to work with some of my code and I would like to to display on the legend as "School Zones". Is there a way to set which layer you want to display with the layer IDs and also include and alias on how to display the layers? From 3.0, the Layer has a DisplayName property that can be used for that purpose. With previous versions the workaround is to change the LayerItem Label on event Lgend.Refreshed.
... View more
08-30-2012
04:22 AM
|
0
|
0
|
927
|
|
POST
|
You can use the intersect geometry service (sample). So you can get the geometry part that is inside the specified area. Then, depending on your need, you can either save that geometry or cancel the save if that geometry is not equal to the initial geometry (i.e. a part is outside the specified area).
... View more
08-28-2012
05:55 AM
|
0
|
0
|
1327
|
|
POST
|
The elements all just came to sea near Africa. I think, thats the 0,0,0,0 position. Might be a spatial reference issue,e.g the map in Web Mercator coordinates and data in geographical coordinates. Like this: <esri:GraphicsLayer.GraphicsSource> <esri:PointDataSource ItemsSource="{Binding DataSource.ServiceOrderLocations, Source={StaticResource DataContextProxy}}" XCoordinateBinding="{Binding ServiceOrderLocation.Longitude}" YCoordinateBinding="{Binding ServiceOrderLocation.Latitude}"> </esri:PointDataSource> </esri:GraphicsLayer.GraphicsSource> How to add attributes on PointDataSource, do you have a sample of that? AS you are using a PoitDataSource there is a sample here : http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#UsingPointDataSource Note that the maptip displays an attribute coming from the view model. Code: <esri:GraphicsLayer.MapTip>
<Border Padding="4,2" Background="#99333333" CornerRadius="8"
DataContext="{Binding [DataContext]}">
<TextBlock Text="{Binding Name}" Foreground="White" />
</Border>
</esri:GraphicsLayer.MapTip> The view model is stored in the attribute "DataContext" and from it you can access the 'Name' property. For a symbol the datacontext is one level up (you need to give the Attributes dictionary in the path), so a symbol displaying the Name property would contain: <TextBlock Text="{Binding Attributes[DataContext].Name}" Foreground="White" />
... View more
08-27-2012
05:21 AM
|
0
|
0
|
941
|
|
POST
|
AFAIK there is no way to do that. The problem being to get the underlying UI element under a graphic. But maybe someone found out a hack!
... View more
08-27-2012
01:08 AM
|
0
|
0
|
1042
|
|
POST
|
Systems.Windows.Interactivity & Microsoft.Expression.Interactions are blend SDK dll's that are needed for ArcGIS API for Silverlight. They can be downloded here. I guess there is a way to tweak the sample for not using these dlls but I never tried that.
... View more
08-27-2012
01:01 AM
|
0
|
0
|
3178
|
|
POST
|
I can add a graphic with a textbox marker symbol, but it does not respond to the GraphicsLayer.MouseLeftButtonUp event. I want to allow users to delete the text graphic with GraphicsLayer.Graphics.Remove(e.Graphic) in that event. LeftButtonDown and Up are used by the TextBox for the editing. So you can reuse them for another purpose. MouseRightButtonDown event should work.
... View more
08-27-2012
12:52 AM
|
0
|
0
|
3201
|
|
POST
|
PointDatasource with a custom MarkerSymbol, could not get properties to custom symbol (i want to forexample show a customername textblock on the symbol, checkboxes with TwoWay binding etc.) How to you create tour pointdatasource? You can add attributes to your graphics and these attributes shold then be able to be displayed on the symbol. ElemenLayer where i create elements manually (on code-behind), but this way i cant get the items to be on correct position. (My next plan was to set the binding manually on code-behind) Probably that the correct position is the top left position of your symbol. If that's the case, it's a 'center' issue. You can either apply a negative margin to your element (half it's size), or surround it with your own container that would center it's content.
... View more
08-27-2012
12:46 AM
|
0
|
0
|
941
|
|
POST
|
Wei, You could add the pan buttons. http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#PanButtons Chris Alternatively, users can use the arrow keys to scroll (up, down, left, right)
... View more
08-27-2012
12:34 AM
|
0
|
0
|
1137
|
|
POST
|
When you attach the ArcSOC process to your debugger do you see your SOE dll with 'Symbol Loaded' message? Can you also check the path of your dll? Your problem might be either because you didn't attach to the right process or because ArcSOC doesn't load the dll you expect to debug. You have to register your debug dll with /codebase option.
... View more
08-27-2012
12:30 AM
|
0
|
0
|
1108
|
|
POST
|
Sorry there is no option to reverse mouse wheel zoom with SL/WPF/WP API.
... View more
08-27-2012
12:27 AM
|
0
|
1
|
5234
|
|
POST
|
You can also use the Simplify geometry service. There is a sample here : http://resources.arcgis.com/en/help/silverlight-api/samples/start.htm#Simplify
... View more
08-27-2012
12:24 AM
|
0
|
0
|
586
|
|
POST
|
If you don't want to see the sublayers of a tiled map service in the legend, you can complete your legend_refreshed handler: private void Legend_Refreshed(object sender, Legend.RefreshedEventArgs e) { if (e.LayerItem.Layer is ESRI.ArcGIS.Client.ArcGISTiledMapServiceLayer) e.LayerItem.LayerItems = null; if (e.LayerItem.LayerItems != null) { foreach (LayerItemViewModel layerItemVM in e.LayerItem.LayerItems) { if (layerItemVM.IsExpanded) layerItemVM.IsExpanded = false; } } else { e.LayerItem.IsExpanded = false; } }
... View more
08-22-2012
01:39 AM
|
0
|
0
|
1005
|
|
POST
|
Using TabbedRibbon template can someone tell me how I would Tab/Pin the Toolbar on Start up? In TabRibbon.xaml.cs set isPinned to true instead of false. And in OnApplyTemplate, call RibbonExpand.Begin() if isPinned is true: if (RibbonExpand != null) { RibbonExpand.Completed += RibbonExpand_Completed; if (isPinned) RibbonExpand.Begin(); }
... View more
08-22-2012
01:24 AM
|
0
|
0
|
589
|
|
POST
|
Try with a slider in TimeExtent mode TimeMode="TimeExtent" Your service might not support well exact time value.
... View more
08-21-2012
06:58 AM
|
0
|
0
|
833
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-12-2025 03:01 AM | |
| 1 | 10-14-2025 09:24 AM | |
| 1 | 06-13-2013 09:22 AM | |
| 1 | 04-29-2022 02:21 AM | |
| 1 | 04-29-2022 02:28 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-30-2025
08:06 AM
|