|
Mapstraction | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--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 |
Object attributes
Object onmap
Object pllID
Object points
Object proprietary_polyline
| Constructor Detail |
Polyline(points)
| Method Detail |
void addData(options)
Object getAttribute(key)
void hide()
void setAttribute(key,value)
void setChild(some_proprietary_polyline)
void setClosed(<Boolean> bClosed)
bClosed -
void setColor(color)
void setFillColor(<String> sFillColor)
sFillColor - HTML color value #RRGGBB
void setOpacity(<Float> opacity)
opacity -
void setWidth(<Integer> width)
width -
void show()
void simplify(<Integer> tolerance)
tolerance - (1.0 is a good starting point)
Object toFreeEarth()
Object toGoogle()
Object toMap24()
Object toMapQuest()
Object toMicrosoft()
Object toMultiMap()
Object toOpenLayers()
Object toOpenSpace()
Object toViaMichelin()
Object toYahoo()
|
Mapstraction | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||