Merge pull request #371 from shellixyz/fix_mission_control

Fixes transposition of coordinates when saving WP
pull/375/head
Konstantin Sharlaimov 7 years ago committed by GitHub
commit f58134e984
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -360,7 +360,7 @@ TABS.mission_control.initialize = function (callback) {
map.getLayers().forEach(function (t) {
if (t === selectedMarker) {
var geometry = t.getSource().getFeatures()[0].getGeometry();
geometry.setCoordinates(ol.proj.fromLonLat([parseFloat($('#pointLat').val()), parseFloat($('#pointLon').val())]));
geometry.setCoordinates(ol.proj.fromLonLat([parseFloat($('#pointLon').val()), parseFloat($('#pointLat').val())]));
t.alt = $('#pointAlt').val();
t.action = $('#pointType').val();
t.speedValue = $('#pointSpeed').val();

Loading…
Cancel
Save