org. | |
Constants | |
i18n_zoomfull_tooltip | {String} Tooltip of the zoomfull button |
i18n_zoomin_tooltip | {String} Tooltip of the zoomin button |
i18n_zoomout_tooltip | {String} Tooltip of the zoomout button |
i18n_pan_tooltip | {String} Tooltip of the pan button |
i18n_back_tooltip | {String} Tooltip of the back button |
i18n_next_tooltip | {String} Tooltip of the next button |
Properties | |
DEFAULT_CONTROLS | {Array(String)} List of default controls and separators to build the toolbar with if no controls were defined. |
Functions | |
initComponent | Call by Ext on initialize of the Component |
initContent | Create default controls for the map and associate each one of them to a GeoExtAction. |
onCheckItemClicked | Called when a checkItem item of a menu item in the toolbar has been clicked. |
onActionClicked | Called when a Action (button) item in the toolbar has been clicked. |
onAfterRender | Called after the toolbar has been rendered. |
initContent : function( map, options )
Create default controls for the map and associate each one of them to a GeoExtAction.
The initialisation of QuickTips MUST be made in a Ext.onReady function in order to have tooltips working : Ext.QuickTips.init();
map | {OpenLayers.Map} The map object |
onAfterRender : function()
Called after the toolbar has been rendered.
Used register events on Buttons and Menu items that share the same group to fix the following bug :
on button clicked : uncheck all menu items and deactivate all according controls. on menu item cliked : unpress all buttons and deactivate all according controls.
N.B. This function doesn’t check if the items actually share the same group, only if it has the property.
Call by Ext on initialize of the Component
initComponent: function()
Create default controls for the map and associate each one of them to a GeoExtAction.
initContent : function( map, options )
Called when a checkItem item of a menu item in the toolbar has been clicked.
onCheckItemClicked : function()
Called when a Action (button) item in the toolbar has been clicked.
onActionClicked : function()
Called after the toolbar has been rendered.
onAfterRender : function()