arcgis api for flex an introduction

50
Esri UC2013 . Technical Workshop . Technical Workshop 2013 Esri International User Conference July 8–12, 2013 | San Diego, California ArcGIS API for Flex An Introduction Lloyd Heberlie Heather Gonzago

Upload: kirkan

Post on 15-Jan-2016

32 views

Category:

Documents


0 download

DESCRIPTION

2013 Esri International User Conference July 8–12, 2013 | San Diego, California. Technical Workshop. ArcGIS API for Flex An Introduction. Lloyd Heberlie Heather Gonzago. Introduction. Lloyd Heberlie @ lheberlie github.com / lheberlie Heather Gonzago @ hgonzago - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

Technical Workshop

2013 Esri International User ConferenceJuly 8–12, 2013 | San Diego, California

ArcGIS API for FlexAn Introduction

Lloyd Heberlie

Heather Gonzago

Page 2: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

Introduction

• Lloyd Heberlie

@lheberlie

github.com/lheberlie

• Heather Gonzago

@hgonzago

github.com/hgonzago

ArcGIS API for Flex - An Introduction

Page 3: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

Agenda

• Introduction

• Build a map

• Display information

• Perform analysis

• User interface components

• Wrap up

ArcGIS API for Flex - An Introduction

Page 4: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

Heather

Live Sites

Demo

Page 5: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

Lloyd

Introduction

Page 6: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

Who are you? What brings you here?

• Developer- API- Source code

• Builder- Application Builder- Viewer configuration

• Hybrid- Designer / Developer

ArcGIS API for Flex - An Introduction

WebApplication

WebApplication

ArcGISViewer for

FlexApplication

Builder

ArcGISViewer for

FlexApplication

Builder

ArcGISViewer for

Flex

ArcGIS APIFor Flex

Page 7: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

Adobe Flash platform tools

ArcGIS API for Flex - An Introduction

• Together can build web

desktop, mobile apps

• Flash Builder

• Flex SDK (framework)

• Client runtimes - Flash Player- Adobe Air

Page 8: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

ArcGIS for FlexAPI and Viewer

• Well established

• Very active user community

• Consistent release schedule

ArcGIS API for Flex - Advanced Topics

Version 3.2March 2013Version 3.2March 2013

Version 3.3April 2013

Version 3.3April 2013

Version 3.4July 2013

Version 3.4July 2013

Page 9: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

What will you need?Developer workflow

• Configure- Application Builder- Compiled viewer

• Develop- API sample code (GitHub)- Viewer and Application Builder (GitHub)- API library (developers.arcgis.com)

ArcGIS API for Flex - An Introduction

Page 10: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

• ArcGIS 3.4 API for Flex- Flash Player: 11.1- SDK: Adobe Flex 4.6 or Apache 4.8 or later- Access to ArcGIS web services

• Download API – http://links.esri.com/flex• Readme• API Library (SWC)• Skins, locales

• Recommendations- Adobe Flash Builder 4.7 (IDE)

Requirements

ArcGIS API for Flex - An Introduction

Page 11: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

• MXML- UIComponent, Skinning and Layout

• ActionScript- Programming language

• CSS- Styling UIComponents and Skins

• JavaScript- Mostly used in the html wrapper

• Tip: Read the source code

Additional learning

ArcGIS API for Flex - An Introduction

Page 12: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

Heather

Help and resources

Demo

Page 13: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

Lloyd

Build a map

Page 14: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

• Main component of the Flex API

• Collection of layers

• Contains defaultGraphicsLayer

• Provides mouse & keyboard navigation

• Touch and rotation

• Spatial reference & scale levels - determined by the first visible layer- or can be set explicitly

Map basics

ArcGIS API for Flex - An Introduction

Page 15: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

• Data pulled from services or ArcGIS Online

• Layers - Service url- Shared service- Web map

• Map container

Data, layer(s), and map

ArcGIS API for Flex - An Introduction

Page 16: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

• Either:- Using layers (services), reference URL- Web maps, reference item ID

Add data to the map

ArcGIS API for Flex - An Introduction

Portal for ArcGISPortal for ArcGIS ArcGIS OnlineArcGIS Online

SearchSearch

Page 17: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

• Full list @ Types of layer

Layer basics

ArcGIS API for Flex - An Introduction

Page 18: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

• Services directory- Provides endpoint URL for

ArcGIS Server services

• Resources and their supported operations

Finding service URLs

ArcGIS API for Flex - An Introduction

Page 19: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

• ArcGIS Online details

Finding web map IDs

ArcGIS API for Flex - An Introduction

Item ID

Page 20: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

Heather

Build a map

Demo

Page 21: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

Lloyd

Display information

Page 22: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

• Server-side- MapServer (dynamicLayer)- Tell server to generate renderer and symbology- Supports thematic mapping for large complex datasets- No geometry payload and dynamic rendering

• Client-side - FeatureLayer, GraphicsLayer- Use logic to create your own renderer and symbology- Graphics are already in browser- Potential graphics limitations, network payload

Server versus Client-side rendering

ArcGIS API for Flex - An Introduction

Page 23: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

Dynamic Layers

• Service details- File GDB or Enterprise GDB- Capability during publishing - Dynamic per request- Supports Dynamic Layers

• Rearrange layer order

• Modify symbology of layers

• layerDrawingOptions property

ArcGIS API for Flex - An Introduction

Page 24: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

• Graphic = geometry + attributes + symbol

• Rich symbolization- Points, Lines, Polygons- Pictures, TextSymbol, InfoSymbol

• Event driven model- Mouse, keyboard

• Native flex properties- alpha, visible, ..

• Clustering

