Mapstraction

Class Polyline

Object
   |
   +--Polyline

class Polyline

Defined in mapstraction.js


Field Summary
 Object attributes
          
 Object onmap
          
 Object pllID
          
 Object points
          
 Object proprietary_polyline
          
 
Constructor Summary
Polyline(points)
           
 
Method Summary
 void addData(options)
           addData conviniently set a hash of options on a polyline
 Object getAttribute(key)
           getAttribute: gets the value of "key"
 void hide()
           hide: not yet implemented
 void setAttribute(key,value)
           setAttribute: set an arbitrary key/value pair on a polyline
 void setChild(some_proprietary_polyline)
          
 void setClosed(<Boolean> bClosed)
           Marks the polyline as a closed polygon
 void setColor(color)
           in the form: #RRGGBB Note map24 insists on upper case, so we convert it.
 void setFillColor(<String> sFillColor)
           Fill color for a closed polyline as HTML color value e.g.
 void setOpacity(<Float> opacity)
           A float between 0.0 and 1.0
 void setWidth(<Integer> width)
           Stroke width of the polyline
 void show()
           show: not yet implemented
 void simplify(<Integer> tolerance)
           Simplifies a polyline, averaging and reducing the points
 Object toFreeEarth()
           toFreeEarth returns a FreeEarth polyline
 Object toGoogle()
           toGoogle returns a Google polyline/polygon
 Object toMap24()
           toMap24 returns a Map24 polyline/polygon
 Object toMapQuest()
           toMapQuest returns a MapQuest polyline/polygon
 Object toMicrosoft()
           toMicrosoft returns a Microsoft polyline
 Object toMultiMap()
           toMultiMap returns a MultiMap polyline
 Object toOpenLayers()
           toOpenLayers returns an OpenLayers polyline/polygon
 Object toOpenSpace()
           toOpenSpace returns an OpenLayers polyline/polygon
 Object toViaMichelin()
           toViaMichelin returns a ViaMichelin polyline/polygon
 Object toYahoo()
           toYahoo returns a Yahoo polyline

Field Detail

attributes

Object attributes

onmap

Object onmap

pllID

Object pllID

points

Object points

proprietary_polyline

Object proprietary_polyline

Constructor Detail

Polyline

Polyline(points)

Method Detail

addData

void addData(options)

getAttribute

Object getAttribute(key)

hide

void hide()

setAttribute

void setAttribute(key,value)

setChild

void setChild(some_proprietary_polyline)

setClosed

void setClosed(<Boolean> bClosed)

setColor

void setColor(color)

setFillColor

void setFillColor(<String> sFillColor)

setOpacity

void setOpacity(<Float> opacity)

setWidth

void setWidth(<Integer> width)

show

void show()

simplify

void simplify(<Integer> tolerance)

toFreeEarth

Object toFreeEarth()

toGoogle

Object toGoogle()

toMap24

Object toMap24()

toMapQuest

Object toMapQuest()

toMicrosoft

Object toMicrosoft()

toMultiMap

Object toMultiMap()

toOpenLayers

Object toOpenLayers()

toOpenSpace

Object toOpenSpace()

toViaMichelin

Object toViaMichelin()

toYahoo

Object toYahoo()

Mapstraction

Documentation generated by JSDoc on Mon Dec 15 20:12:04 2008