Skip to content

Commit cc6fd01

Browse files
committed
【fix】修复新增例子标识在firefox里显示不了的问题 优化例子 修复webmap处理单值专题图的逻辑
1 parent 76633d4 commit cc6fd01

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

examples/js/example.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,13 @@ function createGalleryChart(example) {
114114
var chart = $("<div class='chart'></div>");
115115
var link = $("<a class='chart-link' target='_blank' href='" + target + "#" + href + "'></a>");
116116
var chartTitle = $("<h5 class='chart-title'>" + title + "</h5>");
117-
var newTip = $('<svg class="new-example" style="float: right;width:8px !important;height:8px;"><circle cx="4" cy="4" r="4" fill="#C70022"></circle></svg>');
117+
var newTip = $('<svg xmlns="http://www.w3.org/2000/svg" class="new-example" style="width:8px !important;height:8px;right: 1px;top: 1px;position: absolute;"><circle cx="4" cy="4" r="4" fill="#C70022"></circle></svg>');
118118
var thumb = $("<img class='chart-thumb' src='" + defaultThumb + "' data-original='" + thumbnail + "' style='display: inline'>");
119+
120+
chartTitle.appendTo(link);
119121
if (window.version === version) {
120-
newTip.appendTo(chartTitle);
122+
newTip.appendTo(link);
121123
}
122-
chartTitle.appendTo(link);
123124
thumb.appendTo(link);
124125
link.appendTo(chart);
125126
chart.appendTo(chartDiv);

examples/leaflet/addressMatchService.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
var control = L.control({position: 'topright'});
2828
control.onAdd = function () {
2929
var popup = L.DomUtil.create('div');
30-
popup.style.width = '20%';
30+
popup.style.width = '350px';
3131
popup.innerHTML = "<div class='panel panel-default'>" +
3232
"<div class='panel-body'>" +
3333
"<ul class='nav nav-tabs nav-justified'>" +

src/leaflet/mapping/WebMap.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,8 @@ export var WebMap = L.LayerGroup.extend({
645645
unique.style = layerInfo.style.pointStyle;
646646
if (vectorType === "LINE") {
647647
unique.style.fill = false;
648+
}else{
649+
unique.style.fill = true;
648650
}
649651
unique.style.stroke = true;
650652
unique.themeField = themeField;

src/openlayers/mapping/WebMap.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,8 @@ export class WebMap extends ol.Observable {
621621
unique.style = layerInfo.style.pointStyle;
622622
if (vectorType === "LINE") {
623623
unique.style.fill = false;
624+
} else {
625+
unique.style.fill = true;
624626
}
625627
unique.style.stroke = true;
626628
unique.themeField = themeField;

0 commit comments

Comments
 (0)