Graphics Layer

ArcGIS API for Flex - An Introduction

Page 25: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

• Extends Graphics Layer

• Feature Service or Map Service

• Can be a layer or a table

• Supports selections – query mode

• Supports attachments

• Editable when source is Feature Service *

• Uses drawing info from ArcGIS Server *

• Ownership based access control – new at ArcGIS 10.1

Feature Layer

ArcGIS API for Flex - An Introduction

Page 26: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

Heather

Dynamic labeling

Demo

Page 27: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

Lloyd

Perform analysis

Page 28: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

• Perform specific types of analysis

Tasks overview

ArcGIS API for Flex - An Introduction

Page 29: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

• Analysis capabilities exposed by an ArcGIS web service

• Query, Find (Search), Identify

• Route, Service Area, Closest Facility

• Geometry Service

• Locator

• Geoprocessing Service

• Print

• Generate Renderer

Tasks

ArcGIS API for Flex - An Introduction

Page 30: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

• Set criteria with “where”

• Filter returned fields

• Set spatial relationship (e.g. “intersects”)

• Searches are case sensitive

• Related records, ObjectIDs, Stand-alone tables

Query task

ArcGIS API for Flex - An Introduction

Page 31: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

• Custom analysis

• Execute vs. SubmitJob

• Tip: Parameters- Name, Type, Direction

Geoprocessing tasks

Flex ApplicationFlex Application

Result

HSlider: Highways dist_transit

Graphics Layer

Declare Geoprocessor

dist_highways

GPTask

HSlider: Transit Stops

Parameters

Model Builder

Page 32: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

• A web service for spatial relationships and algorithms

• Supports operations related to manipulating geometries- Project, buffer, simplify, cut, densify, difference,

generalize, union, split, etc.

• Supports editing functionality with a Feature service

• Geodesic calculations –*ArcGIS 10.1

Geometry service

ArcGIS API for Flex - An Introduction

Page 33: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

Heather

Query your data

Demo

Page 34: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

Lloyd

User interface components

Page 35: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

• Properties- FeatureLayer- Geometry service- Map

• Leverages- TemplatePicker- DrawTool- EditTool- AttributeInspector- IdentityManager

Editor component

ArcGIS API for Flex - An Introduction

Page 36: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

Heather

Access feature data from the cloud

Demo

Page 37: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

• Interactive data table

• FeatureLayer

• Supports editing

• Export to csv

• Supports related records

• Custom field editors

AttributeTable component

ArcGIS API for Flex - An Introduction

Page 38: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

Heather

Display tabular data

Demo

Page 39: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

• Extends TextInput component

• autoComplete, autoNavigate*

• ArcGIS online world locator or your own

• Supports searching map services

• Map

Geocoder component

ArcGIS API for Flex - An Introduction

Page 40: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

Heather

Find places and addresses

Demo

Page 41: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

• Map

• Symbols

• Stops

• Geocode options

• Routing options

• Route and navigation information

Directions component

ArcGIS API for Flex - An Introduction

Page 42: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

Heather

Route and navigate

Demo

Page 43: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

Lloyd

Wrap up

Page 44: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

DeploymentCross-domain policies

Web Server with application

and ArcGIS Server

Web Server with application

ArcGIS Serverwith

crossdomain.xml

SWFSWF

Maprequests

andresponses

Maprequests

andresponses

Page 45: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

Road ahead

• Geoenrichment

• Offline / Sync

• ArcGIS.com / Portal for ArcGIS

• Tile resampling

ArcGIS API for Flex - An Introduction

Page 46: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

Where can I get more info?

• Esri- http://resources.arcgis.com

- documentation, forums, samples- http://links.esri.com/flexviewer

• Adobe- http://www.adobe.com/devnet/flex.html- http://www.adobe.com/devnet/flex/videotraining.html- http://www.adobe.com/devnet/flex/tourdeflex.html

ArcGIS Viewer for Flex— An Introduction

Page 47: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

• http://www.esri.com/training

• Instructor-Led Courses- Building Web Applications Using the ArcGIS API for Flex

(3.x)- Migrating to ArcGIS 10.2 for Server- ArcGIS for Server: Sharing GIS Content on the Web (10.1)

• Online Training Seminars- Extending the ArcGIS Viewer for Flex (3.x)- Free, one-hour presentation and demos by Esri technical

experts- Live seminar broadcast on a new topic every month

Esri training for Web developers

ArcGIS Viewer for Flex— An Introduction

Page 48: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

• ArcGIS API for Flex – An Introduction- Tues. 7/9; 1:30-2:45 – Rm 15A- Wed. 7/10; 1:30-2:45 – Rm 15B

• ArcGIS Viewer for Flex – An Introduction- Wed. 7/10; 8:30-9:45 – Rm 14B

• ArcGIS Viewer for Flex – Advanced Topics- Wed. 7/10; 10:15-11:30 – Rm. 14B- Thurs. 7/11; 1:30-2:45 – Rm 31C

• ArcGIS API for Flex – Advanced Topics- Wed. 7/10; 3:15-4:30 – Rm. 15A- Thurs. 7/11; 8:30-9:45 – Rm. 15A

UC Agenda: Flex Technical Workshops

ArcGIS Viewer for Flex— An Introduction

Page 49: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop .

Please fill out the session evaluation

First Offering ID: 1247

Second Offering ID: 1354

Online – www.esri.com/ucsessionsurveys

Paper – pick up and put in drop box

Thank you…

ArcGIS API for Flex - An Introduction

Page 50: ArcGIS API for Flex An Introduction

Esri UC2013 . Technical Workshop . ArcGIS API for Flex - An Introduction