当前位置:网站首页>Openlayers 5.0 two centering methods

Openlayers 5.0 two centering methods

2022-04-23 19:09:00 GIS roast lamb leg is delicious

1.
map.getView().setCenter([data.x,data.y]);// Center to a point 
2.
map.getView().fit(webgissource.POLYGONLayerAllshi.getExtent(), map.getSize());// Center to geometry In the field of vision 

版权声明
本文为[GIS roast lamb leg is delicious]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231908120661.html