O'Reilly logo

ActionScript Graphing Cookbook by Peter Backx, Dominic Gélineau

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

Showing a map using the openscales.org API

This recipe will show how to display a map using the API found at http://www.openscales.org.

Showing a map using the openscales.org API

Getting ready

Download the latest library code for OpenScales from their website. It is better to download it directly from their repository: https://bitbucket.org/gis/openscales/downloads, as the download link on their homepage isn't always up-to-date.

How to do it...

The following are the steps needed to show an OpenScales map:

  1. Instantiate the map:
    _map = new Map(); _map.size = new Size(1200, 700); //this is the area in pixel that will be shown on the screen _map.center = new Location(-73.98,40.77, "EPSG:4326"); //these ...

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