Skip to content

Commit fa52c72

Browse files
committed
【example】修改在线服务地址
1 parent 2a4ac74 commit fa52c72

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

examples/maplibregl/01_tiledMapLayer_rasterfunction.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
<body>
2828
<div id="map"></div>
2929
<script type="text/javascript">
30-
var host = window.isLocal ? window.server : 'https://iserver.supermap.io';
3130
var map = new maplibregl.Map({
3231
container: 'map', // container id
3332
style: {

examples/maplibregl/mvtVectorTile_2362.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,9 @@
3131
<script type="text/javascript" include="jquery" src="../js/include-web.js"></script>
3232
<script type="text/javascript" include="maplibre-gl-enhance" src="../../dist/maplibregl/include-maplibregl.js"></script>
3333
<script type="text/javascript">
34-
var host = window.isLocal ? window.server : 'https://iserver.supermap.io';
35-
3634
// 方式一:1.调用 maplibregl.supermap.initMap,根据 SuperMap iServer 地图服务的地图信息,创建地图和底图
3735
maplibregl.supermap
38-
.initMap(host + '/iserver/services/map-mvt-landuse/rest/maps/landuse', {
36+
.initMap('https://iserver.supermap.io/iserver/services/map-mvt-landuse/rest/maps/landuse', {
3937
type: 'vector-tile',
4038
mapOptions: {
4139
zoom: 13
@@ -56,7 +54,7 @@
5654
// var WKT = 'PROJCS["Xian 1980 / 3-degree Gauss-Kruger zone 38",GEOGCS["Xian 1980",DATUM["Xian_1980",SPHEROID["IAG 1975",6378140,298.257,AUTHORITY["EPSG","7049"]],AUTHORITY["EPSG","6610"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4610"]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",114],PARAMETER["scale_factor",1],PARAMETER["false_easting",38500000],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]],AUTHORITY["EPSG","2362"]]'
5755
// var map = new maplibregl.Map({
5856
// container: 'map',
59-
// style: host+'/iserver/services/map-mvt-landuse/rest/maps/landuse/tileFeature/vectorstyles.json?type=MapBox_GL&styleonly=true&tileURLTemplate=ZXY',
57+
// style: 'https://iserver.supermap.io/iserver/services/map-mvt-landuse/rest/maps/landuse/tileFeature/vectorstyles.json?type=MapBox_GL&styleonly=true&tileURLTemplate=ZXY',
6058
// // maplibregl.CRS(name,wkt,extent);
6159
// // name:坐标系名称,必填
6260
// // wkt:坐标系的WKT或者Proj4表述,必填。

0 commit comments

Comments
 (0)