Class AWMap

Object
   |
   +--AWMap

class AWMap

AWMap is a class that encapsulates the functions to communicate with the ArcWeb Explorer Flash component.


Field Summary
 String

Version

Static constant field representing the version number of this library.

 String

WIDGET_NAVIGATION

Static constant field representing Navigation Widget.

String

WIDGET_FIND

Static constant field representing Find Widget.

 String

WIDGET_MAPTYPES

Static constant field representing MapTypes Widget.

 String

WIDGET_IMPORTDATA

Static constant field representing Import Data Widget. The recommended maximum number of points is 200.

 String

WIDGET_DIRECTIONS

Static constant field representing Directions Widget.

 String

WIDGET_WIDGETBAR

Static constant field representing WidgetBar Widget.

 String

WIDGET_BANNER

Static constant field representing Banner Widget.

 String

WIDGET_LEGEND

Static constant field representing Legend Widget. This widget Is used only with thematicGroupLayer.

 String

WIDGET_REPORTS

Static constant field representing Reports Widget.

      
Constructor Summary
AWMap ( <String> DivID, <Array> colors, <Array> alphas, <Array> ratios, <Object> matrix, <String> spreadMethod, <String> interpolationMethod, <Number> focalPointRatio )
           
 

Method Summary
 void addFlashObject( <String> source, <Object> properties )
           Add a SWF file onto the map at an arbitrary x,y pixel location (not latitude/longitude location). The origin is the top left corner.
 void addGroupLayer( <String> groupLayer, <String> dataSource, <Object> properties, <Number> depth )
          Add a groupLayer to the map at run time.
 void addLatLonToPolygon( <String> polygonId, <points|Array> points )
           Add points to an existing polygon at run time.
 void addLatLonToPolyline( <String> polylineId, <points|Array> points )
           Add points to an existing polyline at run time.
 void addMapChangedListener( <String> funcName )
          Register a callback function to be invoked whenever the map center and scale values change.
 void addMarker( <AWMarker|Array> marker )
           Add a marker or array of markers to the map.
 void addMarkerFromGeorss( <String> url )
           Add a set of markers from a URL.
 void addMarkerStyle( <AWImgMarkerStyle> markerStyle )
           Add a marker style to the map.
 void addMouseDownCallBack( callback )
          Add a callback function for mouse down events.
 void addMouseUpCallBack( callback )
           Add a callback function for mouse up events.
 void addPolygon( <AWPolygon> polygon )
           Add a polygon to the map.
 void addPolygonStyle( <AWPolygonStyle> polygonStyle )
           Add a polygon style to the map.
 void addPolyline( <AWPolyline> polyline )
           Add a polyline to the map.
 void addPolylineStyle( <AWPolylineStyle> polylineStyle )
           Add a polyline style to the map.
 void callMethodOnMarker( <String> markerID, <String> functionName, <Object> args )
           Call a custom method on a SWF marker.
 void centerAndScale( <AWLatLon> latlon, <Number> scale )
           Center the map at a latitude/longitude location, and render it at a specific scale.
 void changePolygonStyle( polygonId, polygonStyleId )
           Change polygon style at run time.
 void changePolylineStyle( <String> polylineId, <String> polylineStyleId )
           Change polyline style at run time.
 void clickMarker( <String> id )
           Call the mouse click handler associated with the marker.
 void findLocation( <AWLocation> location, <String> callback )
           Add a location to the map.
 void findRoute( markerIds, <String> callback, polylineStyleId, dataSource, <Object> properties )
           Allow routing between markers.
 Object getGroupLayerProperty( <String> groupLayer, propertyName )
           Get a named property from a given groupLayer.
 Object getLat( <Number> pixelY )
           Get the latitude of a corresponding y value. The origin being the top left corner.
 AWLatLon getLatLonCenter()
           Get the current coordinates of the center of the map.
 AWLatLonExtent getLatLonExtent()
           Get the min/max latitude/longitude values of the current map view.
 Object getLon( <Number> pixelX )
           Get the longitude of a corresponding x value. The origin is the top left corner.
 Object getMarkerProperty( <String> id, <String> property )
           Get a marker property.
 Number getScaleForLatLonExtent( <AWLatLonExtent> latlonExtent )
          Returns the scale for the specified extent.
 Number getScale()
          Get the scale of the current map.
 Object getX( <Number> longitude )
           Get the x pixel value of a corresponding longitude. The origin is the top left corner.
 Object getY( <Number> latitude )
           Get the y pixel value of a corresponding latitude. The origin is the top left corner.
 void hideAllWidgets()
           Hide all map widgets.
 void hideWidget( <String> widget )
           Hide a map widget.
 Object intersects( <String> markerId, <String> polygonId )
           Test to see if a marker intersects a polygon.
 void printMap()
          Open the browser's print dialog.
 void recenterOrPanToLatLon( <AWLatLon> latlon )
           Recenter or pan the map to a new latitude/longitude location.
 void removeAllGroupLayers()
           Remove all groupLayers.
 void removeAllMarkers()
           Remove all markers from the map.
 void removeAllPolygons()
           Remove all polygons from the map.
 void removeAllPolylines()
           Remove all polylines from the map.
 void removeGroupLayer( groupLayerType )
          Remove a single groupLayer.
 void removeMarker( <String|Array> id )
           Remove a marker or a set of markers from the map.
 void removePolygon( <String|Array> id )
           Remove a polygon from the map.
 void removePolyline( <String|Array> id )
           Remove a polyline from the map.
 void setGroupLayerProperties( <String> groupLayer, <Object> properties )
           Set groupLayer properties at run time.
 void setLatLonExtent( extent )
           Set the map extent.
 void setMarkerLatLon( <String> id, <Number> lat, <Number> lon )
           Set the marker location.
 void setMarkerProperties( <String> id, <Object> properties )
           Set the marker properties.
 void setMarkerSource( <String> id, <String> out )
           Set the marker source (image) as over or out based on a key and value.
 void setMarkerVisibility( <String> id, <Boolean> visible )
           Set to true to make the markers visible, or false to make them invisible.
 void setMouseHandler( <String> handler, <Object> properties )
           Change the mouse handler.
 void showAllWidgets()
           Show all active map Widgets that are hidden.
 void showWidget( <String> widget, <Number> x, <Number> y )
           Show a map Widget at a particular x,y pixel location.
 void showWorldExtent()
          Zoom to the world extent.
 void toggleMouseClickLayer( <String> level )
           Toggle the level of the mouse click layer.

