This defines the standard WhereIs base map.
| EMS. | This defines the standard WhereIs base map. |
| Properties | |
| minZoomLevel | {Integer}|{EMS.Zoom} Minimum (most zoomed out) level. |
| maxZoomLevel | {Integer}|{EMS.Zoom} Maximum (most zoomed in) level. |
| textSize | {EMS.TextSize} Text size on the maps. |
| fullsizeControls | {Boolean} a flag indicating whether to use fullsize controls. |
| zoomFocus | {OpenLayers.Pixel} zoomFocus as a pixel location. |
| Constants | |
| EVENT_TYPES | {Array} |
| Constructor | |
| EMS. | Constructs a map. |
| Functions | |
| deactivate | Make the map unresponsive to all mouse and keyboard input. |
| activate | Make the map respond to mouse and keyboard input again. |
| updateSize | This function should be called by any external code which dynamically changes the size of the map div (because mozilla wont let us catch the “onresize” for an element) |
| getMinZoomLevel | {Integer} Returns the minimum zoom level. |
| getMaxZoomLevel | {Integer} Returns the maximum zoom level. |
| addMarker | Shortcut method for adding a marker to the map. |
| removeMarker | Shortcut method for removing a marker from the map. |
| clearMarkers | Shortcut method for clearing all markers from the map. |
| getMarkers | |
| setRoute | Shortcut method for setting the route. |
| getRoute | Shortcut method for getting the current route, which might be null if not set. |
| clearRoute | Shortcut method for clearing any route from the current map. |
| getLayerByName | Finds a layer by a given name. |
| setZoomFocus | Sets the focus in pixels for zoom in and zoom out events (null for default behaviour) |
{Integer}|{EMS.Zoom} Minimum (most zoomed out) level.
{Integer}|{EMS.Zoom} Maximum (most zoomed in) level.
{EMS.TextSize} Text size on the maps. Set to EMS.TextSize.BIGTEXT for large text maps. Defaults to EMS.TextSize.NORMAL.
{OpenLayers.Pixel} zoomFocus as a pixel location. Leave null for default behaviour
Constructs a map.
| div | {Mixed} is either a {String} which represents the HTML id or a {DOMElement} to place the map into. This will also accept a {JQuery} object and inject the map into the first item in object. |
| options | {Object} properties that can be used to override current map properties. Available parameters include: |
| onInit | a callback function to which the map object should be passed once initialised. |
| controls | specifies a list of controls that should be displayed. |
| zoom | {Number} specifies a zoom level EMS.Zoom.MINIMUM and EMS.Zoom.MAXIMUM. |
| center | {EMS.LonLat} specifies the maps center point |
| showMaxExtent | {Boolean} When set to true (default) and no center is provided the full map of Australia will display. If set to false no map will be displayed until a center point or bounds are set. If you find Australia flashing up before going to your location set this to false. |
| fullsizeControls | {Boolean} specifies if the default map controls should be used or the fullsize map controls. |
| textSize | {EMS.TextSize} Set to EMS.TextSize.BIGTEXT for large text maps. Default: EMS.TextSize.NORMAL |
getLayerByName: function( name )
Finds a layer by a given name.
| name | {EMS.Layer}|{String} is the name of the layer. See EMS.Layer for default defined names. |
{OpenLayers.Layer} If one exists for the given name, null otherwise.
Make the map unresponsive to all mouse and keyboard input.
deactivate: function()
Make the map respond to mouse and keyboard input again.
activate: function()
This function should be called by any external code which dynamically changes the size of the map div (because mozilla wont let us catch the “onresize” for an element)
updateSize: function()
{Integer} Returns the minimum zoom level.
getMinZoomLevel: function()
{Integer} Returns the maximum zoom level.
getMaxZoomLevel: function()
Shortcut method for adding a marker to the map.
addMarker: function( marker )
Shortcut method for removing a marker from the map.
removeMarker: function( marker )
Shortcut method for clearing all markers from the map.
clearMarkers: function()
getMarkers: function()
Shortcut method for setting the route.
setRoute: function( route )
Shortcut method for getting the current route, which might be null if not set.
getRoute: function()
Shortcut method for clearing any route from the current map.
clearRoute: function()
Finds a layer by a given name.
getLayerByName: function( name )
Sets the focus in pixels for zoom in and zoom out events (null for default behaviour)
setZoomFocus: function( focus )