place hotspots on the map and link them to actions like panorama loading
it has a integrated customizable radar
default google maps controls included (position & zoom control)
it's possible to control the maps and spots dynamically
e.g. to pan around, add or remove spots ...
it has a XML / Javascript / Actionscript interface
Usage:
the position and size of it can by adjusted with the normal plugin attributes
(align, x, y, width, height, ...) NOTE - avoid animated (tween) resizing - after every small resize the plugin reloads itself
and so resizing becomes very slow!
the Google maps plugin has following attributes:
key - the Google maps API key
NOTE - this is the most important attribute on the first start!
addspot(name, lat, lng ,heading, active, onclick, onhover, onover, onout)
- add a new spot
- updatespots() must be called to show the added shots (italic = optional parameters)
updatespots()
- updates all spots
- must be called when spots are added or the attributes of a spots has changed
activatespot(spotname)
- activates the the spot with the name "spotname"
- disables all other spots
panto(lat, lng)
- pans the map to coordinates lat/lng
pantospot(spotname)
- pans the map to center at the spot
panby(xoffset, yoffset)
- pans the map by xoffset/yoffset pixels
- can be used for own controls
zoomin() / zoomin(lat, lng, center, continuous)
- zooms in the map by one zoom level if possible
- can be used for own controls
optional parameters:
lat / lng
if set, this is the point around which it zoom, otherwise it will zoom in around the center of the map
center
if true, ot also want to center at lat/lng
continuous
whether the zoom operation should be continuous (provided that continuous zoom is enabled for the map)
zoomout() / zoomout(lat, lng, continuous)
- zooms out the map by one zoom level if possible
- can be used for own controls
optional parameters:
lat / lng
if set, this is the point around which it zoom, otherwise it will zoom in around the center of the map
continuous
whether the zoom operation should be continuous (provided that continuous zoom is enabled for the map)
setzoom(zoomlevel, continuous)
- zooms to "zoomlevel"
- can be used for own controls
optional parameters:
continuous
whether the zoom operation should be continuous (provided that continuous zoom is enabled for the map)
setcenter(lat, lng, zoomlevel)
- set new lat/lng/zoom
- can be used for own controls
setmaptype(maptype)
- set new maptype - "NORMAL","PHYSICAL","SATELLITE","HYBRID"
- can be used for own controls
updatecontrols()
- parses and setup the "positioncontrol" and "zoomcontrol" settings
NOTE - when calling these function the prefix "plugin[name]." must be added,
only if the event from which it will be called is direct from the plugin itself this prefix
is not needed!