当前位置:网站首页>openlayers 5.0 加载arcgis server 切片服务
openlayers 5.0 加载arcgis server 切片服务
2022-04-23 19:08:00 【Gis烤羊腿真好吃】
import Map from 'ol/Map.js';
import View from 'ol/View.js';
import Tile from 'ol/layer/Tile.js';
import TileArcGISRest from 'ol/source/TileArcGISRest.js';
var webgissource={}
var view=new View({
center:[106.516,29.56] ,//中心点
zoom: 12,//当前等级
minZoom: 5,//最小等级
maxZoom: 17,//最大等级
projection: 'EPSG:4326'//坐标系
})
webgissource.VectorBaseMap=new Tile({
visible: true,
source: new TileArcGISRest({
url: 'localhost:6080/arcgis/rest/services/founder/china/MapServer'//服务路径
}),
})
var map = new Map({
loadTilesWhileAnimating: true,
target: 'mapDiv',//容器id
layers:[webgissource.VectorBaseMap],
view: view
});
版权声明
本文为[Gis烤羊腿真好吃]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_38190600/article/details/102487821
边栏推荐
- [play with lighthouse] Tencent cloud lightweight server builds a full platform video analysis video download website
- C1000k TCP connection upper limit test 1
- 腾讯云GPU最佳实践-使用jupyter pycharm远程开发训练
- 微搭低代码零基础入门课(第三课)
- Sogou cell thesaurus analysis (only extract words and word frequency)
- Installation, use and problem summary of binlog2sql tool
- 12个例子夯实promise基础
- 開關電源設計分享及電源設計技巧圖解
- Some records used by VS2010
- Circuit on-line simulation
猜你喜欢
7、 DOM (Part 2) - chapter after class exercises and answers
12个例子夯实promise基础
Esp32 drive encoder -- siq-02fvs3 (vscade + IDF)
MySQL Téléchargement et installation de la version Linux
Android Development: the client obtains the latest value in the database in real time and displays it on the interface
Eight bit binary multiplier VHDL
Simple use of navigation in jetpack
开关电源设计分享及电源设计技巧图解
After opening the original normal project, the dependency package displays red and does not exist.
PyGame tank battle
随机推荐
Introduction to ROS learning notes (I)
Network protocol: SCTP flow control transmission protocol
[record] typeerror: this getOptions is not a function
How about CICC wealth? Is it safe to open an account up there
SQL常用的命令
Zlib realizes streaming decompression
Get a list of recent apps
Screen right-click menu in souI
Solutions such as unknown or garbled code or certificate problem prompt in Charles's mobile phone packet capture, actual measurement.
特征选择feature_selection--SelectKBest
Sentinel服务熔断实战(sentinel整合ribbon+openFeign+fallback)
简化路径(力扣71)
How can programmers quickly develop high-quality code?
mysql_linux版本的下載及安裝詳解
MySQL Téléchargement et installation de la version Linux
高层次人才一站式服务平台开发 人才综合服务平台系统
ESP32 LVGL8. 1. Detailed migration tutorial of m5stack + lvgl + IDF (27)
RPM package management
Go language GUI framework Fyne Chinese garbled or not displayed
为何PostgreSQL即将超越SQL Server?