当前位置:网站首页>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
边栏推荐
- 简化路径(力扣71)
- Sentinel规则持久化进Nacos
- openlayers 5.0 热力图
- ESP32 LVGL8. 1 - arc (arc 19)
- Nacos cluster construction and MySQL persistence configuration
- ESP32 LVGL8. 1 - slider slider (slider 22)
- Esp32 (UART receiving and sending) - receiving and sending communication of serial port (4)
- [记录]TypeError: this.getOptions is not a function
- openlayers 5.0 离散聚合点
- FTP、ssh远程访问及控制
猜你喜欢

Eight bit binary multiplier VHDL

mysql_linux版本的下載及安裝詳解

OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!

Client interns of a large factory share their experience face to face

FTP, SSH Remote Access and control

ArcMap连接 arcgis server

MySQL restores or rolls back data through binlog

Download xshell 6 and xftp6 official websites

【C语言进阶11——字符和字符串函数及其模拟实现(2))】

Network protocol: SCTP flow control transmission protocol
随机推荐
mysql_linux版本的下载及安装详解
I just want to leave a note for myself
An 8266 crash
Eight bit binary multiplier VHDL
The fifth bullet of MySQL learning -- detailed explanation of transaction and its operation characteristics
Go language GUI framework Fyne Chinese garbled or not displayed
WebView opens H5 video and displays gray background or black triangle button. Problem solved
为何PostgreSQL即将超越SQL Server?
SSDB foundation 3
Esp32 (UART ecoh) - serial port echo worm learning (2)
【C语言进阶11——字符和字符串函数及其模拟实现(2))】
Download xshell 6 and xftp6 official websites
从技术体系到商业洞察,中小研发团队架构实践之收尾篇
From technical system to business insight, the closing chapter of the practice of small and medium-sized R & D team structure
Zlib realizes streaming decompression
Codeforces Round #784 (Div. 4)
redis优化系列(三)解决主从配置后的常见问题
简化路径(力扣71)
Simple use of viewbinding
该买什么设备,Keysight 给你挑好了