当前位置:网站首页>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
边栏推荐
- redis优化系列(三)解决主从配置后的常见问题
- Using bafayun to control the computer
- Keysight has chosen what equipment to buy for you
- Advanced transfer learning
- Sword finger offer II 116 Number of provinces - spatial complexity O (n), time complexity O (n)
- Fundamentals of machine learning theory -- some terms about machine learning
- Raspberry pie uses root operation, and the graphical interface uses its own file manager
- The difference between ordinary inner class and static inner class
- Android Development: the client obtains the latest value in the database in real time and displays it on the interface
- The type initializer for ‘Gdip‘ threw an exception
猜你喜欢
Getting started with vcpkg
Introduction to micro build low code zero Foundation (lesson 3)
2022.04.23 (the best time for lc_714_to buy and sell stocks, including handling charges)
【历史上的今天】4 月 23 日:YouTube 上传第一个视频;网易云音乐正式上线;数字音频播放器的发明者出生
Using Visual Studio code to develop Arduino
MySQL restores or rolls back data through binlog
12个例子夯实promise基础
Raspberry pie uses root operation, and the graphical interface uses its own file manager
Resolution: cnpm: unable to load file \cnpm. PS1, because running scripts is prohibited on this system
从技术体系到商业洞察,中小研发团队架构实践之收尾篇
随机推荐
ESP32 LVGL8. 1 - roller rolling (roller 24)
12 examples to consolidate promise Foundation
RPM包管理
Download xshell 6 and xftp6 official websites
浅谈c语言指针的强制转换
Nacos作为服务注册中心
Implementation of TCP UDP communication with golang language
【C语言进阶11——字符和字符串函数及其模拟实现(2))】
redis优化系列(三)解决主从配置后的常见问题
Scrollto and scrollby
[record] typeerror: this getOptions is not a function
Esp32 (UART receiving and sending) - receiving and sending communication of serial port (4)
c1000k TCP 连接上限测试1
C1000k TCP connection upper limit test
ESP32 LVGL8. 1 - arc (arc 19)
mysql_ Download and installation of Linux version
[报告] Microsoft :Application of deep learning methods in speech enhancement
binlog2sql 工具安装使用及问题汇总
MySQL学习第五弹——事务及其操作特性详解
static类变量快速入门