当前位置:网站首页>Openlayers 5.0 loading ArcGIS Server slice service
Openlayers 5.0 loading ArcGIS Server slice service
2022-04-23 19:08:00 【GIS roast lamb leg is delicious】
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] ,// Center point
zoom: 12,// Current level
minZoom: 5,// Minimum grade
maxZoom: 17,// Maximum level
projection: 'EPSG:4326'// Coordinate system
})
webgissource.VectorBaseMap=new Tile({
visible: true,
source: new TileArcGISRest({
url: 'localhost:6080/arcgis/rest/services/founder/china/MapServer'// Service path
}),
})
var map = new Map({
loadTilesWhileAnimating: true,
target: 'mapDiv',// Containers id
layers:[webgissource.VectorBaseMap],
view: view
});
版权声明
本文为[GIS roast lamb leg is delicious]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231908120989.html
边栏推荐
- ArcMap连接 arcgis server
- C1000k TCP connection upper limit test
- Wechat applet part of the mobile phone Preview PDF did not respond
- 微搭低代码零基础入门课(第三课)
- 该买什么设备,Keysight 给你挑好了
- Quick start to static class variables
- js 计算时间差
- Using Visual Studio code to develop Arduino
- Network protocol: SCTP flow control transmission protocol
- Introduction to ROS learning notes (II)
猜你喜欢
12 examples to consolidate promise Foundation
Installation, use and problem summary of binlog2sql tool
Some records used by VS2010
ESP32 LVGL8. 1 - roller rolling (roller 24)
浅谈c语言指针的强制转换
Practice of Druid SQL and security in meituan review
The difference between ordinary inner class and static inner class
7、 DOM (Part 2) - chapter after class exercises and answers
Wechat applet part of the mobile phone Preview PDF did not respond
I just want to leave a note for myself
随机推荐
Eight bit binary multiplier VHDL
Use of kotlin collaboration in the project
js上传文件时控制文件类型和大小
SSDB foundation 1
Partage de la conception de l'alimentation électrique de commutation et illustration des compétences en conception de l'alimentation électrique
ESP32 LVGL8. 1 - img picture (IMG 20)
[today in history] April 23: the first video uploaded on YouTube; Netease cloud music officially launched; The inventor of digital audio player was born
Treatment of incomplete display of listview height
Sentinel rule persistence into Nacos
12 examples to consolidate promise Foundation
RPM包管理
Redis optimization series (III) solve common problems after master-slave configuration
On the forced conversion of C language pointer
#yyds干货盘点#stringprep --- 因特网字符串预备
mysql_linux版本的下载及安装详解
SSDB foundation 3
redis优化系列(三)解决主从配置后的常见问题
Client interns of a large factory share their experience face to face
binlog2sql 工具安装使用及问题汇总
Esp32 (UART event) - serial port event learning (1)