Module:JSGoogleMap

From PanoZona

Contents

JSGoogleMap
Author Denis Goryachev
Module version 1.0
Compatibility SaladoPlayer 1.0 +

Module allow embeding google map window besides SaladoPlayer div. Module depends on external javscript files.

Configuration structure

Configuration details

JSGoogleMap

Attribute TypeSub-attribute TypeDefaultValuesDescription
path S - - path to swf file Mandatory attribute. Value points to module swf file.

settings

Attribute TypeSub-attribute TypeDefaultValuesDescription
open B - true true, false Determines visibility of module window on SaladoPlayer start.
onOpen S - - action id Action executed when module window changed state to opened.
onClose S - - action id Action executed when module window changed state to closed.

waypoints

Attribute TypeSub-attribute TypeDefaultValuesDescription
markerOn S - - path to image file Image for active waypoint.
markerOff S - - path to image file Image for inactive waypoint.

waypoint

Attribute TypeSub-attribute TypeDefaultValuesDescription
target S - - panorama id Panorama given waypoint is targetting to.
label S - - - Short description of panorama, will be displayed when cursor is hovering over waypoint.
geolocation O latitude N 0 - Waypoint geographical coordinate.
longitude N 0 - Waypoint geographical coordinate.
elevation N 0 - Waypoint geographical coordinate.

track

Attribute TypeSub-attribute TypeDefaultValuesDescription
path S - - path to kml file Keyhole Markup Language file, needs to be reffered via http.

Exposed functions

setOpen

TypeDescriptionFunction description
B Value assigned to open attribute. Opens/closes map window on demand. Opening window once window is open makes no effect, same thing for closing window.

toggleOpen

TypeDescriptionFunction description
- - Calling this function toggles map window open state. If called when window is opened it closes window, same thing other way around.