当前位置:网站首页>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
边栏推荐
- ESP32 LVGL8. 1 - checkbox (checkbox 23)
- Use of kotlin collaboration in the project
- ESP32 LVGL8. 1 - msgbox message box (msgbox 28)
- Esp32 (UART event) - serial port event learning (1)
- I just want to leave a note for myself
- Sword finger offer II 116 Number of provinces - spatial complexity O (n), time complexity O (n)
- 腾讯云GPU最佳实践-使用jupyter pycharm远程开发训练
- Some records used by VS2010
- Nacos集群搭建和mysql持久化配置
- ESP32 LVGL8. 1 - roller rolling (roller 24)
猜你喜欢

简化路径(力扣71)

Esp32 (UART 485 communication) - 485 communication of serial port (3)

ESP32 LVGL8. 1 - checkbox (checkbox 23)

ESP32 LVGL8. 1 - calendar (calendar 25)

【历史上的今天】4 月 23 日:YouTube 上传第一个视频;网易云音乐正式上线;数字音频播放器的发明者出生

Some records used by VS2010

该买什么设备,Keysight 给你挑好了

7、 DOM (Part 2) - chapter after class exercises and answers

Using Visual Studio code to develop Arduino
![[记录]TypeError: this.getOptions is not a function](/img/c9/0d92891b6beec3d6085bd3da516f00.png)
[记录]TypeError: this.getOptions is not a function
随机推荐
An 8266 crash
ESP32 LVGL8. 1. Detailed migration tutorial of m5stack + lvgl + IDF (27)
SSDB基础1
2022.04.23 (the best time for lc_714_to buy and sell stocks, including handling charges)
MySQL restores or rolls back data through binlog
Screen right-click menu in souI
【历史上的今天】4 月 23 日:YouTube 上传第一个视频;网易云音乐正式上线;数字音频播放器的发明者出生
ESP32 LVGL8. 1 - textarea text area (textarea 26)
Esp32 (UART event) - serial port event learning (1)
#yyds干货盘点#stringprep --- 因特网字符串预备
開關電源設計分享及電源設計技巧圖解
Implementation of TCP UDP communication with golang language
How can programmers quickly develop high-quality code?
mysql_linux版本的下載及安裝詳解
剑指 Offer II 116. 省份数量-空间复杂度O(n),时间复杂度O(n)
SQL Server database in clause and exists clause conversion
Sentinel服务熔断实战(sentinel整合ribbon+openFeign+fallback)
【C语言进阶11——字符和字符串函数及其模拟实现(2))】
2022.04.23(LC_763_划分字母区间)
Recyclerview control list item layout match_ Fundamental principle of parent attribute invalidation