[Lada-commits] [PATCH 4 of 5] Added a toolbar to the OpenLayers map panel
Wald Commits
scm-commit at wald.intevation.org
Mon Mar 16 17:31:24 CET 2015
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1426523501 -3600
# Node ID def8def373e8e31e82c7cfb30055601b11f6f014
# Parent 291ac2e2bcf532dea125fc72bc6c5097dae65ef3
Added a toolbar to the OpenLayers map panel.
diff -r 291ac2e2bcf5 -r def8def373e8 app/view/panel/Map.js
--- a/app/view/panel/Map.js Mon Mar 16 17:31:13 2015 +0100
+++ b/app/view/panel/Map.js Mon Mar 16 17:31:41 2015 +0100
@@ -57,6 +57,7 @@
keyControl.activate();
this.bodyStyle = {background: '#fff'};
this.initData();
+ this.tbar = Ext.create('Lada.view.widget.MapToolbar');
this.callParent(arguments);
},
diff -r 291ac2e2bcf5 -r def8def373e8 app/view/widget/MapToolbar.js
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/app/view/widget/MapToolbar.js Mon Mar 16 17:31:41 2015 +0100
@@ -0,0 +1,21 @@
+/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
+ * Software engineering by Intevation GmbH
+ *
+ * This file is Free Software under the GNU GPL (v>=3)
+ * and comes with ABSOLUTELY NO WARRANTY! Check out
+ * the documentation coming with IMIS-Labordaten-Application for details.
+ */
+
+Ext.define('Lada.view.widget.MapToolbar', {
+ extend: 'Ext.toolbar.Toolbar',
+ alias: 'widget.maptoolbar',
+
+ initComponent: function() {
+ this.items = [{
+ icon: 'resources/img/list-add.png',
+ tooltip: 'Neuen Ort hinzufügen',
+ action: 'add'
+ }];
+ this.callParent(arguments);
+ }
+});
More information about the Lada-commits
mailing list