My favorites | Sign in
Google
                
Search
for
Updated Oct 27, 2009 by kevin.macdonald@pentura.ca
Labels: Featured
Libraries  
List of libraries here and quick links to relevant source and examples files.

Below is a list of the libraries being worked on in this project.

RubberBandCtrl

The RubberBandCtrl class works with Google Maps API for Flash to provide a user with an efficient way to zoom in to a specific area on the map. This class also offers convenient keyboard shortcuts (with support for left and right-handed users) to rewind to previous map views, zoom out, as well as pan in any of four directions.

To zoom in to a specific area on the map, a user would normally click the map and drag it to its desired center point, and then move the mouse to the upper-left corner of the map to select the appropriate zoom level (a few tries might be necessary to get the right fit). RubberBandCtrl provides a more direct way to perform this task, as described below:

  • Hold a Shift key (the cursor changes to a cross).
  • Click and hold the left mouse button to anchor the rubber band to the map.
  • Drag the mouse to stretch the rubber band.
  • Release the mouse button to snap the map to the area enclosed by the rubber band, or release the Shift key to cancel.

Reference

Demos:

MarkerManager

This library is a AS3 port of the MarkerManager in the JS open-source library. It enables developers to easily manage markers per zoom level/viewport, and is commonly combined with clustering. Though Flash is natively better at rendering large amounts of markers, developers have reported increased performance when using the MarkerManager with thousands of markers.

Reference

Demos:

KML Parser

This library parses a KML file into objects representing the KML dom, and includes helper code for creating a sidebar using the Flex Tree component. Note that this class ignores elements and attributes that can't be rendered in the Maps API for Flash. It's based on the dom classes in libkml.

Reference

Demos:

Planetary Map Types

This library contains map types for Mars, Sky, and Moon, and is a port of all the non-earth map types available in the JS API.

Reference

Demos:

DragZoomControl

This library is an AS3 version of the DragZoomControl from the JS open-source library. It creates a custom control that lets user drag a rectangle to zoom to a bounds on the map.

Reference

Demos:

MarkerTracker

This library is an AS3 version of the MarkerTracker from the JS open-source library. You can assign a MarkerTracker to a map/marker, and then when that marker moves out of the visible viewport, a ghost marker and arrow will appear and point in its direction.

Reference

Demos

GradientControl

This library lets you draw thematic maps, setting polygon colors depending on associated numerical values.

Documentation

Class Reference

Demo


Comment by paul.hastings, Dec 28, 2008

demo's throwing: "Initialization failed: please check the API key, swf location, version and network availability."

errors.

Comment by j-dec...@northwestern.edu, Mar 10, 2009

DragZoomControlDemo? link broken.

Comment by CPR.AL.exe, May 12, 2009

OMG, these libraries are for flex, not for flash! Why google developers always mess the things up with Flash and Flex framework?!

Comment by tzerin08, May 28, 2009

I am having no luck using the GoogleMapsAPIUtility_04262009.swc component in a Flash CS3 project. It behaves as if it is an unrecognized format. If I drag the component from the list to the stage or Library it does nothing. Is it perhaps in a Flex format rather than Flash? Is there some other compatibility issue? Is there a way to convert from Flex to Flash? (I know the other way is possible.) Thanks for your help.

Comment by tedgies1, Jun 04, 2009

When i try to import the DragZoomControl? into Flex2, i get a "definition cannot be found" error.

Neither of the following worked for me: import com.google.maps.extras.DragZoomControl?; import com.google.maps.extras.dragzoomcontrol.DragZoomControl?;

Am i missing some other reference or something? By the way, the link to the Google Map API demo for this is broken.


Sign in to add a comment