530 likes | 658 Views
2013 Esri International User Conference July 8–12, 2013 | San Diego, California. Technical Workshop. ArcGIS Viewer for Flex Advanced Topics. Lloyd Heberlie Björn Svensson. Introduction. Lloyd Heberlie @ lheberlie github.com / lheberlie Björn Svensson @ bjorn_svensson
E N D
2013 Esri International User Conference July 8–12, 2013 | San Diego, California Technical Workshop ArcGIS Viewer for FlexAdvanced Topics Lloyd Heberlie Björn Svensson
Introduction • Lloyd Heberlie @lheberlie github.com/lheberlie • BjörnSvensson @bjorn_svensson github.com/bsvensson ArcGIS Viewer for Flex - Advanced Topics
Who are you? ArcGIS Viewer for Flex - Advanced Topics
Agenda • Developer overview • Viewer customization • Application builder custom modules • Road ahead • Additional resources ArcGIS Viewer for Flex - Advanced Topics
Developer overview Björn ArcGIS Viewer for Flex - Advanced Topics
Apache: Apache Flex • Active mailing list (1,600 emails / month) • Website (~1,600 visitors/day) • > 22,000 4.9.x SDK downloads February 2013 July 2012 Dec 2012 Flex SDK 4.9.1 Flex SDK 4.8.0 Flex SDK 4.9.0 ArcGIS Viewer for Flex - Advanced Topics
Adobe: Adobe Flash Player & AIR • Desktop apps and web browsers • Mobile devices • Gaming • Multimedia March 2013 beta June 2013 February 2013 Flash Player 11.6 AIR 3.6 Flash Player 11.5 AIR 3.5 Flash Player 11.7 AIR 3.7 Flash Player 11.8 AIR 3.8 ArcGIS Viewer for Flex - Advanced Topics
Esri: ArcGIS for Flex API and Viewer Well established Active user community Consistent release schedule March 2013 July 2013 April 2013 Dec 2012 3.2 3.1 3.3 3.4 ArcGIS Viewer for Flex - Advanced Topics
Viewer building blocks ArcGIS Viewer for Flex - Advanced Topics
GitHub • Two repos: Viewer and Builder • Source code • branches • Issues • Open or Closed • Assigned to milestones ArcGIS Viewer for Flex - Advanced Topics
Demo GitHub ArcGIS Viewer for Flex - Advanced Topics
Viewer customization Lloyd ArcGIS Viewer for Flex - Advanced Topics
Wildfire viewer ArcGIS Viewer for Flex - Advanced Topics
Adobe Fireworks ArcGIS Viewer for Flex - Advanced Topics
Building components ArcGIS Viewer for Flex - Advanced Topics
Fireworks Tips and Tricks • Vector autoshapes are your friend • Subselection tool • Don’t be afraid of the pen tool • Guides • Common Library • Path toolbar • Fireworks CS6 Essential Training • Lynda.com (with Ray Villalobos) ArcGIS Viewer for Flex - Advanced Topics
Additional design resources • Kuler • http://kuler.adobe.com • Smashing Magazine • http://www.smashingmagazine.com/ • ColorPicker • Hex Color Picker (Mac) • ColorCop (Windows) • ScreenRuler • PixelWindow ArcGIS Viewer for Flex - Advanced Topics
Visual components ArcGIS Viewer for Flex - Advanced Topics
Flash XML Graphics (FXG) ArcGIS Viewer for Flex - Advanced Topics
FXG workflow • Declarative XML syntax for defining vector graphics ArcGIS Viewer for Flex - Advanced Topics
Which components need modified? • Modified components • HeaderController • Navigation • OverviewMap • MapSwitcher • WidgetTemplate • WidgetTemplateSkin • Using custom widget template ArcGIS Viewer for Flex - Advanced Topics
Additional modifications • Custom stylesheet • Modify index.mxml to include custom.css • Change pageTitle in index.mxml ArcGIS Viewer for Flex - Advanced Topics
How can I get my hands on this code? • https://github.com/lheberlie/custom-widgets-skins-viewer-flex • Branch: wildfire ArcGIS Viewer for Flex - Advanced Topics
Demo Custom viewer setup Lloyd ArcGIS Viewer for Flex - Advanced Topics
Application Builder custom modules Lloyd ArcGIS Viewer for Flex - Advanced Topics
Custom modules • Not for everyone • What is a custom module? • Graphic User Interface for custom widgets • Why do you care? • Community widgets get better • Consistent look and feel like the default widgets • Community developers sharing widgets ArcGIS Viewer for Flex - Advanced Topics
Managing custom widgets ArcGIS Viewer for Flex - Advanced Topics
Widgets tab: custom widgets ArcGIS Viewer for Flex - Advanced Topics
Widgets vs. Widgets sans modules ArcGIS Viewer for Flex - Advanced Topics
Viewer requirements • Make sure you use the same versions • API • Viewer • Application Builder • Custom widgets • Compile your custom widget and the Viewer ArcGIS Viewer for Flex - Advanced Topics
Application Builder requirements • Compiled viewer and widget • Create your module • CustomModel • CustomModule • CustomView • Add all CustomModules • Keep bin-release-temp ArcGIS Viewer for Flex - Advanced Topics
Module details • Create a custom module (IBuilderModule) • Create a custom widget model (IWidgetModel) • Create a custom widget view (IWidgetView) Note: Layout widgets not yet supported. Tip: Read the source code for default modules! ArcGIS Viewer for Flex - Advanced Topics
Distribution • Bundled with Application Builder • Custom Widget • Widget • WidgetConfig • Module • Assets • Meta.xml ArcGIS Viewer for Flex - Advanced Topics
More information • Documentation • https://github.com/Esri/arcgis-viewer-builder-flex/wiki/Custom-Modules-for-Application-Builder • Source code • https://github.com/lheberlie/sample-module-viewer-builder-flex ArcGIS Viewer for Flex - Advanced Topics
Demo Sample Module Documentation Lloyd Source code ArcGIS Viewer for Flex - Advanced Topics
Tips and Tricks Lloyd ArcGIS Viewer for Flex - Advanced Topics
Git and GitHub • SourceTree (Mac + Windows) • Code school (try.github.io) • Pro Git (git-scm.com/book) • Git Essential Training • Lynda.com (Kevin Skoglund) ArcGIS Viewer for Flex - Advanced Topics
Adobe Flash Builder • General • Show line numbers • Key Bindings: Cmd(Ctrl) + Shift + L • Organize Imports: Shift + Cmd(Ctrl) + O • Fix Indentation: Cmd(Ctrl) + I • http://www.adobe.com/devnet/flash-builder/articles/tips-tricks.html • Code Templates • File Templates • FlexFormatter ArcGIS Viewer for Flex - Advanced Topics
ArcGIS Viewer for Flex • Directions Widget • Widget containers ArcGIS Viewer for Flex - Advanced Topics
Debugging • Clear browser cache • Debugging tools • Fiddler (Internet Explorer) • Charles Web Debugging Proxy (Mac + Windows) • Chrome Developer Tools • Firefox (HTTP fox, Firebug) • Be a detective ArcGIS Viewer for Flex - Advanced Topics
Charles Web Debugging Proxy ArcGIS Viewer for Flex - Advanced Topics
Road ahead Björn ArcGIS Viewer for Flex - Advanced Topics
Road ahead • Continue quarterly release cycles • ArcGIS.com / Portal for ArcGIS • Geoenrichment • Offline / Sync • Extra zoom levels ArcGIS Viewer for Flex - Advanced Topics
Additional resources Björn ArcGIS Viewer for Flex - Advanced Topics
More information • Esri • developers.arcgis.com/en/flex • GitHub • esri.github.io • Apache • flex.apache.org • Adobe • http://www.adobe.com/devnet/flex.html ArcGIS Viewer for Flex - Advanced Topics
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
Esri training for Web developers • 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 ArcGIS Viewer for Flex— An Introduction