You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dist/iclient9-openlayers.js
+16-27Lines changed: 16 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -6270,7 +6270,9 @@ var ThemeFeature = __webpack_require__(31);
6270
6270
ol.source.Theme = function (name, opt_options) {
6271
6271
var options = opt_options ? opt_options : {};
6272
6272
ol.source.ImageCanvas.call(this, {
6273
-
attributions: options.attributions,
6273
+
attributions: options.attributions|| new ol.Attribution({
6274
+
html: 'Map Data <a href="http://support.supermap.com.cn/product/iServer.aspx">SuperMap iServer</a> with <a href="http://icltest.supermapol.com/">SuperMap iClient</a>'
var url = options.url || 'http://t2.supermapcloud.com/FileService/image?map={mapName}&type={type}&x={x}&y={y}&z={z}';
@@ -10630,7 +10622,7 @@ var ol = __webpack_require__(2);
10630
10622
ol.source.Tianditu = function (opt_options) {
10631
10623
var options = opt_options || {};
10632
10624
var attributions = options.attributions || new ol.Attribution({
10633
-
html: ' with <a href="http://icltest.supermapol.com/">SuperMap iClient</a>'
10625
+
html: 'Map Data <a href="http://www.tianditu.com"><img style="background-color:transparent;bottom:2px;opacity:1;" src="http://api.tianditu.com/img/map/logo.png" width="53px" height="22px" opacity="0"></a> with <a href="http://icltest.supermapol.com/">SuperMap iClient</a>'
10634
10626
});
10635
10627
10636
10628
if (!options.url && !options.urls) {
@@ -10711,12 +10703,10 @@ ol.supermap.TileSuperMapRest = function (options) {
10711
10703
if (options.url === undefined) {
10712
10704
return;
10713
10705
}
10714
-
if (!options.attributions) {
10715
-
options.attributions = [
10706
+
options.attributions =options.attributions||
10716
10707
new ol.Attribution({
10717
-
html: ' with <a href="http://icltest.supermapol.com/">SuperMap iClient</a>'
10718
-
})]
10719
-
}
10708
+
html: 'Map Data <a href="http://support.supermap.com.cn/product/iServer.aspx">SuperMap iServer</a> with <a href="http://icltest.supermapol.com/">SuperMap iClient</a>'
10709
+
})
10720
10710
10721
10711
var layerUrl = options.url + "/image.png?redirect=false";
@@ -11325,12 +11315,10 @@ ol.supermap.VectorTileSuperMapRest = function (options) {
11325
11315
return;
11326
11316
}
11327
11317
options.crossOrigin = 'anonymous';
11328
-
if (!options.attributions) {
11329
-
options.attributions = [
11318
+
options.attributions = options.attributions||
11330
11319
new ol.Attribution({
11331
-
html: ' with <a href="http://icltest.supermapol.com/">SuperMap iClient</a>'
11332
-
})]
11333
-
}
11320
+
html: 'Tile Data <a href="http://support.supermap.com.cn/product/iServer.aspx">SuperMap iServer</a> with <a href="http://icltest.supermapol.com/">SuperMap iClient</a>'
11321
+
})
11334
11322
var layerUrl = options.url + '/tileFeature.json?';
11335
11323
if (options.format instanceof ol.format.MVT) {
11336
11324
layerUrl = options.url + '/tileFeature.mvt?';
@@ -11582,7 +11570,8 @@ var MapvLayer = __webpack_require__(82);
11582
11570
ol.source.Mapv = function (opt_options) {
11583
11571
var options = opt_options ? opt_options : {};
11584
11572
ol.source.ImageCanvas.call(this, {
11585
-
attributions: options.attributions,
11573
+
attributions: options.attributions|| new ol.Attribution({
Copy file name to clipboardExpand all lines: examples/leaflet/WMSLayer.html
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,8 @@
21
21
layers: 'China',
22
22
format: 'image/png',
23
23
transparent: true,
24
-
noWrap: true
24
+
noWrap: true,
25
+
attribution: 'Map Data <a href="http://support.supermap.com.cn/product/iServer.aspx">SuperMap iServer</a> with <a href="http://icltest.supermapol.com/">SuperMap iClient</a>'
Copy file name to clipboardExpand all lines: examples/leaflet/WMTSLayer.html
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,7 @@
33
33
style: "default",
34
34
tilematrixSet: "Custom_China",
35
35
format: "image/png",
36
+
attribution: 'Map Data <a href="http://support.supermap.com.cn/product/iServer.aspx">SuperMap iServer</a> with <a href="http://icltest.supermapol.com/">SuperMap iClient</a>'
Copy file name to clipboardExpand all lines: examples/leaflet/vectorTileLayerBoundary.html
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -101,7 +101,8 @@
101
101
layer=L.supermap.tiledVectorLayer(url,{
102
102
cacheEnabled: true,
103
103
cartoCSS: cartoCSS,
104
-
serverCartoCSSStyle: false
104
+
serverCartoCSSStyle: false,
105
+
attribution: 'Tile Data <a href="http://support.supermap.com.cn/product/iServer.aspx">SuperMap iServer</a> with <a href="http://icltest.supermapol.com/">SuperMap iClient</a>'
Copy file name to clipboardExpand all lines: examples/leaflet/vectorTileLayerDarkBlue.html
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,8 @@
100
100
layer=L.supermap.tiledVectorLayer(url,{
101
101
cacheEnabled: true,
102
102
cartoCSS: cartoCSS,
103
-
serverCartoCSSStyle: false
103
+
serverCartoCSSStyle: false,
104
+
attribution: 'Tile Data <a href="http://support.supermap.com.cn/product/iServer.aspx">SuperMap iServer</a> with <a href="http://icltest.supermapol.com/">SuperMap iClient</a>'
Copy file name to clipboardExpand all lines: examples/leaflet/vectorTileLayerHelloKitty.html
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -120,6 +120,7 @@
120
120
layer=L.supermap.tiledVectorLayer(url,{
121
121
cacheEnabled: true,
122
122
cartoCSS: cartoCSS,
123
+
attribution: 'Tile Data <a href="http://support.supermap.com.cn/product/iServer.aspx">SuperMap iServer</a> with <a href="http://icltest.supermapol.com/">SuperMap iClient</a>',
Copy file name to clipboardExpand all lines: examples/leaflet/vectorTileLayerMVT.html
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,8 @@
24
24
tileSize:512,
25
25
format: L.supermap.VectorTileFormat.MVT,
26
26
cacheEnabled: true,
27
-
returnAttributes: true
27
+
returnAttributes: true,
28
+
attribution: 'Tile Data <a href="http://support.supermap.com.cn/product/iServer.aspx">SuperMap iServer</a> with <a href="http://icltest.supermapol.com/">SuperMap iClient</a>'
Copy file name to clipboardExpand all lines: examples/leaflet/vectorTileLayerMVT_4326.html
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,8 @@
24
24
tileSize: 512,
25
25
format: L.supermap.VectorTileFormat.MVT,
26
26
cacheEnabled: true,
27
-
returnAttributes: true
27
+
returnAttributes: true,
28
+
attribution: 'Tile Data <a href="http://support.supermap.com.cn/product/iServer.aspx">SuperMap iServer</a> with <a href="http://icltest.supermapol.com/">SuperMap iClient</a>'
0 commit comments