<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
<link rel="stylesheet" href="http://localhost/openlayers/css/ol.css" type="text/css">
<script src="http://localhost/arcgis_js_api/jquery-2.1.1.min.js" type="text/javascript"></script>
<script src="http://localhost/openlayers/build/ol.js"></script>
<script type="text/javascript">
window.onload = function () {
var projection = ol.proj.get('EPSG:4326');
var tileUrl = "http://localhost/arcgis/rest/services/nmsl/MapServer/tile/{z}/{y}/{x}";
var origin = [-180, 90];
//地图比例尺
var resolutions = [
1.4078260157100582,
0.703913007855028,
0.35195650392751515,
0
openLayer 加载arcgis地图服务
最新推荐文章于 2023-07-21 17:19:39 发布