当前位置:网站首页>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
边栏推荐
- Using Visual Studio code to develop Arduino
- Customize the non slidable viewpage and how to use it
- Using bafayun to control the computer
- Raspberry pie 18b20 temperature
- [advanced level 11 of C language -- character and string functions and their simulation implementation (2)]
- Methods of nested recycleview to solve sliding conflict and incomplete item display
- mysql通过binlog恢复或回滚数据
- Esp32 (UART ecoh) - serial port echo worm learning (2)
- c#:泛型反射
- All table queries and comment description queries of SQL Server
猜你喜欢
随机推荐
Esp32 (UART event) - serial port event learning (1)
Class loading process of JVM
Circuit on-line simulation
std::stoi stol stoul stoll stof stod
Getting started with vcpkg
Some records used by VS2010
Customize the non slidable viewpage and how to use it
Screen right-click menu in souI
Using Visual Studio code to develop Arduino
One of the reasons why the WebView web page cannot be opened (and some WebView problem records encountered by myself)
c1000k TCP 连接上限测试1
SSDB foundation 1
mysql通过binlog恢复或回滚数据
Simple use of navigation in jetpack
2022.04.23(LC_763_划分字母区间)
Raspberry pie uses root operation, and the graphical interface uses its own file manager
Esp32 drive encoder -- siq-02fvs3 (vscade + IDF)
Dynamically add and delete layouts
[play with lighthouse] Tencent cloud lightweight server builds a full platform video analysis video download website
SSDB Foundation








