Class Mapstraction

Object
   |
   +--Mapstraction

class Mapstraction

Defined in mapstraction.js


Field Summary
 Object addControlsArgs
          
 Object api
          
 Object currentElement
          
 Object eventListeners
          
 Object maps
          
 Object markers
          
 Object polylines
          
 Object svn_revision_string
          
<static>  Object HYBRID
          
<static>  Object ROAD
          
<static>  Object SATELLITE
          
 
Constructor Summary
Mapstraction(<String> element,<String> api)
            Mapstraction instantiates a map with some API choice into the HTML element given
 
Method Summary
 void addAPI(element,api)
          
 void addControls( args )
           addControls adds controls to the map.
 void addEventListener(type, func)
          
 void addFilter(field, operator, value)
           addFilter adds a marker filter
 void addGeoRSSOverlay(georssURL)
           addGeoRSSOverlay adds a GeoRSS overlay to the map
 void addImageOverlay(id, src,<opacity> opacity, <west> west, <south> south, <east> east, <north> north)
           addImageOverlay layers an georeferenced image over the map
 void addLargeControls()
           addLargeControls adds a small map panning control and zoom buttons to the map Supported by: yahoo, google, openstreetmap, multimap, mapquest
 void addMapTypeControls()
           addMapTypeControls adds a map type control to the map (streets, aerial imagery etc) Supported by: yahoo, google, openstreetmap, multimap, mapquest
 void addMarker(<Marker> marker,<old> old)
           addMarker adds a marker pin to the map
 void addPolyline(polyline,old)
           Add a polyline to the map
 void addSmallControls()
           addSmallControls adds a small map panning control and zoom buttons to the map Supported by: yahoo, google, openstreetmap, openlayers, multimap, mapquest
 void autoCenterAndZoom()
           autoCenterAndZoom sets the center and zoom of the map to the smallest bounding box containing all markers
 void clickHandler(lat,lon, me)
          
 void doFilter()
           doFilter executes all filters added since last call
 void dragging(<on> on)
           dragging enable/disable dragging of the map (only implemented for yahoo and google) Supported by: yahoo, google, openstreetmap, multimap
 array getAttributeExtremes(field)
           getAttributeExtremes returns the minimum/maximum of "field" from all markers
 BoundingBox getBounds()
           getBounds gets the BoundingBox of the map
 LatLonPoint getCenter()
           getCenter gets the central point of the map
 Object getMap()
           getMap returns the native map object that mapstraction is talking to
 Object getMapType()
           getMapType gets the imagery type for the map.
 int getZoom()
           getZoom returns the zoom level of the map
 int getZoomLevelForBoundingBox( bbox )
           getZoomLevelForBoundingBox returns the best zoom level for bounds given
 void moveendHandler(me)
          
 void removeAllMarkers()
           removeAllMarkers removes all the Markers on a map
 void removeAllPolylines()
           Removes all polylines from the map
 void removeMarker(<Marker> marker)
           removeMarker removes a Marker from the map
 void removePolyline(polyline)
           Remove the polyline from the map
 void resizeTo(width,height)
          
 void setBounds(bounds)
           setBounds sets the map to the appropriate location and zoom for a given BoundingBox
 void setCenter(<LatLonPoint> point)
           setCenter sets the central point of the map
 void setCenterAndZoom(<LatLonPoint> point, <int> zoom)
           centers the map to some place and zoom level
 void setImageOpacity(id, opacity)
          
 void setImagePosition(id)
          
 void setMapType(<int> type)
           setMapType sets the imagery type for the map.
 void setZoom(<int> zoom)
           setZoom sets the zoom level for the map MS doesn't seem to do zoom=0, and Gg's sat goes closer than it's maps, and MS's sat goes closer than Y!'s TODO: Mapstraction.prototype.getZoomLevels or something.
 void showRoute(route)
           Show a route from MapstractionRouter on a mapstraction map Currently only supported by MapQuest
 void swap(element,<String> api)
           swap will change the current api on the fly

Field Detail

addControlsArgs

Object addControlsArgs

api

Object api

currentElement

Object currentElement

eventListeners

Object eventListeners

maps

Object maps

markers

Object markers

polylines

Object polylines

svn_revision_string

Object svn_revision_string

HYBRID

<static> Object HYBRID

ROAD

<static> Object ROAD

SATELLITE

<static> Object SATELLITE

Constructor Detail

Mapstraction

Mapstraction(<String> element,<String> api)

Method Detail

addAPI

void addAPI(element,api)

addControls

void addControls( args )

addEventListener

void addEventListener(type, func)

addFilter

void addFilter(field, operator, value)

addGeoRSSOverlay

void addGeoRSSOverlay(georssURL)

addImageOverlay

void addImageOverlay(id, src,<opacity> opacity, <west> west, <south> south, <east> east, <north> north)

addLargeControls

void addLargeControls()

addMapTypeControls

void addMapTypeControls()

addMarker

void addMarker(<Marker> marker,<old> old)

addPolyline

void addPolyline(polyline,old)

addSmallControls

void addSmallControls()

autoCenterAndZoom

void autoCenterAndZoom()

clickHandler

void clickHandler(lat,lon, me)

doFilter

void doFilter()

dragging

void dragging(<on> on)

getAttributeExtremes

array getAttributeExtremes(field)

getBounds

BoundingBox getBounds()

getCenter

LatLonPoint getCenter()

getMap

Object getMap()

getMapType

Object getMapType()

getZoom

int getZoom()

getZoomLevelForBoundingBox

int getZoomLevelForBoundingBox( bbox )

moveendHandler

void moveendHandler(me)

removeAllMarkers

void removeAllMarkers()

removeAllPolylines

void removeAllPolylines()

removeMarker

void removeMarker(<Marker> marker)

removePolyline

void removePolyline(polyline)

resizeTo

void resizeTo(width,height)

setBounds

void setBounds(bounds)

setCenter

void setCenter(<LatLonPoint> point)

setCenterAndZoom

void setCenterAndZoom(<LatLonPoint> point, <int> zoom)

setImageOpacity

void setImageOpacity(id, opacity)

setImagePosition

void setImagePosition(id)

setMapType

void setMapType(<int> type)

setZoom

void setZoom(<int> zoom)

showRoute

void showRoute(route)

swap

void swap(element,<String> api)


Documentation generated by JSDoc on Mon May 21 15:24:17 2007