Flex: Modest Maps Demo – v1.1

I have updated the simple Flex Modest Maps demo. The new version defines a dictionary for marker icon assets and looks up the appropriate icon based on severity. The EventMarker class has been extended to take an icon reference as a parameter.

Sample App

When a traffic event is parsed from the xml file it’s severity is used by the asset lookup dictionary to return the appropriate icon and this is passed to the marker when it is instantiated.

Simple demo here.

Source code here.

Right click on the demo to view the source. This Modest Maps bundles source also includes the fix for deleting markers.

Comments

Leave a Reply