当前位置:网站首页>openlayers 5.0 两种居中方式
openlayers 5.0 两种居中方式
2022-04-23 19:08:00 【Gis烤羊腿真好吃】
1.
map.getView().setCenter([data.x,data.y]);//居中到某点
2.
map.getView().fit(webgissource.POLYGONLayerAllshi.getExtent(), map.getSize());//居中到geometry视野中
版权声明
本文为[Gis烤羊腿真好吃]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_38190600/article/details/102488573
边栏推荐
- Installation, use and problem summary of binlog2sql tool
- The difference between ordinary inner class and static inner class
- : app: transformclasseswithrobustfordevrease meituan hot repair compilation error record
- Feature selection feature_ selection--SelectKBest
- MVVM model
- 8266 obtain 18b20 temperature
- SSDB基础1
- 腾讯云GPU最佳实践-使用jupyter pycharm远程开发训练
- 7、 DOM (Part 2) - chapter after class exercises and answers
- Some records used by VS2010
猜你喜欢
ESP32 LVGL8. 1 - checkbox (checkbox 23)
[advanced level 11 of C language -- character and string functions and their simulation implementation (2)]
【C语言进阶11——字符和字符串函数及其模拟实现(2))】
Class loading process of JVM
ESP32 LVGL8. 1 - msgbox message box (msgbox 28)
微搭低代码零基础入门课(第三课)
Partage de la conception de l'alimentation électrique de commutation et illustration des compétences en conception de l'alimentation électrique
ESP32 LVGL8. 1 - img picture (IMG 20)
The difference between ordinary inner class and static inner class
Practice of Druid SQL and security in meituan review
随机推荐
Is it safe to open an account in Bohai futures.
SSDB foundation 3
Screenshot using projectmediamanager
该买什么设备,Keysight 给你挑好了
Sentinel rule persistence into Nacos
The difference between ordinary inner class and static inner class
Tencent map and high logo removal method
Nacos集群搭建和mysql持久化配置
C: generic reflection
Simple use of navigation in jetpack
Esp32 drive encoder -- siq-02fvs3 (vscade + IDF)
Practice of Druid SQL and security in meituan review
Seata处理分布式事务
Nacos as service registry
C1000k TCP connection upper limit test 1
[报告] Microsoft :Application of deep learning methods in speech enhancement
[record] typeerror: this getOptions is not a function
C1000k TCP connection upper limit test
mysql_linux版本的下載及安裝詳解
Getting started with vcpkg