Skip to content

rmamba/arcgis-toolkit-winstore

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

arcgis-toolkit-winstore

This project contains the set of controls for use with the Esri ArcGIS Runtime SDK for Windows Store apps. Included are a number of controls you can use to enhance your applications.

##What is in it?

ArcGIS Toolkit for Windows Store apps includes:

  • Legend - Displays a legend for a set of layers in your map.
  • Attribution : Displays copyright/attribution information for layers in your map.
  • ScaleLine : Displays current scale reference.

How Do I Use It?

  • Get the Github Repo by either cloning it or downloading the zip package from the master branch.
  • Add the ESRI.ArcGIS.Runtime.Toolkit project to your existing solution.
  • Right-click the project where you want to use the toolkit, select 'Add reference', and pick the toolkit project under the solutions tab.
  • Next register the xmlns namespace in the Page or UserControl where you want to use the control:
  xmlns:esriTK="using:ESRI.ArcGIS.Runtime.Toolkit.Xaml" 

Note: Some of the following examples assumes an ArcGIS map control named 'MyMap' is present.

####Legend Set the Layers property to the collection of layers you want to show legend for. If you only want to display layers that are visible at the current scale range, also set the Scale property. Set this to 'NaN' (or don't set it) to avoid filtering by layer scale visibility. Both of these properties are available for binding directly from the map. Example:

  <esriTK:Legend Layers="{Binding Layers, ElementName=MyMap}" 
    Scale="{Binding Scale, ElementName=MyMap}" />

Other useful properties:

  • ShowOnlyVisibleLayers - Don't show legend for layers not currently visible
  • ReverseLayersOrder - Reverses the layer order to easily order layers so that layers that are on top in the map is showing first in the legend. If you want more control over the order, use a converter or bind the collection via your view model to create a more custom collection.

####Attribution Simply set the Layers property to those layers that you want to display attribution for. Note that the terms of use for many services requires you to display some form of attribution, and this control will make that easy for you.

  <esriTK:Attribution Layers="{Binding Layers, ElementName=MyMap}" />

####ScaleLine

   <esriTK:ScaleLine Scale="{Binding Scale, ElementName=MyMap}" />

Resources

Issues

Find a bug or want to request a new feature? Please let us know by submitting an issue.

Contributing

Anyone and everyone is welcome to contribute.

Licensing

Copyright 2013 Esri

This source is subject to the Microsoft Public License (Ms-PL). You may obtain a copy of the License at

http://opensource.org/licenses/ms-pl

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

A copy of the license is available in the repository's license.txt file.

[](Esri Tags: ArcGIS Runtime SDK for Windows Store apps WinRT WinStore C# C-Sharp DotNet XAML) [](Esri Language: DotNet)

About

Toolkit for the ArcGIS Runtime SDK for Windows Store apps.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published