Mercurial > lada > lada-client
diff app/view/window/Ortszuordnung.js @ 1284:faecbb446a04
Ortserstellung: new Messpunkt from map, clone or form
functional, still needs error handling and layout
author | Maximilian Krambach <mkrambach@intevation.de> |
---|---|
date | Tue, 24 Jan 2017 12:58:26 +0100 |
parents | 291df0037835 |
children | e317ba349204 |
line wrap: on
line diff
--- a/app/view/window/Ortszuordnung.js Wed Jan 18 16:03:40 2017 +0100 +++ b/app/view/window/Ortszuordnung.js Tue Jan 24 12:58:26 2017 +0100 @@ -153,7 +153,7 @@ this.down('ortszuordnungform').setRecord(this.record); var map = this.down('map'); var osg = this.down('ortstammdatengrid'); - var ortstore = Ext.create('Lada.store.Orte', { + this.ortstore = Ext.create('Lada.store.Orte', { defaultPageSize: 0, autoLoad: false, listeners: { @@ -167,8 +167,8 @@ fn: function() { osg.setLoading(false); map.setLoading(false); - osg.setStore(ortstore); - map.addLocations(ortstore); + osg.setStore(me.ortstore); + map.addLocations(me.ortstore); map.featureLayer.setVisibility(false); map.selectedFeatureLayer = new OpenLayers.Layer.Vector( 'gewählter Messpunkt', { @@ -194,7 +194,7 @@ } } }); - ortstore.load(); + this.ortstore.load(); map.addListener('featureselected', osg.selectOrt, osg); osg.addListener('select', map.selectFeature, map); },