apps/web-app-template/app.js
// Classical formula to obtain middle point between two coordinates
Classical formula to obtain middle point between two coordinates
Classical formula to obtain middle point between two coordinates
function findLayerCenter(layerSector) {
                var centerLatitude = (layerSector.maxLatitude + layerSector.minLatitude) / 2;
                var centerLongitude = (layerSector.maxLongitude + layerSector.minLongitude) / 2;
                var layerCenter = new WorldWind.Location(centerLatitude, centerLongitude);
                return layerCenter;
            }
function findLayerCenter ( layerSector ) { var centerLatitude = ( layerSector . maxLatitude + layerSector . minLatitude ) / 2 ; var centerLongitude = ( layerSector . maxLongitude + layerSector . minLongitude ) / 2 ; var layerCenter = new WorldWind . Location ( centerLatitude , centerLongitude ) ; return layerCenter ; }
Classical formula to obtain middle point between two coordinates
Classical formula to obtain middle point between two coordinates