|
POST
|
Morten gave some interesting clues in this discussion : http://forums.arcgis.com/threads/3888-Turning-an-ArcGISDynamicMapServiceLayer-into-a-FeatureLayer You don't create a MapTip as such. You just instantiate a usercontrol that contains the information you need, add it to the page, and position at the click position (you can use e.GetPosition(parentOfMyCustomMapTopControl) to get that location). Use the margins/alignments on the control to position it. Hope this help.
... View more
06-11-2010
03:22 AM
|
0
|
0
|
375
|
|
POST
|
Great:) I am very glad you eventually get the tool to work. Note that I don't think it's useful to chain with the 'Copy Feature' tool. You could directly give the real name instead of in_memory and declare the output of the random tool as parameter. But that's not very important.
... View more
06-10-2010
07:23 AM
|
0
|
0
|
1294
|
|
POST
|
Great:) Concerning the sublayers, MapServiceInfo.Layers is an array of LayerInfo giving the basic information about the sublayers. So you could display the layers by replacing in Page.xaml, the textbox giving the info about the map cache by a listbox binded to 'MapServiceInfo.Layers' (it's just an example). <!--<TextBox Grid.Column="1" Grid.Row="3" Foreground="White" FontWeight="Normal" FontStyle="Italic" TextWrapping="Wrap" BorderBrush="Transparent" Background="Transparent" Text="{Binding Path=MapServiceInfo.SingleFusedMapCache, Mode=OneWay}"/>-->
<TextBox Grid.Column="0" Grid.Row="3" Foreground="White" FontWeight="Bold" FontStyle="Normal" TextWrapping="Wrap" BorderBrush="Transparent" Background="Transparent" Text="Layers"/>
<ListBox Grid.Column="1" Grid.Row="3" FontWeight="Bold" FontStyle="Normal" BorderBrush="Transparent" Background="Transparent"
ItemsSource="{Binding MapServiceInfo.Layers}" DisplayMemberPath="Name"/>
... View more
06-10-2010
07:18 AM
|
0
|
0
|
1739
|
|
POST
|
Hi Wei, It's still unclear to me. Do you mean: - that your application developed with VS2010 is not working at all (even outside of VS2010)? - that your application is working outside of VS2010 but not working if, for example, you try to debug it inside VS2010? - that you have some issues with the design mode in VS2010 (for example using the server explorer)?
... View more
06-09-2010
03:52 AM
|
0
|
0
|
1086
|
|
POST
|
when i tried putting my server's url, it doesn't work... it shows a exclamation icon.... It should work if your server is visible from the server hosting the Silverlight application. This is probably not the case if you are using the live link. will the code work for wpf? The sample is only Silverlight, but I guess it's possible to adapt it for WPF. the reference to ESRI.ArcGIS is missing. This sample is a little bit old. Some namespaces have changed : ESRI.ArcGIS is now ESRI.ArcGIS.Client and it's now no more useful to use the System.Windows.Controls.Toolkit to get a TreeView. So, you have : [INDENT]- in the references :[/INDENT] [INDENT][INDENT]. to replace ESRI.ArcGIS by ESRI.ArcGIS.Client[/INDENT][/INDENT] [INDENT][INDENT]. to remove System.Windows.Controls.Toolkit[/INDENT][/INDENT] [INDENT]- in MapServiceInfo.cs :[/INDENT] [INDENT][INDENT]. to replace using ESRI.ArcGIS.Geometry by using ESRI.ArcGIS.Client.Geometry[/INDENT][/INDENT] [INDENT]- to add using ESRI.ArcGIS.Client in TileInfoInfo.cs, LayerEventArgs.cs and ServerTreeView.xaml.cs[/INDENT] [INDENT]- to replace Controls.Toolkit by Controls in ServerTreeView.xaml[/INDENT]
... View more
06-09-2010
03:47 AM
|
0
|
0
|
1739
|
|
POST
|
You are right Oren, I made a mistake. The method to pan is 'PanTo' and not 'ZoomTo'. Sorry about that.
... View more
06-09-2010
03:27 AM
|
0
|
0
|
589
|
|
POST
|
I am not sure what you exactly mean. If your goal is to force the map to stay within a specified extent, you can use the constrainExtentBeghavior. Sample : http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#ConstrainExtentBehavior
... View more
06-08-2010
01:03 AM
|
0
|
0
|
359
|
|
POST
|
Sample of a server explorer showing in a treeview a dynamic catalog of the ArcGIS Server map services : http://resources.esri.com/arcgisserver/apis/silverlight/index.cfm?fa=codeGalleryDetails&scriptID=16243 You can also test it live : http://maps.esri.com/serverexplorer/default.htm
... View more
06-08-2010
01:00 AM
|
0
|
0
|
1739
|
|
POST
|
Depending on what you are doing, you could: 1) Customize the navigation control provided in the toolkit. In Blend: [INDENT]- insert the navigation control[/INDENT] [INDENT]- right click on it[/INDENT] [INDENT]- choose 'Edit Template' and then 'Edit a copy'[/INDENT] [INDENT]- change the look as you need.[/INDENT] 2) Programmatically in C# use the ZoomTo method on the map. 3) In XAML, use the PanToAction (example : http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#NavigationActions)
... View more
06-08-2010
12:55 AM
|
0
|
0
|
589
|
|
POST
|
The initialization of the Binding property of the grid column is missing is the code of your DataGridTextColumn class : public GraphicAttributeColumn()
{
Binding b = new System.Windows.Data.Binding("Attributes");
b.Converter = new DictionaryConverter();
BindingObj = b;
this.Binding = b; // MISSING
} That being said the usage of the Dictionary converter is not needed with WPF (nor with Silverlight 4.0), so instead of using your custom class, you could use the standard DataGridTextColumn class: <slData:DataGridTextColumn Width="80" SortMemberPath="STATE_NAME" Binding="{Binding Attributes[STATE_NAME]}" Header="State Name" />
... View more
06-07-2010
03:02 AM
|
0
|
0
|
884
|
|
POST
|
As far as I know, if you don't publish the SHAPE field (by making it invisible in ArcMAP), you won't be able to get the geometry.
... View more
06-07-2010
02:51 AM
|
0
|
0
|
392
|
|
POST
|
You can create your own custom symbol and set the property StrokeDashArray as you want.
... View more
06-07-2010
02:49 AM
|
0
|
0
|
581
|
|
POST
|
1) Get a bing token at http://www.bingmapsportal.com 2) Insert a Bing TileLayer in your map <esriBing:TileLayer LayerStyle="<your expected style>" Token="<your token>"/>
... View more
06-07-2010
02:37 AM
|
0
|
0
|
377
|
|
POST
|
Duplicate with http://forums.arcgis.com/threads/5874-Extent-how-is-the-extent-of-a-map-determined.?p=17392&posted=1#post17392
... View more
06-07-2010
02:30 AM
|
0
|
0
|
394
|
|
POST
|
map.Layers has a method GetFullExtent which is giving the full extent of the map. This method is only valid after the layer collection has been initialized. So you have to subscribe to the 'LayersInitialized' event. Something like: private void MyMap_Initialized(object sender, System.EventArgs e)
{
Map map = sender as Map;
map.Layers.LayersInitialized += new LayerCollection.LayersInitializedHandler(Layers_LayersInitialized);
}
void Layers_LayersInitialized(object sender, System.EventArgs args)
{
LayerCollection col = sender as LayerCollection;
Envelope env = col.GetFullExtent();
}
... View more
06-07-2010
02:29 AM
|
0
|
0
|
439
|
| Title | Kudos | Posted |
|---|---|---|
| 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 | |
| 1 | 09-07-2021 03:12 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-30-2025
08:06 AM
|