Accessibility
Pamela Fox

Pamela Fox

googlegeodevelopers.blogspot.com

Table of Contents

Created:
19 January 2009
User Level:
Intermediate
Products:
Flex

Creating a driving directions Flex app using the Google Maps API for Flash

The Google Maps API for Flash is a recently launched API that offers Flex developers the opportunity to easily integrate highly interactive maps in their Flex applications, and to take advantage of Flex for fast vector graphics, animation, video, socket connections, and more. This article will cover the basics of creating a map using the Google Maps API for Flash, then move on to integrating the API-provided driving directions with Flex UI components. The Maps API classes used in the code are Map, Marker, Directions, and Polyline. The Flex UI components used in the application are HBox, HDividedBox, Label, TextInput, Button, DataGrid. This article also discusses the use of itemRenderers for custom display in the DataGrid, and the use of ArrayCollection for dynamically populating the DataGrid.

Requirements

In order to make the most of this article, you need the following software and files:

Flex Builder 3

Sample files:

Prerequisite knowledge

General familiarity with Flex and ActionScript 3.0

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License

About the author

Pamela Fox is the Developer Programs Engineer for the Google Maps API. She graduated from USC with her master's degree in Computer Science, where she helped grow the video games department and dabbled in the 3D animation and linguistics departments. She enjoys helping developers innovate with the Maps API and combine it with many of Google's other amazing APIs.