当前位置:网站首页>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
边栏推荐
- Summary of actual business optimization scheme - main directory - continuous update
- Circuit on-line simulation
- Get a list of recent apps
- binlog2sql 工具安装使用及问题汇总
- 网络协议之:sctp流控制传输协议
- [record] typeerror: this getOptions is not a function
- FTP, SSH Remote Access and control
- Sogou cell thesaurus analysis (only extract words and word frequency)
- RPM package management
- Screen right-click menu in souI
猜你喜欢

Introduction to micro build low code zero Foundation (lesson 3)

ESP32 LVGL8. 1 - checkbox (checkbox 23)

The difference between ordinary inner class and static inner class

Sword finger offer II 116 Number of provinces - spatial complexity O (n), time complexity O (n)

Partage de la conception de l'alimentation électrique de commutation et illustration des compétences en conception de l'alimentation électrique

The fifth bullet of MySQL learning -- detailed explanation of transaction and its operation characteristics

Eight bit binary multiplier VHDL

WebView opens H5 video and displays gray background or black triangle button. Problem solved

Esp32 drive encoder -- siq-02fvs3 (vscade + IDF)

redis优化系列(三)解决主从配置后的常见问题
随机推荐
Use of kotlin collaboration in the project
Get a list of recent apps
static类变量快速入门
【玩转Lighthouse】腾讯云轻量服务器搭建全平台视频解析视频下载网站
The corresponding permissions required to automatically open the app in the setting interface through accessibility service
Recyclerview control list item layout match_ Fundamental principle of parent attribute invalidation
About the operation of unit file reading (I)
Keysight has chosen what equipment to buy for you
7、 DOM (Part 2) - chapter after class exercises and answers
Methods of nested recycleview to solve sliding conflict and incomplete item display
The type initializer for ‘Gdip‘ threw an exception
binlog2sql 工具安装使用及问题汇总
How about CICC wealth? Is it safe to open an account up there
Accessing private members using templates
SSDB基础2
The fifth bullet of MySQL learning -- detailed explanation of transaction and its operation characteristics
Actual combat of Nacos as service configuration center
ESP32 LVGL8. 1 - input devices (input devices 18)
腾讯云GPU最佳实践-使用jupyter pycharm远程开发训练
Practice of Druid SQL and security in meituan review