Skip to content

Commit 16b1438

Browse files
committed
【fix】优化示例 API样式
1 parent 129c0a8 commit 16b1438

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

build/jsdocs/template/static/styles/jaguar.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ a:hover, a:active, a:focus{
223223
.main h4.name span.type-signature {
224224
display: inline-block;
225225
border-radius: 3px;
226-
background-color: gray;
227-
color: #fff;
226+
background-color: #c4bdbd;
227+
color: #605e5e;
228228
font-size: 0.7em;
229229
padding: 2px 4px;
230230
}
@@ -369,9 +369,9 @@ a:hover, a:active, a:focus{
369369
font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
370370
}
371371

372-
.main .nameContainer h4 .type-signature.type a {
372+
/* .main .nameContainer h4 .type-signature.type a {
373373
color: #fff;
374-
}
374+
} */
375375

376376
.main pre {
377377
font-size: 11px;

examples/leaflet/01_layerService.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
result.subLayers.layers.map(function (layer) {
3434
innerHTML += layer.name + "<br>";
3535
});
36-
infowin = L.popup({maxWidth: 400})
36+
infowin = L.popup({maxWidth: 400, closeOnClick:false})
3737
.setLatLng(map.getCenter())
3838
.setContent(innerHTML)
3939
.openOn(map);

examples/leaflet/01_mapQueryByDistance.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
});
2525
new L.supermap.TiledMapLayer(url).addTo(map);
2626
circleMarker = L.circleMarker([30, 104], {color: 'red'}).addTo(map);
27-
circleMarker.bindPopup('distance = 10').openPopup();
27+
circleMarker.bindPopup('distance = 10',{closeOnClick:false}).openPopup();
2828
query();
2929

3030
function query() {

examples/leaflet/01_mapService.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
innerHTML += resources.text_mapName+":" + JSON.stringify(result.name, null, 2) + "<br>";
3232
innerHTML += resources.text_center+":" + JSON.stringify(result.center, null, 2) + "<br>";
3333
innerHTML += "Bounds:" + JSON.stringify(result.bounds, null, 2) + "<br>";
34-
infoWin = L.popup({maxWidth: 400})
34+
infoWin = L.popup({maxWidth: 400, closeOnClick:false})
3535
.setLatLng(map.getCenter())
3636
.setContent(innerHTML)
3737
.openOn(map);

examples/leaflet/01_measure_area.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
.MeasureService(url)
3535
.measureArea(areaMeasureParam).then(function (serviceResult) {
3636
var content = resources.text_area + serviceResult.result.area + resources.msg_sqm;
37-
polygon.bindPopup(content).openPopup(polygon.getCenter());
37+
polygon.bindPopup(content, {closeOnClick:false}).openPopup(polygon.getCenter());
3838
});
3939
}
4040
</script>

examples/leaflet/02_datasetService.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ <h5 class='panel-title text-center' data-i18n="resources.title_DatasourceInfo"><
103103
innerHTML += "isFileCache:" + JSON.stringify(serviceResult.result.datasetInfo.isFileCache, null, 2) + "<br>";
104104
innerHTML += "name:" + JSON.stringify(serviceResult.result.datasetInfo.name, null, 2) + "<br>";
105105
innerHTML += "prjCoordSys:" + "(...)" + "<br>";
106-
infoWin = L.popup({maxWidth: 420})
106+
infoWin = L.popup({maxWidth: 420, closeOnClick:false})
107107
.setLatLng(map.getCenter())
108108
.setContent(innerHTML)
109109
.openOn(map);

examples/leaflet/02_datasourceService.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ <h5 class='panel-title text-center' data-i18n="resources.title_DatasourceInfo"><
8787
innerHTML += "engineType:" + JSON.stringify(serviceResult.result.datasourceInfo.engineType, null, 2) + "<br>";
8888
innerHTML += "name:" + JSON.stringify(serviceResult.result.datasourceInfo.name, null, 2) + "<br>";
8989
innerHTML += "prjCoordSys:" + "(...)" + "<br>";
90-
infoWin = L.popup({maxWidth: 420})
90+
infoWin = L.popup({maxWidth: 420, closeOnClick:false})
9191
.setLatLng(map.getCenter())
9292
.setContent(innerHTML)
9393
.openOn(map);

examples/leaflet/02_fieldsService.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
});
3434
new L.supermap.FieldService(url).getFields(param).then(function (serviceResult) {
3535
var innerHTML = serviceResult.result.fieldNames.join(', ');
36-
infoWin = L.popup({maxWidth: 420})
36+
infoWin = L.popup({maxWidth: 420, closeOnClick:false})
3737
.setLatLng(map.getCenter())
3838
.setContent(innerHTML)
3939
.openOn(map);
198 Bytes
Loading

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