ScriptDoc Reference

Properties

static Object Mapifies

static Function Mapifies.MoveTo.MoveTo.MoveTo

Default options for MoveTo

Functions

Mapifies.MapObjects.Set(jQuery element, Object options) : static Object

Creates a new map on the passed element with the defined options. Creates a global object that contains the map.

jQueryelementThe element that contains the map.
ObjectoptionsAn object that contains the options.

Mapifies.MapObjects.Append(jQuery element, Object description, Object appending) : static 

Adds additional objects and functions to an existing MapObject

jQueryelementThe element that contains the map
ObjectdescriptionThe name of the object to create
ObjectappendingThe object or function to append

Mapifies.MapObjects.Get(jQuery element) : static Object

Returns the current map object for the passed element

jQueryelementThe element that contains the map.

Mapifies.Initialise(jQuery element, Object options, Object callback) : static Function

The main function to initialise the map

jQueryelementThe element to initialise the map on.
ObjectoptionsThe object that contains the options.
ObjectcallbackThe callback function to pass out after initialising the map.

Mapifies.Initialise.defaults(String language, String mapType, Object mapCenter, Number mapZoom, String mapControl, Boolean mapEnableType, Boolean mapEnableOverview, Boolean mapEnableDragging, Boolean mapEnableInfoWindows, Boolean mapEnableDoubleClickZoom, Boolean mapEnableSmoothZoom, Boolean mapEnableGoogleBar, Boolean mapEnableScaleControl, Boolean mapShowjMapsIcon, Boolean debugMode) : static Object

Default options for Initialise

StringlanguageThe locale language for the map
StringmapTypeThe type of map to create. Takes a map type constant such as G_NORMAL_MAP (default). (Changed r74).
ObjectmapCenterAn array that contains the Lat/Lng coordinates of the map center.
NumbermapZoomThe initial zoom level of the map.
StringmapControlThe option for the map control. The options are 'small' (default), 'large' or 'none'
BooleanmapEnableTypeDefines if the buttons for map type are shown. Default false.
BooleanmapEnableOverviewDefines if the map overview is shown. Default false.
BooleanmapEnableDraggingDefines if the map is draggable or not. Default true.
BooleanmapEnableInfoWindowsDefines if info windows are shown on the map or not. Default true.
BooleanmapEnableDoubleClickZoomDefines if double clicking zooms the map. Default false.
BooleanmapEnableSmoothZoomDefines if smooth scrolling is enabled. Default false.
BooleanmapEnableGoogleBarDefines if the google map search tool is enabled. Default false.
BooleanmapEnableScaleControlDefines if the scale bar is shown. Default false.
BooleanmapShowjMapsIconDefines if the jMaps icon is shown. Default true.
BooleandebugModeDefines if the map object created is returned to the Firebug console. Default false.

Mapifies.MoveTo(String centerMethod, String mapType, Object mapCenter, Number mapZoom) : static Function

Default options for MoveTo

StringcenterMethodThe element to initialise the map on.
StringmapTypeThe type of map to create. Takes a map type constant such as G_NORMAL_MAP or null(default). (Changed r74).
ObjectmapCenterAn array that contains the Lat/Lng coordinates of the map center.
NumbermapZoomThe initial zoom level of the map.

Mapifies.MoveTo.MoveTo(String centerMethod, String mapType, Object mapCenter, Number mapZoom) : static Function

Default options for MoveTo

StringcenterMethodThe element to initialise the map on.
StringmapTypeThe type of map to create. Takes a map type constant such as G_NORMAL_MAP or null(default). (Changed r74).
ObjectmapCenterAn array that contains the Lat/Lng coordinates of the map center.
NumbermapZoomThe initial zoom level of the map.

Mapifies.SavePosition(jQuery element, Object options, Object callback) : static Function

Save your current position on the map

jQueryelementThe element to initialise the map on.
ObjectoptionsThe object that contains the options.
ObjectcallbackThe callback function to pass out after initialising the map.

Mapifies.GotoSavedPosition(jQuery element, Object options, Function callback) : static Function

Goto a previously saved position

jQueryelementThe element to initialise the map on.
ObjectoptionsThe object that contains the options.
FunctioncallbackThe callback function to pass out after initialising the map.

Mapifies.CreateKeyboardHandler(jQuery element, Object options, Object callback) : static Function

Create a keyboard handler to handle keyboard navigation

jQueryelementThe element to initialise the map on.
ObjectoptionsThe object that contains the options.
ObjectcallbackThe callback function to pass out after initialising the map.

Mapifies.CheckResize(jQuery element, Object options, Object callback) : static Function

Check if a map container element has been resized or toggled from show/hide (Added r68)

jQueryelementThe element to initialise the map on.
ObjectoptionsThe object that contains the options.
ObjectcallbackThe callback function to pass out after initialising the map.

Mapifies.SetMapType(jQuery element, String options, Object callback) : static Function

Allows you to pass a google maptype constant and update the map type (added r75)

jQueryelementThe element to initialise the map on.
StringoptionsThe option of the maptype.
ObjectcallbackThe callback function to pass out after initialising the map.