当前位置:网站首页>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
边栏推荐
- 2022.04.23(LC_763_划分字母区间)
- One stop service platform for high-level talents and development of comprehensive service platform system for talents
- SSDB Foundation
- Partage de la conception de l'alimentation électrique de commutation et illustration des compétences en conception de l'alimentation électrique
- 2022.04.23 (lc_763_divided into letter interval)
- static类变量快速入门
- The type initializer for ‘Gdip‘ threw an exception
- mysql通过binlog恢复或回滚数据
- 该买什么设备,Keysight 给你挑好了
- From technical system to business insight, the closing chapter of the practice of small and medium-sized R & D team structure
猜你喜欢
Eight bit binary multiplier VHDL
ESP32 LVGL8. 1 - roller rolling (roller 24)
[today in history] April 23: the first video uploaded on YouTube; Netease cloud music officially launched; The inventor of digital audio player was born
Practice of Druid SQL and security in meituan review
2022.04.23(LC_763_划分字母区间)
mysql_linux版本的下載及安裝詳解
微搭低代码零基础入门课(第三课)
[popular science] CRC verification (I) what is CRC verification?
Esp01s with Arduino development environment
The fifth bullet of MySQL learning -- detailed explanation of transaction and its operation characteristics
随机推荐
浅谈c语言指针的强制转换
Tencent map and high logo removal method
SQL常用的命令
Get a list of recent apps
2022.04.23(LC_763_划分字母区间)
SSDB Foundation
Nacos cluster construction and MySQL persistence configuration
ESP32 LVGL8. 1 - roller rolling (roller 24)
Tencent cloud GPU best practices - remote development training using jupyter pycharm
Sentinel服务熔断实战(sentinel整合ribbon+openFeign+fallback)
開關電源設計分享及電源設計技巧圖解
2022.04.23 (the best time for lc_714_to buy and sell stocks, including handling charges)
JVM的类加载过程
Network protocol: SCTP flow control transmission protocol
[today in history] April 23: the first video uploaded on YouTube; Netease cloud music officially launched; The inventor of digital audio player was born
Feature selection feature_ selection--SelectKBest
Using bafayun to control the computer
Yyds dry goods inventory stringprep --- Internet string preparation
std::stoi stol stoul stoll stof stod
Click the input box to pop up the keyboard layout and move up