Field Detail

Version

Static constant field representing the version number of this library.


WIDGET_NAVIGATION

Static constant field representing Navigation Widget.


WIDGET_FIND

Static constant field representing Find Widget.



WIDGET_MAPTYPES

Static constant field representing MapTypes Widget.


WIDGET_IMPORTDATA

Static constant field representing Import Data Widget. The recommended maximum number of points is 200.


WIDGET_REPORTS

Static constant field representing Reports Widget.


WIDGET_DIRECTIONS

Static constant field representing Directions Widget.


WIDGET_WIDGETBAR

Static constant field representing WidgetBar Widget.


WIDGET_BANNER

Static constant field representing Banner Widget.


WIDGET_LEGEND

Static constant field representing Legend Widget. This widget is used only with thematicGroupLayer.

 


Constructor Detail

 

AWMap

AWMap( <String> divId )

 


Method Detail

addFlashObject

void addFlashObject( <String> source, <Object> properties )

addGroupLayer

void addGroupLayer( <String> groupLayer, <String> dataSource, <Object> properties, <Number> depth )

addLatLonToPolygon

void addLatLonToPolygon( <String> polygonId, <points|Array> points )

addLatLonToPolyline

void addLatLonToPolyline( <String> polylineId, <points|Array> points )

addMapChangedListener

void addMapChangedListener( <String> funcName )

addMarker

void addMarker( <AWMarker|Array> marker )

addMarkerFromGeorss

void addMarkerFromGeorss( <String> url )

addMarkerStyle

void addMarkerStyle( <AWImgMarkerStyle> markerStyle )

addMouseDownCallBack

void addMouseDownCallBack( callback )

addMouseUpCallBack

void addMouseUpCallBack( callback )

addPolygon

void addPolygon( <AWPolygon> polygon )

addPolygonStyle

void addPolygonStyle( <AWPolygonStyle> polygonStyle )

addPolyline

void addPolyline( <AWPolyline> polyline )

addPolylineStyle

void addPolylineStyle( <AWPolylineStyle> polylineStyle )

callMethodOnMarker

void callMethodOnMarker( <String> markerID, <String> functionName, <Object> args )

centerAndScale

void centerAndScale( <AWLatLon> latlon, <Number> scale )

changePolygonStyle

void changePolygonStyle( polygonId, polygonStyleId )

changePolylineStyle

void changePolylineStyle( <String> polylineId, <String> polylineStyleId )

clickMarker

void clickMarker( <String> id )

findLocation

void findLocation( <AWLocation> location, <String> callback )

findRoute

void findRoute( markerIds, <String> callback, polylineStyleId, dataSource, <Object> properties )

getGroupLayerProperty

Object getGroupLayerProperty( <String> groupLayer, propertyName )

getLat

Object getLat( <Number> pixelY )

getLatLonCenter

AWLatLon getLatLonCenter()

getLatLonExtent

AWLatLonExtent getLatLonExtent()

getLon

Object getLon( <Number> pixelX )

getMarkerProperty

Object getMarkerProperty( <String> id, <String> property )

getScaleForLatLonExtent

Number getScaleForLatLonExtent( <AWLatLonExtent> latlonExtent )

getScale

Number getScale()

getX

Object getX( <Number> longitude )

getY

Object getY( <Number> latitude )

hideAllWidgets

void hideAllWidgets()

hideWidget

void hideWidget( <String> widget )

intersects

Object intersects( <String> markerId, <String> polygonId )

printMap

void printMap()

recenterOrPanToLatLon

void recenterOrPanToLatLon( <AWLatLon> latlon )

removeAllGroupLayers

void removeAllGroupLayers()

removeAllMarkers

void removeAllMarkers()

removeAllPolygons

void removeAllPolygons()

removeAllPolylines

void removeAllPolylines()

removeGroupLayer

void removeGroupLayer( groupLayerType )

removeMarker

void removeMarker( <String|Array> id )

removePolygon

void removePolygon( <String|Array> id )

removePolyline

void removePolyline( <String|Array> id )

setGroupLayerProperties

void setGroupLayerProperties( <String> groupLayer, <Object> properties )

setLatLonExtent

void setLatLonExtent( extent )

setMarkerLatLon

void setMarkerLatLon( <String> id, <Number> lat, <Number> lon )

setMarkerProperties

void setMarkerProperties( <String> id, <Object> properties )

setMarkerSource

void setMarkerSource( <String> id, <String> out )

setMarkerVisibility

void setMarkerVisibility( <String> id, <Boolean> visible )

setMouseHandler

void setMouseHandler( <String> handler, <Object> properties )

showAllWidgets

void showAllWidgets()

showWidget

void showWidget( <String> widget, <Number> x, <Number> y )

showWorldExtent

void showWorldExtent()

toggleMouseClickLayer

void toggleMouseClickLayer( <String> level )