Subversion Repositories eFlore/Applications.cel

Rev

Rev 3866 | Rev 3870 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3866 Rev 3867
Line 357... Line 357...
357
};
357
};
Line 358... Line 358...
358
 
358
 
359
Geoloc.prototype.formatPolyline = function (latLngs) {
359
Geoloc.prototype.formatPolyline = function (latLngs) {
Line 360... Line 360...
360
    const polyline = [];
360
    const polyline = [];
Line 361... Line 361...
361
 
361
 
362
    latLngs.forEach(coordinates => polyline.push(Object.values(coordinates)));
362
    latLngs.forEach(coordinates => polyline.push(Object.values(coordinates).reverse()));
Line 363... Line 363...
363
 
363
 
Line 418... Line 418...
418
        }
418
        }
419
    });
419
    });
420
};
420
};
Line 421... Line 421...
421
 
421
 
422
Geoloc.prototype.formatPointTypeCoordinates = function(coordinates) {
422
Geoloc.prototype.formatPointTypeCoordinates = function(coordinates) {
423
    return {type : 'Point', coordinates: Object.values(coordinates)};
423
    return {type : 'Point', coordinates: Object.values(coordinates).reverse()};
Line 424... Line 424...
424
};
424
};
425
 
425
 
426
Geoloc.prototype.loadGeolocation = function(coordinates,locationData) {
426
Geoloc.prototype.loadGeolocation = function(coordinates,locationData) {