Select to view content in your preferred language

GOOD APPLICATION BUT BASIC GIS TOOLS MISSING

2088
15
04-19-2012 06:23 AM
warrenkinyua
Emerging Contributor
Dear ESRI

Many thanks for silver light builder.The Application is very easy to use and Powerful but I cant find the following basic GIS Tools:

1.Measure Tool
2.Querry Tool
3.Find Tool
4.BookMarks Tool

Where can I get these add-inns without starting to code?

I greatly appreciate the attribute table functions


Regards
0 Kudos
15 Replies
KatherineDalton
Esri Regular Contributor
Hi Warren,

1. Measure tool - that is coming soon and we will be posting that in the Code Gallery.
2. Query tool - not provided, put other users may have put something together. You can also use the "Filter" functionality to see only the features that match a certain criteria.
3. Find tool - same, this is not provided but other users may have put something together.
4. Bookmark tool - we have a sample for this that you can download, compile, and add to the Application Builder. See the Toolkit section of our [url=http://help.arcgis.com/en/webapps/silverlightviewer/samples/start.html]Samples[/url] page.

Hope that helps,

Katy
Katy Dalton | Technical Consultant
THE SCIENCE OF WHERE™
0 Kudos
warrenkinyua
Emerging Contributor
Dear Katy

Thanks for the info. I will patiently wait for the measure tool.

I downloaded the BookMarks Tool but since am very new to this technology, am unable to add it to the builder.

Could you please take me through the process or refer me to a detailed tutorial

Regards
0 Kudos
KatherineDalton
Esri Regular Contributor
Hi Warren,

I've gone ahead and added the Bookmarks add-in to our Code" rel="nofollow" target="_blank">http://help.arcgis.com/en/webapps/silverlightviewer/gallery.htm... Gallery. Once you download and extract the files, you'll find a text file describing how to use the sample, and the ".xap" file that is actually uploaded to the Application Builder. See the instructions found in Extending" rel="nofollow" target="_blank">http://help.arcgis.com/en/webapps/silverlightviewer/help/i... the ArcGIS Viewer for Silverlight for uploading a xap (add-in) file.

Note that I can't upload the xap for each of our Samples since the majority of them are designed just as examples of coding practices, but Bookmarks happens to be one of the samples that can be used in a stand-alone sense.

Hope that helps,
Katy
Katy Dalton | Technical Consultant
THE SCIENCE OF WHERE™
0 Kudos
warrenkinyua
Emerging Contributor
Dear Katy

Many thanks Katy for the bookmarks add in. I have already added it to my application and working very well

Regards
0 Kudos
SatyajitDash
Deactivated User
Thanks Katy,

I have also downloaded the Bookmark add-in and implemented successfully in my viewer.
I am desperately waiting for the Measure tool.

When can we expect the code for the measure tool.

Cheers,

Satyajit
0 Kudos
KatherineDalton
Esri Regular Contributor
Hi Satyajit,

Thanks for your (and everyone's) patience on the Measure tool. We have it in the works and are hoping to get it posted soon. We'll be sure to post an announcement here on the forum when it is out.

Katy
Katy Dalton | Technical Consultant
THE SCIENCE OF WHERE™
0 Kudos
GavinMcGhie
Regular Contributor
Hi all
I'd like to also add that a few other basic functions would be nice, such as a 'previous extent' button and a map scale box where you could see the exact numeric scale or enter a new value. Also, the Gui to build a 'search by attributes' task is invaluable. Our users have come to expect these behaviors.

The Web ADF app builder in v10 AGS Manager was finally to the point where it included all the basic tool requirements to make a web map truly useable in a production environment with zero customization. It would be ideal if a comparison of the SL Builder (and Flex as well) would be made to the old Web ADF builder and all the same basic tools baked in.

Perhaps it just hasn't matured yet as pre-10 releases of the Web ADF builder were also missing some basic tools, so we have our fingers crossed.
Thanks, Gavin
0 Kudos
OlegLukyanov
Occasional Contributor
Yes, bookmarks work but my users  can't to add or clear bookmark in Viewer like I did it with ArcGIS API fo SL sample :(.

Sorry I'm novice in SL and VS but look like it is hard implement nice usefull ArcGIS API  SL samples as Add-Ins to ArcGIS SL Viewer.

Sorry for my poor English.

Oleg
0 Kudos
BrianLeroux
Frequent Contributor
I have developed a measuring tool by utilizing a custom layout template. I went this route because I liked the functionality of seeing the measurements on individual line segments. I also created a quick add-in that allows the Measuring Panel to be opened and closed but it is not necesary. Yuo can change the visibility of the MeasureBox Data Grid to Visible and it will remian open all the time. I've included a picture of this tool.
[ATTACH=CONFIG]14300[/ATTACH]

Custom Layout Measuring Code
<Grid x:Name="MeasureBox" HorizontalAlignment="Right" VerticalAlignment="Top" Width="Auto" Height="Auto" Margin="10" Visibility="Collapsed">
                    <Border Style="{StaticResource GlassyBorder}" Padding="10,3,10,3" Opacity="1">
                         <StackPanel >
                            <TextBlock Text="Measuring Tools" Foreground="White" FontSize="14" FontWeight="Bold" Margin="4" />
                            <TextBlock Text="Select Units:" Foreground="White" FontSize="12" Margin="2" />
                            <ComboBox x:Name="UnitCombo" Foreground="White" Margin="0,0,0,4" >
                                
                                <ComboBox.Items>
                                    <ComboBoxItem Content="Feet" IsSelected="True" Foreground="Black"/>
                                    <ComboBoxItem Content="Meters"  Foreground="Black"/>
                                    <ComboBoxItem Content="Miles"  Foreground="Black"/>
                                </ComboBox.Items>
                            </ComboBox>

                            <ComboBox x:Name="AreaCombo" Foreground="White">
                                <ComboBox.Items>
                                    <ComboBoxItem Content="SquareFeet" IsSelected="True"  Foreground="Black"/>
                                    <ComboBoxItem Content="SquareMeters"  Foreground="Black"/>
                                    <ComboBoxItem Content="SquareMiles"  Foreground="Black"/>
                                </ComboBox.Items>
                            </ComboBox>
                            <Rectangle Margin="0,10,0,10" Fill="White" Height="2" HorizontalAlignment="Stretch" />

                            <Button  Margin="0,0,0,2"                            
                            Content="Length(Line)"  >
                                <i:Interaction.Triggers>
                                    <i:EventTrigger EventName="Click">
                                        <esri:MeasureAction                                  
                                    AreaUnit="{Binding ElementName=AreaCombo, Path=SelectedItem.Content}"
                                    DisplayTotals="True"
                                    DistanceUnit="{Binding ElementName=UnitCombo, Path=SelectedItem.Content}"
                                    MapUnits="Meters"
                                    MeasureMode="Polyline"                                   
                                    FillSymbol="{StaticResource DefaultFillSymbol}"
                                    TargetName="Map"/>
                                    </i:EventTrigger>
                                </i:Interaction.Triggers>
                            </Button>
                            <Button Margin="0,2,0,2"                             
                            Content="Radius(Circle)"  >
                                <i:Interaction.Triggers>
                                    <i:EventTrigger EventName="Click">
                                        <esri:MeasureAction                                  
                                    AreaUnit="{Binding ElementName=UnitCombo, Path=SelectedItem.Content}"
                                    DisplayTotals="True"
                                    DistanceUnit="{Binding ElementName=UnitCombo, Path=SelectedItem.Content}"
                                    MapUnits="Meters"
                                    MeasureMode="Radius"                                   
                                    FillSymbol="{StaticResource DefaultFillSymbol}"
                                    TargetName="Map"/>
                                    </i:EventTrigger>
                                </i:Interaction.Triggers>
                            </Button>
                            <Button  Margin="0,2,0,2"                           
                            Content="Area(Polygon)"  >
                                <i:Interaction.Triggers>
                                    <i:EventTrigger EventName="Click">
                                        <esri:MeasureAction                                  
                                    AreaUnit="{Binding ElementName=AreaCombo, Path=SelectedItem.Content}"
                                    DisplayTotals="True"
                                    DistanceUnit="{Binding ElementName=UnitCombo, Path=SelectedItem.Content}"
                                    MapUnits="Meters"
                                    MeasureMode="Polygon"                                   
                                    FillSymbol="{StaticResource DefaultFillSymbol}"
                                    TargetName="Map"/>
                                    </i:EventTrigger>
                                </i:Interaction.Triggers>
                            </Button>
                            
                        </StackPanel>
                    </Border>

                </Grid>


Code in Add-In to toggle toll on/off Measuring tool in layout.
namespace MeasurementTool.AddIns
{
    [Export(typeof(ICommand))]
    [DisplayName("Measuring Tools")]    
    [ESRI.ArcGIS.Client.Extensibility.Description("Click to show or hide measuring tools.")]


    public class ToggleLayoutObject : ICommand
    {
        private FrameworkElement objectToToggle;

        public bool CanExecute(object parameter)
        {
            return true;
        }

        public event EventHandler CanExecuteChanged;

        public void Execute(object parameter)
        {
            if (objectToToggle == null)
                objectToToggle = MapApplication.Current.FindObjectInLayout("MeasureBox") as FrameworkElement;

            if (objectToToggle != null)
                objectToToggle.Visibility = objectToToggle.Visibility == Visibility.Visible ? Visibility.Collapsed : Visibility.Visible;

        }
    }
}
0 Kudos