Chapter 9: Integrating Widgets

Similar documents
No Programming Required Create web apps rapidly with Web AppBuilder for ArcGIS

Basic Steps for Creating an Application with the ArcGIS Server API for JavaScript

MAP ASPEN Training Manual. Navigate back to City of Aspen Home, GIS Home, Map Aspen Home or the Data Catalog from any page in the site.

Creating Your Own Map Hawaiian Volcanoes

Map Functions August 3, 2015 Triangle Homes Group

ENERGY WEB ATLAS WEB APPLICATION USER GUIDE. ENERGY WEB ATLAS All materials subject to strictly enforced copyright laws Gulf Publishing Company 1

Vertisee Help Interface and Tools VERTISEE HELP. Interface and Tools. McElhanney Consulting Services Ltd Page 1

The Preparing for Success Online Mapping Tool

GNAHRGIS MAP MIGRATION

Tutorial for Lane County Mapping Applications

Working with the ArcGIS Viewer for Flex Application Builder

Publishing Story Maps with ArcGIS

Author. Publish. Use

Getting Started with the ArcGIS Server JavaScript API

Map Viewer User Guide. January 2018

Web Mapping Applications with ArcGIS. Bernie Szukalski Derek Law

Creating Web Mapping Applications. Nikki Golding

SAW Stand-alone Application for Web GIS Configuration and Deployment. PhD. Bogdan Cheveresan Esri Romania

TRAINING GUIDE. Tablet Cradle to Mobile GIS

ENERGY WEB ATLAS WEB APPLICATION USER GUIDE. ENERGY WEB ATLAS All materials subject to strictly enforced copyright laws Gulf Publishing Company 1

Explore a map Learn ArcGIS

Reservoir Mapping Tool User Guide

Open Source Cloud Map User Guide

Best Practices for Designing Effective Map Services

Overview of ArcGIS Online Applications. Champaign County

Volume USING ARCGIS COLLECTOR FOR WEED MAPPING. NetMaps University of Idaho. Android OS. Step by Step Guide

TRAINING GUIDE. Mobile for Administrators Part 3 - GIS

Map Direct Lite. Quick Start Guide: Map Layers 5/14/2018

ISV Map Site Tools. 21 March 2012 Page 1 of 5

Newaygo County Web Map

TRAINING GUIDE. Tablet: Cradle to Mobile GIS

1. NJDEP Landscape 3.3 Viewer Interface

Waikato Maps Quick Start Guide

A step-by-step guide to: Collector for ArcGIS

VECTOR TILES: STYLING YOUR OWN BASE MAPS. Andrew Green René Rubalcava Andy Skinner

Fundisa Web Map Applications

Press the Plus + key to zoom in. Press the Minus - key to zoom out. Scroll the mouse wheel away from you to zoom in; towards you to zoom out.

DisasterAWARE: What s New? Rel

GIS DATA SUBMISSION USER GUIDE. Innovation and Networks Executive Agency

Making a Sackville Coastal Flood Map

ArcGIS API for JavaScript Advanced Topics

Juniata County, Pennsylvania

Chapter 8: Using Toolbars

Building Mashups Using the ArcGIS APIs for FLEX and JavaScript. Shannon Brown Lee Bock

Butler County Property Ownership Website. Help Document

SPATIAL DESIGN NETWORK ANALYSIS sdna in QGIS

Geographical Information Systems Institute. Center for Geographic Analysis, Harvard University. LAB EXERCISE 1: Basic Mapping in ArcMap

Intro to GIS (requirements: basic Windows computer skills and a flash drive)

Using Syracuse Community Geography s MapSyracuse

Operations Dashboard for ArcGIS Monitoring GIS Operations. Michele Lundeen Esri

Chapter 5. Presenting Data

Navigating the ArcGIS Application Welcome to WebMap HELP

Geography 281 Mapmaking with GIS Project One: Exploring the ArcMap Environment

Geography 281 Mapmaking with GIS Project One: Exploring the ArcMap Environment

Web AppBuilder for ArcGIS Dive Into Mobile Development. Yiwei Ma & Kevin Gao

Welcome to the Lebanon County ArcGIS Online Property Viewer User Guide

Getting Started with the ArcGIS API for JavaScript. Julie Powell, Paul Hann

Getting Started with the NH Coastal Viewer March, 2015, v0

NEW LOOK OF RAPIDMAP! Below is how the RapidMap interface will look when it is initially opened.

ArcGIS Viewer for Flex An Introduction

GIS DATA SUBMISSION USER GUIDE. Innovation and Networks Executive Agency

EUCOM/AFRICOM DEFENSE USER GROUP MEETING MARCH 2010 STUTTGART WELCOME!

Overview of CCSD Secure Cropper Map

Introduction to QGIS: Student Workbook

Waushara County Public Access Land Records Viewer Help

Lab 5: Georeferencing, Digitization, and Processing

OnCOR Silverlight Viewer Guide

Town of Amherst, NY. GIS Map Machine User Guide. Map Window Search Functions. Help. Toolbar. Layer Control. Scale Bar

User Guide. ExploreHRM ICT BIDS. 0 P a g e

Tutorial Introduction to the Display Interface I N T R D I S P L A Y. TNTmips TNTedit. page 1. TNTview

ArcGIS API for JavaScript

Interactive webmaps with ArcGIS. Kristel Meikas, AlphaGIS

Audubon Convention Exercise 1 Authoritative IBA Point Map

NorWeST ArcGIS Online Map Help Document

Managing Multiple Layouts in ArcGIS Pro

ArcGIS API 4.x for JavaScript Advanced Topics. René

TRAINING GUIDE. GIS Session Preview (New Features) 2017 and 2017r2

