Mercurial > lada > lada-client
comparison app/controller/form/Location.js @ 895:2b7bcb778f0a
Jsduck debug
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Thu, 23 Jul 2015 17:14:05 +0200 |
parents | 6e28ebbe1a73 |
children | 24b5684d74d7 |
comparison
equal
deleted
inserted
replaced
894:a1d72228af00 | 895:2b7bcb778f0a |
---|---|
121 | 121 |
122 /** | 122 /** |
123 * This function updates the Latitude (heigth-value / y-value) of a feature | 123 * This function updates the Latitude (heigth-value / y-value) of a feature |
124 * (geospatial object). The feature can be a marker in the map | 124 * (geospatial object). The feature can be a marker in the map |
125 * @param {Ext.form.field.Field} field the Ext.field which was altered | 125 * @param {Ext.form.field.Field} field the Ext.field which was altered |
126 * @param {} nValue the new Latitude as WGS84 in decimaldegrees | 126 * @param nValue the new Latitude as WGS84 in decimaldegrees |
127 */ | 127 */ |
128 updateFeatureLatitude: function(field, nValue) { | 128 updateFeatureLatitude: function(field, nValue) { |
129 var layer = field.up('window').down('map').selectControl.layer; | 129 var layer = field.up('window').down('map').selectControl.layer; |
130 var newLocation = field.up('window').down('map').locationRecord; | 130 var newLocation = field.up('window').down('map').locationRecord; |
131 if (layer && layer.selectedFeatures[0] && newLocation) { | 131 if (layer && layer.selectedFeatures[0] && newLocation) { |
137 | 137 |
138 /** | 138 /** |
139 * This function updates the Longitude (right-value / x-value) of a feature | 139 * This function updates the Longitude (right-value / x-value) of a feature |
140 * (geospatial object). The feature can be a marker in the map | 140 * (geospatial object). The feature can be a marker in the map |
141 * @param {Ext.form.field.Field} field the Ext.field which was altered | 141 * @param {Ext.form.field.Field} field the Ext.field which was altered |
142 * @param {} nValue the new Longitude as WGS84 in decimaldegrees | 142 * @param nValue the new Longitude as WGS84 in decimaldegrees |
143 */ | 143 */ |
144 updateFeatureLongitude: function(field, nValue) { | 144 updateFeatureLongitude: function(field, nValue) { |
145 var layer = field.up('window').down('map').selectControl.layer; | 145 var layer = field.up('window').down('map').selectControl.layer; |
146 var newLocation = field.up('window').down('map').locationRecord; | 146 var newLocation = field.up('window').down('map').locationRecord; |
147 if (layer && layer.selectedFeatures[0] && newLocation) { | 147 if (layer && layer.selectedFeatures[0] && newLocation) { |