Skip to content

Commit 0faf025

Browse files
committed
【fix】examples样式
1 parent d111e76 commit 0faf025

16 files changed

+17
-17
lines changed

dist/leaflet/include-leaflet.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
var excludes = (targetScript.getAttribute('exclude') || '').split(',');
5555
// 在线
5656
if (!inArray(excludes, 'leaflet')) {
57-
inputCSS('https://cdn.bootcss.com/leaflet/1.7.1/leaflet.css');
58-
inputScript('https://cdn.bootcss.com/leaflet/1.7.1/leaflet.js');
57+
inputCSS('https://cdn.jsdelivr.net/npm/leaflet@1.7.1/dist/leaflet.css');
58+
inputScript('https://cdn.jsdelivr.net/npm/leaflet@1.7.1/dist/leaflet.js');
5959
}
6060
if (inArray(includes, 'leaflet.heat')) {
6161
inputScript('https://cdn.bootcss.com/leaflet.heat/0.2.0/leaflet-heat.js');

examples/openlayers/cartoCSS_boundryStyle.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<script type="text/javascript" src="../../dist/ol/include-ol.js"></script>
1111
</head>
1212
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%; position: absolute;top: 0;">
13-
<div id="map" style="margin:0 auto;width: 100%;height: 100%;border: 1px solid #dddddd"></div>
13+
<div id="map" style="margin:0 auto;width: 100%;height: 100%;"></div>
1414
<script type="text" id="cartoCssStr">
1515
/*此处定义不同的颜色变量,在后面可以重复用这些颜色值*/
1616

examples/openlayers/cartoCSS_darkBlue.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<script type="text/javascript" src="../../dist/ol/include-ol.js"></script>
1111
</head>
1212
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%; position: absolute;top: 0;">
13-
<div id="map" style="margin:0 auto;width: 100%;height: 100%;border: 1px solid #dddddd"></div>
13+
<div id="map" style="margin:0 auto;width: 100%;height: 100%;"></div>
1414
<script type="text" id="cartoCssStr">
1515
/*此处定义不同的颜色变量,在后面可以重复用这些颜色值*/
1616

examples/openlayers/cartoCSS_helloKitty.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<script type="text/javascript" src="../../dist/ol/include-ol.js"></script>
1111
</head>
1212
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%; position: absolute;top: 0;">
13-
<div id="map" style="margin:0 auto;width: 100%;height: 100%;border: 1px solid #dddddd"></div>
13+
<div id="map" style="margin:0 auto;width: 100%;height: 100%;"></div>
1414
<script type="text" id="cartoCssStr">
1515
/*此处定义不同的颜色变量,在后面可以重复用这些颜色值*/
1616

examples/openlayers/cartoCSS_nightStyle.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<script type="text/javascript" src="../../dist/ol/include-ol.js"></script>
1111
</head>
1212
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%; position: absolute;top: 0;">
13-
<div id="map" style="margin:0 auto;width: 100%;height: 100%;border: 1px solid #dddddd"></div>
13+
<div id="map" style="margin:0 auto;width: 100%;height: 100%;"></div>
1414
<script type="text" id="cartoCssStr">
1515
/*此处定义不同的颜色变量,在后面可以重复用这些颜色值*/
1616

examples/openlayers/controler_attribution.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<script type="text/javascript" src="../../dist/ol/include-ol.js"></script>
1111
</head>
1212
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%; position: absolute;top: 0;">
13-
<div id="map" style="margin:0 auto;width: 100%;height: 100%;border: 1px solid #dddddd"></div>
13+
<div id="map" style="margin:0 auto;width: 100%;height: 100%;"></div>
1414
<script>
1515
var map,
1616
url = (window.isLocal ? window.server : "https://iserver.supermap.io") + "/iserver/services/map-world/rest/maps/World";

examples/openlayers/echartsLineMarker.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</head>
1111

1212
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%; position: absolute;top: 0;">
13-
<div id="map" class='map' style="margin:0 auto;width: 100%;height: 100%;border: 1px solid #dddddd">
13+
<div id="map" class='map' style="margin:0 auto;width: 100%;height: 100%;">
1414
</div>
1515
<div id="infoControl" style=" position: absolute;top: 10px;right: 70px;text-align: left;background: white;color: #333;box-shadow: 0 3px 14px rgba(0,0,0,0.4);"></div>
1616
<script type="text/javascript" src="../js/include-web.js"></script>

examples/openlayers/echartsPie.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</head>
1313

1414
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%; position: absolute;top: 0;">
15-
<div id="map" class='map' style="margin:0 auto;width: 100%;height: 100%;border: 1px solid #dddddd"></div>
15+
<div id="map" class='map' style="margin:0 auto;width: 100%;height: 100%;"></div>
1616
<div id="popup"></div>
1717
<script type="text/javascript">
1818
var host = window.isLocal ? window.server : "https://iserver.supermap.io";

examples/openlayers/echartsScatter.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</head>
1313

1414
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%; position: absolute;top: 0;">
15-
<div id="map" class='map' style="margin:0 auto;width: 100%;height: 100%;border: 1px solid #dddddd"></div>
15+
<div id="map" class='map' style="margin:0 auto;width: 100%;height: 100%;"></div>
1616
<div id="infoControl" style=" position: absolute;top: 10px;right: 5px;text-align: left;"></div>
1717
<script type="text/javascript">
1818
var host = window.isLocal ? window.server : "https://iserver.supermap.io";

examples/openlayers/mvtVectorLayer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<script type="text/javascript" src="../../dist/ol/include-ol.js"></script>
1111
</head>
1212
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%; position: absolute;top: 0;">
13-
<div id="map" style="margin:0 auto;width: 100%;height: 100%;border: 1px solid #dddddd"></div>
13+
<div id="map" style="margin:0 auto;width: 100%;height: 100%;"></div>
1414
<script type="text/javascript">
1515
var url = (window.isLocal ? window.server : "https://iserver.supermap.io")+"/iserver/services/map-china400/rest/maps/China";
1616
new ol.supermap.MapService(url).getMapInfo(function (serviceResult) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy