This example, url below, uses OL-3 with an option to do geodestic measures uses "var wgs84Sphere = new ol.Sphere(6378137);"
How can I set the same variable ("wgs84Sphere") to be used by OL version 5?!
This example, url below, uses OL-3 with an option to do geodestic measures uses "var wgs84Sphere = new ol.Sphere(6378137);"
How can I set the same variable ("wgs84Sphere") to be used by OL version 5?!
ol/Sphere
no longer exists in OpenLayers 5, if you want to measure useol/sphere
methodsgetArea
andgetDistance
.Follow the link to see this and some use examples: https://github.com/openlayers/openlayers/releases/tag/v5.0.0