|
POST
|
At first glance I would say that it's a margin or offset issue in your symbol. How is defined your PushPinMarkerSymbol?
... View more
12-07-2010
05:56 AM
|
0
|
0
|
1802
|
|
POST
|
WMSLayer is defined in ESRI.ArcGIS.Client.Toolkit.Datasource so you need to include it in your project.
... View more
12-07-2010
05:55 AM
|
0
|
0
|
1867
|
|
POST
|
http://services.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Recent_Population/MapServer doesn't seem a live service for now. If you browse from http://services.arcgisonline.com/ArcGIS/rest/services , you can find the argisonline map services and test with one of them by copying the URL to your program (e.g. http://services.arcgisonline.com/ArcGIS/rest/services/Demographics/USA_Recent_Population_Change/MapServer)
... View more
12-06-2010
06:14 AM
|
0
|
0
|
1083
|
|
POST
|
Ahhh, yes, I think I eventually got it 🙂 Try this:
public partial class MyMapTip : UserControl
{
public MyMapTip()
{
InitializeComponent();
}
public static readonly DependencyProperty TipTextProperty = DependencyProperty.Register("TipText", typeof(String), typeof(MyMapTip), new PropertyMetadata(TipText_PropertyChangedCallback));
public string TipText
{
get { return (string)GetValue(TipTextProperty); }
set { SetValue(TipTextProperty, value); }
}
private static void TipText_PropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
MyMapTip myMapTip = d as MyMapTip;
myMapTip.tb.SetBinding(TextBlock.TextProperty, new System.Windows.Data.Binding((string)e.NewValue));
}
}
... View more
12-06-2010
06:00 AM
|
0
|
0
|
1412
|
|
POST
|
You don't need any binding,nor DP, nor datacontext initialization in your code. Try this simple version:
public partial class MyMapTip : UserControl
{
public MyMapTip()
{
InitializeComponent();
}
}
and call it like this: reportLayer.MapTip = new MyMapTip(); This should work : the binding is done in your XAML code and the initialization of the datacontext is done by the framework when the maptip opens up (the datacontext is set to the 'Attributes' property of the current graphic).
... View more
12-06-2010
02:57 AM
|
0
|
0
|
1412
|
|
POST
|
Looks like we are not talking about the same sample. I attached a screenshot of the zoomin command in action
... View more
12-05-2010
10:37 PM
|
0
|
0
|
2655
|
|
POST
|
You can remove the legend items of the ESRI services by hooking up the 'Refreshed' event. What you did for adding items for Image service, you can also do it for removing items that you don't need. (or another option, you can set 'Expanded' to false so the items are there but not visible). Sorry no idea for your question 2.:confused:
... View more
12-03-2010
12:35 PM
|
0
|
0
|
912
|
|
POST
|
Support for minScale and maxScale has beend added very recently. So I would need to know which version you are using? That being said I don't reproduce your issue with the latest version (see screenshot). Another question : how and when is populated your LayerInfoArray? The array in a dynamicmapservice layer is called 'Layers', in your watch window it's called 'LayerInfoArray' so I guess it's not the same and the issue could come from the copy.
... View more
12-03-2010
08:29 AM
|
0
|
0
|
1763
|
|
POST
|
I have with building the treelist myself,since I can embed layers (like Feature Layers) wherever I want, in whatever order, and add/remove them as I see fit If you set the LayerIDs property of the legend control, the layer legend will be displayed in the order given by this list of layers. You can also add/remove/change legend items by hooking up to LegendControl.refreshed event. but how can I check to see if a layer is in the scale range if I am not using the Legend control? That's the property I need, but I need to be able to access it without using the Legend control. The code of the 2.1 toolkit is now available here : http://esrisilverlight.codeplex.com/ so you can look at the implementation of IsInScaleRange in the legend control.
... View more
12-03-2010
08:09 AM
|
0
|
0
|
1172
|
|
POST
|
I guess you missed the transformation to host coordinates. Please look at Morten's answer in this thread : http://forums.arcgis.com/threads/3093-Graphic-Selection-based-on-Draw-Envelope-issue
... View more
12-03-2010
06:43 AM
|
0
|
0
|
1124
|
|
POST
|
This is a VS2010 bug and unfortunately, we didn't find any workaround. It only happens in design view of VS2010. This is the same bug that VisibleLayers one : http://forums.arcgis.com/threads/18545-VisibleLayers-error
... View more
12-02-2010
11:44 PM
|
0
|
0
|
1186
|
|
POST
|
The sample has zoomin and zoomout buttons, so you can look on how it's developed. You don't need any events on cursor, you can use the map events as with standard cursors.
... View more
12-02-2010
11:38 PM
|
0
|
0
|
2655
|
|
POST
|
Sorry, I am in lack of idea. With my version, I don't reproduce the behavior after setting a background. Which API version are you using?
... View more
12-02-2010
10:03 AM
|
0
|
0
|
2033
|
|
POST
|
Unfortunately this is a bug in the design view of VS2010. Your code will still compile and run though.
... View more
12-02-2010
10:00 AM
|
0
|
0
|
548
|
|
POST
|
I am not sure what you mean by 'I need multiple data attributes to be displayed' but anyway both options are possible. You can define the maptip in the XAML of the mainpage or you can create your own maptip user control (in another xaml file). With this last option, if needed, you might add dependency properties to your control.
... View more
12-02-2010
09:58 AM
|
0
|
0
|
2437
|
| 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
|