OL 5 中的测地线测量?
Geodestic measures in OL 5?
这个例子,下面 url,使用 OL-3 和一个选项来做大地测量使用 "var wgs84Sphere = new ol.Sphere(6378137);"
如何设置相同的变量 ("wgs84Sphere") 供 OL 版本 5 使用?!
ol/Sphere
在 OpenLayers 5 中不再存在,如果你想测量使用 ol/sphere
方法 getArea
和 getDistance
.
按照 link 查看此内容和一些使用示例:https://github.com/openlayers/openlayers/releases/tag/v5.0.0
这个例子,下面 url,使用 OL-3 和一个选项来做大地测量使用 "var wgs84Sphere = new ol.Sphere(6378137);"
如何设置相同的变量 ("wgs84Sphere") 供 OL 版本 5 使用?!
ol/Sphere
在 OpenLayers 5 中不再存在,如果你想测量使用 ol/sphere
方法 getArea
和 getDistance
.
按照 link 查看此内容和一些使用示例:https://github.com/openlayers/openlayers/releases/tag/v5.0.0