Skip to content

Commit ee2ced7

Browse files
author
caoxinke
committed
openlayerd例子ol引用升级到4.2.0
1 parent 3d90b74 commit ee2ced7

File tree

105 files changed

+341
-329
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+341
-329
lines changed

dist/iclient9-leaflet.js

Lines changed: 126 additions & 116 deletions
Large diffs are not rendered by default.

dist/iclient9-leaflet.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/iclient9-mapboxgl.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/iclient9-openlayers.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11279,16 +11279,17 @@ ol.source.VectorTileSuperMapRest = function (options) {
1127911279
if (options.returnCutEdges !== undefined) {
1128011280
layerUrl += "&returnCutEdges=" + options.returnCutEdges;
1128111281
}
11282+
var me = this;
1128211283
function tileUrlFunction(tileCoord, pixelRatio, projection) {
1128311284
this.projection = projection;
11284-
if (!this.tileGrid) {
11285-
this.tileGrid = this.getTileGridForProjection(projection);
11285+
if (!me.tileGrid) {
11286+
me.tileGrid = me.getTileGridForProjection(projection);
1128611287
}
1128711288
var z = tileCoord[0];
1128811289
var x = tileCoord[1];
1128911290
var y = -tileCoord[2] - 1;
11290-
var origin = this.tileGrid.getOrigin(z);
11291-
var resolution = this.tileGrid.getResolution(z);
11291+
var origin = me.tileGrid.getOrigin(z);
11292+
var resolution = me.tileGrid.getResolution(z);
1129211293
var dpi = 96;
1129311294
var unit = projection.getUnits();
1129411295
if (unit === 'degrees') {
@@ -11298,13 +11299,13 @@ ol.source.VectorTileSuperMapRest = function (options) {
1129811299
unit = SuperMap.Unit.METER;
1129911300
}
1130011301
var scale = ol.supermap.Util.resolutionToScale(resolution, dpi, unit);
11301-
var tileSize = ol.size.toSize(this.tileGrid.getTileSize(z, this.tmpSize));
11302+
var tileSize = ol.size.toSize(me.tileGrid.getTileSize(z, me.tmpSize));
1130211303
return layerUrl + "&x=" + x + "&y=" + y + "&width=" + tileSize[0] + "&height=" + tileSize[1] + "&scale=" + scale + "&origin={'x':" + origin[0] + ",'y':" + origin[1] + "}";
1130311304
}
1130411305

1130511306
function tileLoadFunction(tile, tileUrl) {
1130611307
if (tile.getFormat() instanceof ol.format.MVT) {
11307-
ol.VectorTile.defaultLoadFunction(tile, tileUrl);
11308+
ol.VectorImageTile.defaultLoadFunction(tile, tileUrl);
1130811309
return;
1130911310
}
1131011311
tile.setLoader(function () {

dist/iclient9-openlayers.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/openlayers/01_layerService.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<title>SuperMap 图层信息</title>
66

77
<link href="http://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
8-
<link href="http://cdn.bootcss.com/openlayers/4.0.1/ol.css" rel="stylesheet">
8+
<link href="http://cdn.bootcss.com/openlayers/4.2.0/ol.css" rel="stylesheet">
99
<style>
1010
.ol-popup {
1111
position: absolute;
@@ -52,7 +52,7 @@
5252
<div id="popup-content"></div>
5353
</div>
5454

55-
<script src="http://cdn.bootcss.com/openlayers/4.0.1/ol-debug.js"></script>
55+
<script src="http://cdn.bootcss.com/openlayers/4.2.0/ol-debug.js"></script>
5656
<script type="text/javascript" src="../../dist/iclient9-openlayers.min.js"></script>
5757
<script type="text/javascript">
5858
var container = document.getElementById('popup');

examples/openlayers/01_mapQueryByBounds.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
<title>地图bounds查询</title>
66

77
<link href="http://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
8-
<link href="http://cdn.bootcss.com/openlayers/4.0.1/ol.css" rel="stylesheet">
8+
<link href="http://cdn.bootcss.com/openlayers/4.2.0/ol.css" rel="stylesheet">
99
</head>
1010
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%">
1111
<div id="map" style="width: 100%;height:100%"></div>
1212

13-
<script src="http://cdn.bootcss.com/openlayers/4.0.1/ol-debug.js"></script>
13+
<script src="http://cdn.bootcss.com/openlayers/4.2.0/ol-debug.js"></script>
1414
<script type="text/javascript" src="../../dist/iclient9-openlayers.min.js"></script>
1515
<script type="text/javascript">
1616
var map, polygon, vectorLayer, resultLayer,

examples/openlayers/01_mapQueryByDistance.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
<title>地图距离查询</title>
66

77
<link href="http://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
8-
<link href="http://cdn.bootcss.com/openlayers/4.0.1/ol.css" rel="stylesheet">
8+
<link href="http://cdn.bootcss.com/openlayers/4.2.0/ol.css" rel="stylesheet">
99
</head>
1010
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%">
1111
<div id="map" style="width: 100%;height:100%"></div>
1212

13-
<script src="http://cdn.bootcss.com/openlayers/4.0.1/ol-debug.js"></script>
13+
<script src="http://cdn.bootcss.com/openlayers/4.2.0/ol-debug.js"></script>
1414
<script type="text/javascript" src="../../dist/iclient9-openlayers.min.js"></script>
1515
<script type="text/javascript">
1616
var map, point, vectorLayer, resultLayer,

examples/openlayers/01_mapQueryByGeometry.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
<title>地图几何查询</title>
66

77
<link href="http://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
8-
<link href="http://cdn.bootcss.com/openlayers/4.0.1/ol.css" rel="stylesheet">
8+
<link href="http://cdn.bootcss.com/openlayers/4.2.0/ol.css" rel="stylesheet">
99
</head>
1010
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%">
1111
<div id="map" style="width: 100%;height:100%"></div>
1212

13-
<script src="http://cdn.bootcss.com/openlayers/4.0.1/ol-debug.js"></script>
13+
<script src="http://cdn.bootcss.com/openlayers/4.2.0/ol-debug.js"></script>
1414
<script type="text/javascript" src="../../dist/iclient9-openlayers.min.js"></script>
1515
<script type="text/javascript">
1616
var map, vectorLayer, resultLayer,

examples/openlayers/01_mapQueryBySQL.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
<title>地图SQL查询</title>
66

77
<link href="http://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
8-
<link href="http://cdn.bootcss.com/openlayers/4.0.1/ol.css" rel="stylesheet">
8+
<link href="http://cdn.bootcss.com/openlayers/4.2.0/ol.css" rel="stylesheet">
99
</head>
1010
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%">
1111
<div id="map" style="width: 100%;height:100%"></div>
1212

13-
<script src="http://cdn.bootcss.com/openlayers/4.0.1/ol-debug.js"></script>
13+
<script src="http://cdn.bootcss.com/openlayers/4.2.0/ol-debug.js"></script>
1414
<script type="text/javascript" src="../../dist/iclient9-openlayers.min.js"></script>
1515
<script type="text/javascript">
1616
var map, resultLayer, url = "http://support.supermap.com.cn:8090/iserver/services/map-world/rest/maps/World";

0 commit comments

Comments
 (0)