POST
|
FeatureTable | API Reference | ArcGIS API for JavaScript 3.25 < Boolean > scrollToRow Optional Indicates whether the table should scroll to selected rows. If multiple row ids are provided, scrolls to first row in the array. Default value: false. Note that if scrollToRow is true, selection only occurs if rows are already displayed within the table. This is a known limitation with Dojo's dgrid. selection only occurs if rows are already displayed within the table
... View more
07-20-2018
03:05 PM
|
0
|
0
|
852
|
POST
|
Question: Why ESRI does not include Displayfieldname that is set in layer's MXD in the result of the list of Return Fields? In my application if I do not include the Displayfieldname in the Return Fields of my Rest Query, my datagrid that is bound based on Displayfieldname fails.
... View more
12-07-2011
09:24 AM
|
0
|
1
|
674
|
POST
|
Thanks for reply. Yes ,I did see the ESRI legend control , but the ESRI legend control does not have any options to hide layers that are not drawn based on the map scale limit set in MXD. I want to show the layer in the legend if it is in map scale range, and hide it when it is out of the range.
... View more
09-27-2011
08:15 AM
|
0
|
0
|
303
|
POST
|
I am using Configurable Silverlight Sample Viewer for ArcGIS 2.2. I like to hide layers that are not drawn at the present scale. I do not see Visiblity property for LegendItemInfo. For testing I tried to collapse the visibility of all nodes by this
Binding bindIsVisible = new Binding("Visibility");
bindIsVisible.Mode = BindingMode.TwoWay;
bindIsVisible.Source = Visibility.Collapsed;
fLayerNode.SetBinding(TreeViewItem.VisibilityProperty, bindIsVisible);
but it did not work.
private void CreateDynamicLayerTree(string mapID, LayerLegendInfo legendInfo, TreeViewItem layerNode, LayerInfo[] lyrInfos, List<int> layerIDs, List<int> visibleLayerIDs, bool toggleLayer, bool parentVisible)
{
if (legendInfo.LayerLegendInfos != null)
{
foreach (LayerLegendInfo layerLegendInfo in legendInfo.LayerLegendInfos)
{
if (layerIDs.IndexOf(layerLegendInfo.SubLayerID) > -1)
{
LayerInfo lyrInfo = lyrInfos[layerLegendInfo.SubLayerID];
bool hasSubLayers = lyrInfo.SubLayerIds != null;
bool lyrVisib = (toggleLayer) ? ((visibleLayerIDs.Count > 0) ? false : lyrInfo.DefaultVisibility) : lyrInfo.DefaultVisibility;
//MessageBox.Show("layerLegendInfo.LayerName= " + layerLegendInfo.LayerName + " hasSubLayers= " + hasSubLayers + " lyrVisib=" + lyrVisib + " parentVisible " + parentVisible);
if (!hasSubLayers && lyrVisib && parentVisible) visibleLayerIDs.Add(layerLegendInfo.SubLayerID);
TreeViewItem fLayerNode = CreateFeatureLayerNode(mapID, lyrInfo.Name, lyrInfo.ID, layerLegendInfo.MinimumScale, layerLegendInfo.MaximumScale, lyrVisib, hasSubLayers, toggleLayer);
fLayerNode.ItemTemplate = this.Resources["SymbolTreeNode"] as DataTemplate;
fLayerNode.ItemsSource = layerLegendInfo.LegendItemInfos;
Binding bindIsVisible = new Binding("Visibility");
bindIsVisible.Mode = BindingMode.TwoWay;
bindIsVisible.Source = Visibility.Collapsed;
fLayerNode.SetBinding(TreeViewItem.VisibilityProperty, bindIsVisible);
layerNode.Items.Add(fLayerNode);
CreateDynamicLayerTree(mapID, layerLegendInfo, fLayerNode, lyrInfos, layerIDs, visibleLayerIDs, false, lyrVisib && parentVisible);
}
}
}
... View more
09-26-2011
02:17 PM
|
0
|
3
|
647
|
POST
|
It seems esriToolkitPrimitives does not show a custom Marker Symbol collection . When I use a custom Marker Symbol ( inherited form MakerSymbol with size and color dependency properties ) , the symbols do not show up in the combo box. I do not have any problem if i switch to MarkerSymbol collection intead of custom ones. <StackPanel Orientation="Horizontal"> <ComboBox x:Name="ComboMarkerSymbol" ItemsSource="{StaticResource EsriCustomMarkerSymbolCollection}" HorizontalAlignment="Left" VerticalAlignment="Top" > <ComboBox.ItemsPanel> <ItemsPanelTemplate> <toolkit:WrapPanel Orientation="Horizontal" Background="LightBlue" Width="210" VerticalAlignment="Top"/> </ItemsPanelTemplate> </ComboBox.ItemsPanel> <ComboBox.ItemTemplate> <DataTemplate> <Button Click="MarkerSymbolButton_Click" > <esriToolkitPrimitives:SymbolDisplay Height="25" Width="30" Symbol="{Binding}" /> </Button> </DataTemplate> </ComboBox.ItemTemplate> </ComboBox> </StackPanel> here is the custom Market Symbol: --------------------------------------------------------------------------------------------- public class CustomMarkerSymbol : MarkerSymbol { public static readonly DependencyProperty ColorProperty = DependencyProperty.Register("Color", typeof(Brush), typeof(CustomMarkerSymbol), null); public static readonly DependencyProperty SelectionColorProperty = DependencyProperty.Register("SelectionColor", typeof(Brush), typeof(CustomMarkerSymbol), null); public static readonly DependencyProperty SizeProperty = DependencyProperty.Register("Size", typeof(double), typeof(CustomMarkerSymbol), null); public CustomMarkerSymbol() { this.Color = new SolidColorBrush(Colors.Red); this.SelectionColor = new SolidColorBrush(Colors.Cyan); } public Brush Color { get { return (Brush)GetValue(ColorProperty); } set { SetValue(ColorProperty, value); } } ............... and here is my dictionary : <local:ObjectCollection x:Name="EsriCustomMarkerSymbolCollection"> <classData:CustomMarkerSymbol x:Name="CustomMarker_33" OffsetX="6.5" OffsetY="6.5"> <classData:CustomMarkerSymbol.ControlTemplate> <ControlTemplate> <Grid RenderTransformOrigin="0.5,0.5"> <Grid.RenderTransform> <TransformGroup> <ScaleTransform ScaleX="{Binding Symbol.Size}" ScaleY="{Binding Symbol.Size}" /> </TransformGroup> </Grid.RenderTransform> <Ellipse Width="13" Height="13" Fill="{Binding Symbol.Color}" HorizontalAlignment="Center" VerticalAlignment="Center" /> </Grid> </ControlTemplate> </classData:CustomMarkerSymbol.ControlTemplate> </classData:CustomMarkerSymbol> </local:ObjectCollection> </ResourceDictionary>
... View more
08-30-2011
11:16 AM
|
0
|
0
|
278
|
POST
|
is it possible to change ScaleTransform ScaleX and ScaleY at runtime for a markersymbol? How?
... View more
08-22-2011
09:25 AM
|
0
|
1
|
502
|
POST
|
any answer to this? I added the connection string to the web.config file in REST virtual directory , and still i have the same problem.
... View more
03-21-2011
05:55 PM
|
0
|
0
|
333
|
POST
|
I have a model of Entity Framework with a connection string to database in App.Config file within SOE project. When I debug SOE ( Rest Service ) , I get this error: The specified named connection is either not found in the configuration, not intended to be used with the EntityClient Provider, not valid How come the connection string in App.Config cannot be found when I call REST Service? I am able to update the Entity model by right Clicking on .edmx file . It seems the connection defined in App.Config is valid though. I also followed this thread and i could not find any working solution http://social.msdn.microsoft.com/Forums/en-US/adodotnetentityframework/thread/70f124b6-5003-4011-8142-9c7e4ac6c4a0/ Any help?
... View more
03-19-2011
02:22 PM
|
0
|
0
|
465
|
POST
|
I have a model of Entity Framework with a connection string to database in App.Config file within SOE project. When I debug SOE ( Rest Service ) , I get this error: The specified named connection is either not found in the configuration, not intended to be used with the EntityClient Provider, not valid How come the connection string in App.Config cannot be found when I call REST Service? I am able to update the Entity model by right Clicking on .edmx file . It seems the connection defined in App.Config is valid though. I also followed this thread and i could not find any working solution http://social.msdn.microsoft.com/Forums/en-US/adodotnetentityframework/thread/70f124b6-5003-4011-8142-9c7e4ac6c4a0/ Any help?
... View more
03-19-2011
12:53 PM
|
0
|
5
|
549
|
POST
|
I like to show the name of the field that has uniqueValues. I can see the name of the field as "defaultLabel" in REST but I do not know how to bind it inside esri:Legend.MapLayerTemplate. http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Fire/Sheep/MapServer/0?f=json&pretty=true I tried this : <StackPanel Orientation="Vertical"> <TextBlock Text="{Binding Layer.defaultLabel}" FontWeight="Bold" VerticalAlignment="Center" /> </StackPanel> but it did not work.
... View more
02-08-2011
06:33 AM
|
0
|
1
|
436
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|