Fishing in Indiana with the ArcGIS API for Silverlight / WPF. Create the application. Add layers. Change the basemaps



Similar documents
Hands-On Lab. Building a Data-Driven Master/Detail Business Form using Visual Studio Lab version: Last updated: 12/10/2010.

How to create pop-up menus

MicroStrategy Desktop

Data Visualization. Prepared by Francisco Olivera, Ph.D., Srikanth Koka Department of Civil Engineering Texas A&M University February 2004

Prints and Photographs Online Catalog Web Address

Introduction Download and Install Mobile Application About Logging In Springboard Navigation List Pages...

WFP Liberia Country Office

Build an ArcGIS Online Application

Overview of the Adobe Flash Professional CS6 workspace

A SharePoint Developer Introduction. Hands-On Lab. Lab Manual SPCHOL306 Using Silverlight with the Client Object Model VB

ComponentOne. Windows for WPF

Creating Hyperlinks & Buttons InDesign CS6

ESRI China (Hong Kong) Limited

Using Adobe Dreamweaver CS4 (10.0)

Adobe Illustrator CS5 Part 1: Introduction to Illustrator

Quick Guide. WebNow. Description. Logging on to WebNow. Document Management System

Lession: 2 Animation Tool: Synfig Card or Page based Icon and Event based Time based Pencil: Synfig Studio: Getting Started: Toolbox Canvas Panels

QUICK REFERENCE: ADOBE ILLUSTRATOR CS2 AND CS3 SECTION 1: CS3 TOOL BOX: PAGE 2 SECTION 2: CS2 TOOL BOX: PAGE 11

Table of Contents. I. Banner Design Studio Overview II. Banner Creation Methods III. User Interface... 8

Vodafone Business Product Management Group. Hosted Services EasySiteWizard Pro 8 User Guide

Flash MX Image Animation

Data Visualization. Brief Overview of ArcMap

Create a Poster Using Publisher

Visualization with Excel Tools and Microsoft Azure

WHAT S NEW IN OBIEE

Introduction to Microsoft Word 2008

Microsoft Office PowerPoint Creating a new presentation from a design template. Creating a new presentation from a design template

Spatial Adjustment Tools: The Tutorial

Intellect Platform - Tables and Templates Basic Document Management System - A101

