Provides a user control to hook into browser geolocation. When activated will recenter the map, and potentially change the zoom level based on the accuracy of the geolocation position.
The version of the control.
Switches the control to its active state, and kicks off a geolocation request to the client. Will add the "waving man" POI to the map and draw the halo to indicate the accuracy of the geolocation.
Switches the control to its inactive state, and removes the POI and halo from the map.
Determines the height of the control by selecting the greatest height from all elements in the control subtree. Override this method to provide a custom height (in most cases this should be overridden).
The height of the control.
Get the height of the control.
Provides localization support for controls with text labels.
The localized message.
Returns the position of the control. A default position is set when instantiated.
The position of the control.
Determines the width of the control by selecting the greatest width from all elements in the the control subtree. Override this method to provide a custom width (in most cases this should be overridden).
The width of the control.
Get the width of the control.
Initializes the control when added to the map.
Provides a customization point for adding behavior to the control. This function will be executed after a successful geolocation request, and takes the constructed POI and the position in the response. position object defined here: http://dev.w3.org/geo/api/spec-source.html#position_interface
Listens for "mapTypeChanged" events from the TileMap, and changes the background of the control as needed.
controlbase hooks into TileMap.onZoomEnd, and will call setZoom on each control. Allows us to redraw the halo on zoom level change with a new scale.
Toggle the state of the control