File tree Expand file tree Collapse file tree 7 files changed +6
-9
lines changed Expand file tree Collapse file tree 7 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 2020 </ div >
2121 < script type ="text/javascript ">
2222 new ol . supermap . WebMap ( 659947449 , {
23+ server : 'https://www.supermapol.com' ,
2324 successCallback : function ( map ) {
2425 var popup = new ol . Overlay ( {
2526 element : document . getElementById ( 'popup' )
Original file line number Diff line number Diff line change @@ -269,6 +269,7 @@ <h4 class="panel-title">
269269 var host = window . isLocal ? window . server : "https://iserver.supermap.io" ;
270270 var webMap = new ol . supermap . WebMap ( 1887887232 , {
271271 target : 'map' ,
272+ server : 'https://www.supermapol.com' ,
272273 successCallback : function ( map ) {
273274 $ ( '#center' ) . val ( map . getView ( ) . getCenter ( ) . join ( ',' ) ) ;
274275 var res = map . getView ( ) . getResolution ( ) ;
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ export class WebMap extends mapboxgl.Evented {
9595 super ( ) ;
9696 this . mapId = id ;
9797 options = options || { } ;
98- this . server = options . server || 'https://www.supermapol.com' ;
98+ this . server = options . server ;
9999 this . credentialKey = options . credentialKey ;
100100 this . credentialValue = options . credentialValue ;
101101 this . withCredentials = options . withCredentials || false ;
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export class BaiduMap extends TileImage {
2323 var options = opt_options || { } ;
2424 var attributions =
2525 options . attributions ||
26- "Map Data © 2018 Baidu - GS(2016)2089号 - Data © 长地万方 with <span>© <a href='https://iclient.supermap.io' target='_blank'> SuperMap iClient</a> </span>" ;
26+ "Map Data © 2018 Baidu - GS(2016)2089号 - Data © 长地万方 with <span>© SuperMap iClient</span>" ;
2727 var tileGrid = BaiduMap . defaultTileGrid ( ) ;
2828 var crossOrigin = options . crossOrigin !== undefined ? options . crossOrigin : 'anonymous' ;
2929
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export class SuperMapCloud extends XYZ {
2020 constructor ( opt_options ) {
2121 var options = opt_options || { } ;
2222
23- var attributions = options . attributions || "Map Data ©2014 SuperMap - GS(2014)6070号-data©Navinfo with <span>© <a href='https://iclient.supermap.io' target='_blank'> SuperMap iClient</a> </span>"
23+ var attributions = options . attributions || "Map Data ©2014 SuperMap - GS(2014)6070号-data©Navinfo with <span>© SuperMap iClient</span>"
2424 var mapName = options . mapName || 'quanguo' ;
2525 var mapType = options . mapType || 'web' ;
2626 var url = options . url || 'http://t2.dituhui.com/FileService/image?map={mapName}&type={type}&x={x}&y={y}&z={z}' ;
Original file line number Diff line number Diff line change @@ -38,9 +38,7 @@ export class Tianditu extends WMTS {
3838 "img" : 18
3939 }
4040 var options = opt_options || { } ;
41- var attributions = options . attributions || "Map Data <a href='http://www.tianditu.gov.cn' target='_blank'><img style='background-color:transparent;bottom:2px;opacity:1;' " +
42- "src='http://api.tianditu.gov.cn/img/map/logo.png' width='53px' height='22px' opacity='0'></a> with " +
43- "<span>© <a href='https://iclient.supermap.io' target='_blank'>SuperMap iClient</a></span>"
41+ var attributions = options . attributions || "Map Data with <span>© SuperMap iClient</span>"
4442 options . layerType = options . layerType || "vec" ;
4543 options . layerType = options . isLabel ? layerLabelMap [ options . layerType ] : options . layerType ;
4644 options . matrixSet = ( options . projection === 'EPSG:4326' || options . projection === 'EPSG:4490' ) ? "c" : "w" ;
Original file line number Diff line number Diff line change @@ -135,9 +135,6 @@ export class WebMap extends Observable {
135135 // webmap有可能是url地址,有可能是webmap对象
136136 Util . isString ( this . webMap ) ? this . createWebmap ( this . webMap ) : this . getMapInfoSuccess ( options . webMap ) ;
137137 } else {
138- if ( ! this . server ) {
139- this . server = 'https://www.supermapol.com' ;
140- }
141138 this . createWebmap ( ) ;
142139 }
143140 }
You can’t perform that action at this time.
0 commit comments