当前位置:网站首页>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
边栏推荐
- Wechat video extraction and receiving file path
- Redis optimization series (III) solve common problems after master-slave configuration
- [play with lighthouse] Tencent cloud lightweight server builds a full platform video analysis video download website
- Go 语言 GUI 框架 fyne 中文乱码或者不显示的问题
- 解决:cnpm : 無法加載文件 ...\cnpm.ps1,因為在此系統上禁止運行脚本
- Client interns of a large factory share their experience face to face
- Fundamentals of machine learning theory -- some terms about machine learning
- mysql_linux版本的下载及安装详解
- Scrollto and scrollby
- Summary of actual business optimization scheme - main directory - continuous update
猜你喜欢

Druid SQL和Security在美团点评的实践

Practice of Druid SQL and security in meituan review

mysql_ Download and installation of Linux version

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

开关电源设计分享及电源设计技巧图解

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

七、DOM(下) - 章节课后练习题及答案

【历史上的今天】4 月 23 日:YouTube 上传第一个视频;网易云音乐正式上线;数字音频播放器的发明者出生
![[记录]TypeError: this.getOptions is not a function](/img/c9/0d92891b6beec3d6085bd3da516f00.png)
[记录]TypeError: this.getOptions is not a function

Esp32 (UART receiving and sending) - receiving and sending communication of serial port (4)
随机推荐
Introduction to ROS learning notes (I)
【玩转Lighthouse】腾讯云轻量服务器搭建全平台视频解析视频下载网站
12个例子夯实promise基础
Scrollto and scrollby
SSDB基础2
Using 8266 as serial port debugging tool
ESP32 LVGL8. 1 - calendar (calendar 25)
Introduction to micro build low code zero Foundation (lesson 3)
MySQL学习第五弹——事务及其操作特性详解
Summary of actual business optimization scheme - main directory - continuous update
MySQL Téléchargement et installation de la version Linux
The corresponding permissions required to automatically open the app in the setting interface through accessibility service
ESP32 LVGL8. 1. Detailed migration tutorial of m5stack + lvgl + IDF (27)
One of the reasons why the WebView web page cannot be opened (and some WebView problem records encountered by myself)
2022.04.23(LC_714_买卖股票的最佳时机含手续费)
[popular science] CRC verification (I) what is CRC verification?
Resolution: cnpm: unable to load file \cnpm. PS1, because running scripts is prohibited on this system
Class loading process of JVM
Accessing private members using templates
中金财富怎么样?在上边开户安全吗