SAGIS Property Map Viewer Instruction Manual Instructions for using the SAGIS Property Map Viewer. Published December 21, 2018.

Exercise Enumeration Areas

Each primary search has an auto-fill that will filter out results as the user continues to type.

INSTRUCTIONS LOCATUS ONLINE

RAPIDMAP Geocortex HTML5 Viewer Manual

Getting Started with the NH Stone Wall Mapper January 2019

Corporate Brand Your Vector Basemap. ANDREW GREEN

IBM TRIRIGA Application Platform Version 3 Release 4.0. Connector User Guide

Practical 3 Creating your map layouts using the print composer in QGIS

Hamilton County Draw Widget Measurements Page 2 of 11

Step 3 Step 4. Step 8. Step 9

TRAINING GUIDE. Lucity GIS. Web Administration

Esri Story Maps let you combine authoritative maps with narrative text, images, and multimedia

Interactive Maps Purpose: Login to the System: Interactive Maps ONTINUE AGREE

Guide to Mapping Website (Public) December 2016 GC_236594

Link to Marine Vegetation Atlas website. Link to Nearshore Habitat Program. Overview of the Marine Vegetation Atlas. Contact DNR about the Atlas

DIRECTORY OF FOREST PRODUCTS INDUSTRIES APPLICATION USER GUIDE

MANITOBA LAND USE AND DEVELOPMENT WEB APPLICATION: How-to guide and help document

Working with Google Earth

Advanced Development with the ArcGIS API for JavaScript. Jeremy Bartley, Kelly Hutchins, Derek Swingley

Adding text and shapefiles and editing their layer properties into ArcGIS.com

Livingston County MAP User Guide

You'll begin your map by signing in and navigating to your area of interest: Houston, Texas.

Transcription:

Chapter 9: Integrating Widgets The API for JavaScript comes with several out of the box widgets that you can drop into your application for enhanced productivity. Included are the BasemapGallery, Legend, Scalebar, OverviewMap, Measure and Bookmarks widgets. Basemap Gallery Widget The BasemapGallery widget displays a collection of basemaps from ArcGIS.com and/or a userdefined set of map or image services. When a basemap is selected from the collection the current basemap is removed and the newly selected basemap appears. When adding custom maps to the basemap gallery they will need to have the same spatial reference as the other layers in the gallery. When using layers from ArcGIS.com this would be the Web Mercator reference with wkids 102100, 102113, or 3857. It is also recommended that all basemaps be tiled layers for performance reasons. When creating a BasemapGallery there are a number of parameters that you can supply in the constructor including the ability to show ArcGIS basemaps, define one or more custom basemaps for inclusion in the gallery, supply a Bing maps key, and a reference to the map where the gallery will be placed. After creating the BasemapGallery widget you need to call the startup() method to prepare it for user interaction.

Legend Widget The Legend widget displays a label and symbols for some or all layers in the map. It does have the ability to respect scale dependencies so that as you zoom in or out in the application the legend updates to reflect layer visibility at various scale ranges. The Legend widget supports ArcGISDynamicMapServiceLayer, ArcGISTiledMapServiceLayer, and FeatureLayer. If using ArcGIS Server 10.0 SP1 or higher the legend is generated using the REST map service legend resource. If using ArcGIS Server 10.0 or lower the legend is generated using the ArcGIS.com legend service. When creating a new instance of the Legend widget you can specify various parameters that control the contents and display characteristics of the legend. The arrangement parameter can be used to specify the alignment of the legend within its container HTML element. The layerinfos parameter is used to specify a subset of layers to use in the legend, and respectcurrentmapscale can be set to true to trigger automatic legend updates based on scale ranges for each layer. Finally, you need to call the startup() method to display the newly created legend.

Scalebar Widget The Scalebar widget is used to add a scalebar to the map or a specific HTML node. The scalebar displays units in either english or metric values. You can also control scalebar positioning through the attachto parameter. By default, the scalebar is positioned in the bottom left hand corner of the map. OverviewMap Widget The OverviewMap widget is used to display the current extent of the main map within the context of a larger area. This overview map updates each time the main map extent changes. The extent of the main map is represented as a rectangle in the overview map. This extent rectangle can also be dragged to change the extent of the main map. An overview map can be displayed in a corner of the main map and also hidden from display when not in use. It can also be placed inside a <div> element outside the main map window or temporarily maximized for easy access to far away areas of interest.

The OverviewMap widget takes a number of optional parameters in the constructor for the object. These parameters allow you to control things like where the overview map is placed in relation to the main map, the base layer to use for the overview map, the fill color for the extent rectangle, the appearance of a maximize button, and the initial visibility of the overview map. Measurement Widget The Measurement widget can be used to measure area and length as well as report the geographic location of the cursor. Dropping this widget into your application is very simple just like the other widgets. You can also define custom symbols for the lines and polygons that are drawn on the screen during the process as well as custom picture symbols for the points. First, import the resource for the widget. Then create a new instance of the Measurement object, passing in an option that defines a <div> tag where the widget should be placed. Finally, call the startup() method to display the widget.

Bookmarks Widget The Bookmarks widget allows you to define specific geographic extents for named areas. For example, in the figure below there are two bookmarks: Northern California and Central Pennsylvania. When selected from the list the map will reposition the geographic extent to the extent attached to the bookmark. To use the Bookmarks widget first import the resource along with a container for the bookmarks. This is normally a drop-down list or combo list as seen in the figures above. The individual bookmarks that you add to this widget are defined as an array of JSON objects. Each bookmark should be given a name, and a geographic extent composed of both a spatial reference and the coordinates that define the extent.

Finally, create the new Bookmarks object, passing in the variable that references the bookmarks defined in the JSON object above. The dojo.byid method is used to reference the <div> container for the bookmark.