Mercurial > lada > lada-client
diff app/controller/Map.js @ 742:6e28ebbe1a73
added documentation for Form and Grid controllers
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Thu, 23 Apr 2015 16:28:04 +0200 |
parents | d21048cbdbb3 |
children |
line wrap: on
line diff
--- a/app/controller/Map.js Mon Apr 20 16:07:40 2015 +0200 +++ b/app/controller/Map.js Thu Apr 23 16:28:04 2015 +0200 @@ -7,6 +7,8 @@ */ /** + * This is a controller for a Map. + * Maps are used in the Ortsangaben of a Probe. */ Ext.define('Lada.controller.Map', { extend: 'Ext.app.Controller', @@ -14,6 +16,10 @@ requires: [ ], + /** + * Initialize the Controller + * It has only one listener. + */ init: function() { this.control({ 'maptoolbar button[action=add]': { @@ -23,6 +29,12 @@ this.callParent(arguments); }, + /** + * addLocation is a function which can be + * used to add an location to create a new Location + * with the help of the map. + * The function uses {@link Lada.view.panel.Map#activateDraw} + */ addLocation: function(button) { var mapPanel = button.up('map'); var details = button.up('window').down('locationform');