portree_kid
2020-07-01 22:03:23 +02:00
parent af4d3b7143
commit 7a75e4f392
4 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -865,7 +865,7 @@ You should have received a copy of the GNU General Public License along with FG
});
}
this.$store.dispatch('setParking', circle.options.attributes);
this.$store.dispatch('setParkingCoords', circle.getLatLng().lat.toFixed(5) + ' ' + circle.getLatLng().lng.toFixed(5));
this.$store.dispatch('setParkingCoords', circle.getLatLng().lat.toFixed(6) + ' ' + circle.getLatLng().lng.toFixed(6));
circle.select()
addFeature(circle)
// console.log(this.groundnetLayerGroup)
+1 -2
View File
@@ -230,9 +230,8 @@
if (newValue==='unknown') {
}
if( newValue.match(/,/g).length === 3) {
if( newValue.match(/,/g) !== null && newValue.match(/,/g).length === 3) {
newValue = newValue.replace(', ', ' ').replace(/,/g, '.').replace(' ', ', ');
}
this.$store.commit('SET_EDIT_PARKING_COORDS', newValue)
}