|
Quikmaps classes | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--GMap2
|
+--AbstractQMap
|
+--QMap
| Field Summary | |
<static> Object |
DRAW
Static property for 'draw lines' drawing mode |
<static> Object |
MARKERS
Static property for 'normal' drawing mode |
<static> Object |
SCRIBBLE
Static property for 'scribble' drawing mode |
| Constructor Summary | |
QMap(<HTMLDivElement> container, <Object> opts)
The map object -- instantiated to place a map on a page. |
|
| Method Summary | |
void
|
addOverlay(<Overlay> overlay, noDataAdd)
Add overlay to the map. |
void
|
centerOnGeoText(<String> text)
Geocode the input text and center the map on the first response. |
void
|
clearOverlays()
Clear overlays from the map. |
void
|
disableEditing()
Disable map editing |
Object
|
editingEnabled()
Test whether or not editing is enabled on the map |
void
|
enableEditing()
Enable map editing |
Object
|
getDrawingColour()
Get the current drawing colour |
Object
|
getDrawingMode()
Get the current drawing mode. |
Object
|
getDrawingWidth()
Get the current drawing width |
Object
|
getGpx()
Get a string of GPX text representing the map data |
Object
|
getJSON()
Get the JSON text representing the map data |
Object
|
getKml()
Get a string of KML text representing the map data |
Object
|
getObject()
Get a JavaScript data object representing the map data |
Object
|
getXml()
Get the QMaps XML text representing the map data |
void
|
importJSON(<String> json)
Import the json-formatted string. |
void
|
importObject(<Object> obj)
Import map data from the QMaps JavaScript object. |
void
|
importXml(<String> xml)
Import the xml data onto the map. |
void
|
loadXml(<String> url, <Boolean> append)
Set the xml data on the map by loading the data from a URL |
void
|
setDrawingColour(<String> colour)
Set the drawing colour. |
void
|
setDrawingMode(<String> mode)
Set the map drawing mode. |
void
|
setDrawingWidth(<String> width)
Set the drawing width. |
void
|
setJSON(<String> json)
Set the map data according to the json-formatted string. |
void
|
setObject(<Object> obj)
Set the map according to the QMaps JavaScript object. |
void
|
setXml(<String> xml)
Set the xml data on the map. |
| Methods inherited from class AbstractQMap |
overlays, markers, polylines, removeOverlay, getMouseEventTarget
|
| Field Detail |
<static> Object DRAW
<static> Object MARKERS
<static> Object SCRIBBLE
| Constructor Detail |
QMap(<HTMLDivElement> container, <Object> opts)
container - HTML div containing the map
opts - An options object, documented above.
| Method Detail |
void addOverlay(<Overlay> overlay, noDataAdd)
overlay - A map overlay.
void centerOnGeoText(<String> text)
text - The text to geocode.
void clearOverlays()
void disableEditing()
Object editingEnabled()
void enableEditing()
Object getDrawingColour()
Object getDrawingMode()
Object getDrawingWidth()
Object getGpx()
Object getJSON()
Object getKml()
Object getObject()
Object getXml()
void importJSON(<String> json)
json - The json data string to display on the map.
void importObject(<Object> obj)
obj - a properly constructed JavaScript object
void importXml(<String> xml)
xml - The xml data string to display on the map.
void loadXml(<String> url, <Boolean> append)
url - The url to load. Must be local to the host displaying the map due to Ajax remote file restrictions.
append - If true, append xml content to current map. If false, over-write current map data.
void setDrawingColour(<String> colour)
colour - The drawing colour
void setDrawingMode(<String> mode)
mode - One of QMaps.SCRIBBLE, QMaps.DRAW, or QMaps.MARKERS
void setDrawingWidth(<String> width)
width - The drawing width
void setJSON(<String> json)
json - The json data string to display on the map.
void setObject(<Object> obj)
obj - a properly constructed JavaScript object
void setXml(<String> xml)
xml - The xml data string to display on the map.
|
Quikmaps classes | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||