How To Write A Cq5 Authoring Manual On An Ubuntu Cq (Windows) (Windows 5) (Mac) (Apple) (Amd) (Powerbook) (Html) (Web) (Font

6. If you want to enter specific formats, click the Format Tab to auto format the information that is entered into the field.

Advanced Presentation Features and Animation

Activity: Using ArcGIS Explorer

Microsoft FrontPage 2003

University of Arkansas Libraries ArcGIS Desktop Tutorial. Section 2: Manipulating Display Parameters in ArcMap. Symbolizing Features and Rasters:

MicroStrategy Analytics Express User Guide

Instructions for Creating a Poster for Arts and Humanities Research Day Using PowerPoint

Petrel TIPS&TRICKS from SCM

WPF Learner s Guide to Head First C#

Build Your First Web-based Report Using the SAS 9.2 Business Intelligence Clients

How to create a Flash banner advert in DrawPlus X2

Web Dashboard User Guide

ArcGIS online Introduction Module 1: How to create a basic map on ArcGIS online Creating a public account with ArcGIS online...

Microsoft Access 2010 Overview of Basics

Business Objects Version 5 : Introduction

WEB MAPPING TOOL DOCUMENTATION

Dreamweaver and Fireworks MX Integration Brian Hogan

INTRODUCTION to ESRI ARCGIS For Visualization, CPSC 178

Decision Support AITS University Administration. Web Intelligence Rich Client 4.1 User Guide

TABLE OF CONTENTS SURUDESIGNER YEARBOOK TUTORIAL. IMPORTANT: How to search this Tutorial for the exact topic you need.

Virto Pivot View for Microsoft SharePoint Release User and Installation Guide

Basic tutorial for Dreamweaver CS5

MyOra 3.0. User Guide. SQL Tool for Oracle. Jayam Systems, LLC

Handout: Word 2010 Tips and Shortcuts

Graphic Design Basics Tutorial

Form Management Admin Guide

From Data Modeling to Data Dictionary Written Date : January 20, 2014

WYSIWYG Editor in Detail

Custom Reporting System User Guide

The Reporting Console

Access 2007 Creating Forms Table of Contents

Excel 2007 Basic knowledge

understand how image maps can enhance a design and make a site more interactive know how to create an image map easily with Dreamweaver

Recreate your Newsletter Content and Layout within Informz (Workshop) Monica Capogna and Dan Reade. Exercise: Creating two types of Story Layouts

Sample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9.

Basic Introduction. GMFX MetaTrader 4.0. Basic Introduction

Config Guide. Gimmal Smart Tiles (SharePoint-Hosted) Software Release 4.4.0

WEB TRADER USER MANUAL

WebViewer User Guide. version PDFTron Systems, Inc. 1 of 13

All V7 registers support barcode printing, except the Sharp 410/420 1A ROM and that limitation is based upon the register.

Microsoft Word 2010 Tutorial

Installation & Configuration Guide Professional Edition

ArcGIS Viewer for Silverlight An Introduction

Table of Contents. I. Using ical... pg. 1. Calendar views and formats..pg. 1 Navigating the calendar.pg. 3 Searching the calendar..pg.

PowerPoint 2007 Basics Website:

Ohio University Computer Services Center August, 2002 Crystal Reports Introduction Quick Reference Guide

Geocortex HTML 5 Viewer Manual

City of Corpus Christi. Mobile GIS Viewer. For ipad

SMART NOTEBOOK 10. Instructional Technology Enhancing ACHievement

Building a Personal Website (Adapted from the Building a Town Website Student Guide 2003 Macromedia, Inc.)

Introduction to ProForm Rapid elearning Studio. What is ProForm? The ProForm Course Authoring Tool allows you to quickly create

Building and Using Web Services With JDeveloper 11g

Working With Animation: Introduction to Flash

Create an Excel BI report and share on SharePoint 2013

Contents. Launching FrontPage Working with the FrontPage Interface... 3 View Options... 4 The Folders List... 5 The Page View Frame...

Layout Tutorial. Getting Started

Creating Figure Ground Maps in ArcMap 10.x: Basic procedures to download, open, manipulate and print spatial data

8 CREATING FORM WITH FORM WIZARD AND FORM DESIGNER

Homework 9 Android App for Weather Forecast

There are various ways to find data using the Hennepin County GIS Open Data site:

WIX: Building a Website with a Template. Choosing a Template First you will need to choose a template from the Create section of the Wix website.

How To Create A Site In Sharepoint 2013

Virto SharePoint Gantt Chart App for Office 365 Release User and Installation Guide

Microsoft Publisher 2010 What s New!

Smart Board Notebook Software A guide for new Smart Board users

Responsive Web Design for Teachers. Exercise: Building a Responsive Page with the Fluid Grid Layout Feature

Creating Forms with Acrobat 10

Transcription:

Fishing in Indiana with the ArcGIS API for Silverlight / WPF Create the application Start Blend New Standard Mapping Application Build the project and run. o Show major parts of the app Add layers Show objects and timeline Show properties of the map Click Layers o Show the existing layer o Add a new Dynamic layer Start a browser and navigate to http://dnrmaps.dnr.in.gov/arcgis/rest/services (Normally this is how you would find a service). Copy the URL from the browser In Blend, click the Arrow next to URL. Explore ArcGIS Online and show how the Service Browser works. Add the dnr server to the list by pasting it into the Add Server text box and click Add Server. Add the ProgramMaps > Trails DNR OutRec and click OK. Change the visible layers to 0. o Add a new FeatureLayer For URL choose ProgramMaps > FishingSites2 > AccessSites. For Where enter OBJECTID > 0 (We have to do this at the state because the default query would be 1 = 1 which is blocked by the states firewall) For ID enter fishing o Add a new Graphics Layer ID graphics o Click OK to the Layers Collection Editor. Run the application to show the features Change the basemaps Edit the layers of the map o Changed the Tiled map service to World StreetMap. o Copy the URL. o Save the URL as a New Resource named StreetMapURL. Select the streets radio button In the Objects and Timeline select the SetLayerUrlAction under the RadioButton Set the URL to the StreetMapURL resource.

Paste the URL into a browser. Navigate into the World_Topo_Map map service and copy the URL. In the Objects and Timeline select the SetLayerUrlAction under the Topo RadioButton Paste the URL into the URL property. Save the URL as a resource named TopoMapURL. In the browser navigate to http://gis.in.gov/arcgis/rest/services Navigate into the Imagery_Basemap service. Copy the URL. In the Objects and Timeline select the SetLayerUrlAction under the Imagery RadioButton Paste the URL into the URL property. Save the URL as a resource named ImageryURL. Test the app. Notice that the overview and magnifier tools don t work. Set the extent to Indiana In Blend select the map and expand Map Settings on the Properties tab. Set the extent as follows (I got these by drawing a box in ArcMap after adding the basemap from AGO). (spaces in the numbers are just for readability) o SR WKID: 102 100 o XMax: 942 7980 o XMin: 981 9670 o YMAX: 513 1256 o YMin: 453 6882 Save the map extent to a new resource named INFullExtent. Set the URL for the Magnifying glass to the ImageryURL resource. Set the URL for the OverviewMap to the StreetMapURL resource. In the Overview map properties set the MaximumExtent to INFullExtent. Test the application. Add a new symbol In the Projects window Right click Styles and click Add New Item. Choose Resource Dictionary and for file name enter MySymbols.xaml and click OK. Open a browser and go to the symbol gallery. Choose Custom Marker Symbols. Click on the CustomStrobeMarkerSymbol. Click Resource Dictionary XAML and copy the entire first line. Paste it over the ResourceDictionary element in MySymbols.xaml. From the Symbol Gallery, copy all the Symbol XAML. Paste it into your resource gallery. Show that this has some animation defined in the visual state group CommonStates.

Change CommonStates to SelectionStates and change MouseOver to Selected. See the Remarks section of the Control Template property of the Markersymbol in the API reference (http://resources.esri.com/help/9.3/arcgisserver/apis/silverlight/apiref/api_start.htmc). Open the Layers Collection for the map. Set the symbol for the FeatureLayer to the CustomStrobeMarkerSymbol local resource. Show attributes for the fishing locations with a Feature Data Grid Add a reference to C:\Program Files (x86)\microsoft SDKs\Silverlight\v3.0\Libraries\Client\ System.Windows.Controls.Data. From Assets, Add a WindowPanel to the page. Edit the properties of the WindowPanel o Name: fishingdata o HorizontalContentAlignment: Stretch o VerticalContentAlignment: Stretch Add a FeatureDataGrid inside the windowpanel. Edit the properties of the FeatureDataGrid. o Margin: 5,5,5,8 o HorizontalAlignment: Stretch o VerticalAlignment: Stretch o Height/Wdith: Auto o Map: Data Binding > Element Property > Map o GraphicsLayer Data Binding > Element Property > Map > Layers[2] (use a custom path expression) Open the properties for the feature layer. Add fields to the FeatureDataGrid (OutFields) o Add a string of value SITE_NAME,LAND_TYPE,WATERBODY,LOCATION,ADA_ACCESS,BOAT_RAMP,SHORELI NE,TYPE_OF_LA,FEE,MOTOR,MOTOR_REST (* causes a scripting error) Demo feature data grid o Select multiple o Select all Behaviors Change the name of the menu items o Zoom to IN o Toggle Fishing o Delete menu item #3 Drag ZoomToLayerAction onto the Zoom to IN menu o Set the TargetName to the Map (using the selector) o Set its layer ID to fishing Drag ToggleLayerAction onto the Toggle Fishing menu

o o Set Targetname to the Map For LayerID enter fishing Drag ToggleVisibilityAction onto the Toggle Fishing menu o Set the Target name by clicking the elipses and navigating to the datagrid window (fishingdata). Test the application Make a toolbar Add a border o Background: Local Resource CommonBackgroundBrush o Border: Local Resource CommonBorderBrush o CornerRadius: 10 o Effect: Local Resource dropshadow. o HorrizaontalAlignment: Left o VerticalAlignment: Top Add a grid inside the border (in objects and timeline because the border is now so small) o Margin: 5,5,5,8 o Two rows Add textblock to top row o Forground: white o Text: Redlining tools o Margin: Reset o HorrizontalAlignment: Middle o VerticleAlignment: Middle Add a stack panel to the second row o Margin: Reset o Orientation: Horizontal Add 5 buttons to the stack panel Make the buttons/border/grid/and stack panel width and height Auto Add MouseDragElementBehavior to the border Test the application o Show that the new toolbar can be dragged around Change the text for the buttons o Point, Line, Polygon, Freehand, Clear Add the RedlineAction to the Point o DrawMode Point o TargetName: Map (use the Artboard element picker) o GraphicsLayerID: graphics Copy the RedlineAction to the other buttons Change the DrawMode on each of the other buttons Add ClearGraphicsAction to the Clear button

o TargetName: Map o GraphicsLayerID: graphics Test the application Changing the look and feel of the app Edit Styles.xml CommonBackgroundBrush o 0% break: White o 10% break: Black o 100% break: Dark Grey (or any other dark color) Set feature data grid window to the CommonBackgroundBrush Edit the template for the first button (in Styles.xaml) o Change background gradient to CommonBackgroundBrush o Foreground to white Change style for other buttons to the style of the first Edit ApplicationTitle and ApplicationSubtitle in the resources o Indianan Fishing o Indiana Department of Natural Resources Optional Fun with feature layers In Blend, Map Properties > Layers FeatureLayer For Clusterer click New. Click OK. Test the application. Map Properties > Layers FeatureLayer For MapTip click New. Select Border and click OK. Set the Background of the border to CommonBackgroundBrush. Set the corner radius to 10. Click OK. Edit in Visual Studio. Open a browser and navigate to the Silverlight Interactive Samples > Feature Layers > MapTips. Show that the MapTips use a converter. Copy the namespace for the converter into the namespace definitions of the app in visual studio. (top of the page) Copy the converter resources into the application in visual studio into UserControl.Resources. Use the Document Outline to find the MapTip.

Copy the maptip content into visual studio. Change CITY_NAME to SITE_NAME. Change Population to Waterbody. Change POP1990 to WATERBODY. Change the foreground for the three text boxes to white. Test the app. Optional selecting features Show properties of the map Click Layers o Add another GraphicsLayer to the bottom of the list ID: selection o Select the fishing feature layer Next to the URL property click the Advanced property options and click Convert to new resource Name the resource fishingurl and click OK. o Click OK From Assets, Add a WindowPanel to the page. Edit the properties of the WindowPanel o Name: selectiondata o HorizontalContentAlignment: Stretch o VerticalContentAlignment: Stretch o Background: CommonBackgroundBrush Add a FeatureDataGrid inside the windowpanel. Edit the properties of the FeatureDataGrid. o Margin: 5,5,5,8 o HorizontalAlignment: Stretch o VerticalAlignment: Stretch o Height/Wdith: Auto o Map: Data Binding > Element Property > Map o GraphicsLayer Data Binding > Element Property > Map > Layers[4] (use a custom path expression) Add a border o Background: Local Resource CommonBackgroundBrush o Border: Local Resource CommonBorderBrush o CornerRadius: 10 o Effect: Local Resource dropshadow. o HorrizaontalAlignment: Left o VerticalAlignment: Top Add a grid inside the border (in objects and timeline because the border is now so small)

o Margin: 5,5,5,8 o Two rows Add textblock to top row o Forground: white o Text: Selection tools o Margin: Reset o HorrizontalAlignment: Middle o VerticleAlignment: Middle Add a stack panel to the second row o Margin: Reset o Orientation: Horizontal Add 4 buttons to the stack panel Make the buttons/border/grid/and stack panel width and height Auto Add MouseDragElementBehavior to the border Change the text for the buttons o Rectangle, Polygon, Clear, Toggle Attributes Add the SpatialQueryAction to the Rectangle o DrawMode Rectangle o TargetName: Map (use the Artboard element picker) o LayerID: selection o Url: Local Resource > fishingurl. o OutFields: click elipses Click Add another item o For properties enter: SITE_NAME,LAND_TYPE,WATERBODY,LOCATION,ADA_ACCESS,BOAT_ RAMP,SHORELINE,TYPE_OF_LA,FEE,MOTOR,MOTOR_REST (* causes a scripting error) Symbol: Local Resource > CustomStrobeMarkerSymbol Copy the SpatialQueryAction to the Polygon buttons (in the Objects and Timeline) Change the DrawMode to polygon Add ClearGraphicsAction to the Clear button o TargetName: Map o GraphicsLayerID: selection Copy the ClearGraphicsAction to the Rectangle and Polygon buttons (we want the current selection to be removed when we drag a new box or rectangle) Drag a TobbleVisibilityAction onto the Toggle Attributes button. o TargetName: selectiondata (you might need to build the project before the Artboard element picker works properly) Change the visibility of the selectiondata window to Collapsed. Test the application

Optional (Make it so the Window Panel can t be canceled) Edit the template for the Window Panel. (Right click on the window in the objects and timeline) Remove imgclose.