O'Reilly logo

Flash Development for Android Cookbook by Joseph Labrecque

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Retrieving map data through geolocation coordinates

To retrieve a map through the use of geolocation coordinates is one of the fundamental uses of the ActionScript Geolocation API. In this recipe, we will examine how to render a map on the Stage and generate a marker based on latitude and longitude coordinates reported by the device geolocation sensors using the Google Maps API for Flash.

Getting ready...

There are a few steps we will need to take before getting into the recipe itself. These steps will prepare our project with the proper code libraries and allow us access to the Google Maps services:

  1. First, we must download the Google Maps API for Flash from http://code.google.com/apis/maps/documentation/flash/
  2. The package will include two separate ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required