# 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.

jQuery | element | The element that contains the map.
Object | options | An object that contains the options.

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

Adds additional objects and functions to an existing MapObject

jQuery | element | The element that contains the map
Object | description | The name of the object to create
Object | appending | The object or function to append

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

Returns the current map object for the passed element

jQuery | element | The element that contains the map.

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

The main function to initialise the map

jQuery | element | The element to initialise the map on.
Object | options | The object that contains the options.
Object | callback | The 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

String | language | The locale language for the map
String | mapType | The type of map to create. Takes a map type constant such as G_NORMAL_MAP (default). (Changed r74).
Object | mapCenter | An array that contains the Lat/Lng coordinates of the map center.
Number | mapZoom | The initial zoom level of the map.
String | mapControl | The option for the map control. The options are 'small' (default), 'large' or 'none'
Boolean | mapEnableType | Defines if the buttons for map type are shown. Default false.
Boolean | mapEnableOverview | Defines if the map overview is shown. Default false.
Boolean | mapEnableDragging | Defines if the map is draggable or not. Default true.
Boolean | mapEnableInfoWindows | Defines if info windows are shown on the map or not. Default true.
Boolean | mapEnableDoubleClickZoom | Defines if double clicking zooms the map. Default false.
Boolean | mapEnableSmoothZoom | Defines if smooth scrolling is enabled. Default false.
Boolean | mapEnableGoogleBar | Defines if the google map search tool is enabled. Default false.
Boolean | mapEnableScaleControl | Defines if the scale bar is shown. Default false.
Boolean | mapShowjMapsIcon | Defines if the jMaps icon is shown. Default true.
Boolean | debugMode | Defines 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

String | centerMethod | The element to initialise the map on.
String | mapType | The type of map to create. Takes a map type constant such as G_NORMAL_MAP or null(default). (Changed r74).
Object | mapCenter | An array that contains the Lat/Lng coordinates of the map center.
Number | mapZoom | The initial zoom level of the map.

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

Default options for MoveTo

String | centerMethod | The element to initialise the map on.
String | mapType | The type of map to create. Takes a map type constant such as G_NORMAL_MAP or null(default). (Changed r74).
Object | mapCenter | An array that contains the Lat/Lng coordinates of the map center.
Number | mapZoom | The initial zoom level of the map.

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

Save your current position on the map

jQuery | element | The element to initialise the map on.
Object | options | The object that contains the options.
Object | callback | The callback function to pass out after initialising the map.

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

Goto a previously saved position

jQuery | element | The element to initialise the map on.
Object | options | The object that contains the options.
Function | callback | The 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

jQuery | element | The element to initialise the map on.
Object | options | The object that contains the options.
Object | callback | The 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)

jQuery | element | The element to initialise the map on.
Object | options | The object that contains the options.
Object | callback | The 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)

jQuery | element | The element to initialise the map on.
String | options | The option of the maptype.
Object | callback | The callback function to pass out after initialising the map.