Use CSS rule to separate attributions
This commit is contained in:
@@ -22,6 +22,9 @@
|
|||||||
.ol-attribution li {
|
.ol-attribution li {
|
||||||
display: inline;
|
display: inline;
|
||||||
}
|
}
|
||||||
|
.ol-attribution li:not(:last-child):after {
|
||||||
|
content: " ";
|
||||||
|
}
|
||||||
.ol-dragbox {
|
.ol-dragbox {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
border: 2px solid red;
|
border: 2px solid red;
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ ol.control.Attribution.prototype.createAttributionElementsForLayer_ =
|
|||||||
var attributionKey = goog.getUid(attribution);
|
var attributionKey = goog.getUid(attribution);
|
||||||
|
|
||||||
var attributionElement = goog.dom.createElement(goog.dom.TagName.LI);
|
var attributionElement = goog.dom.createElement(goog.dom.TagName.LI);
|
||||||
attributionElement.innerHTML = attribution.getHtml() + ' ';
|
attributionElement.innerHTML = attribution.getHtml();
|
||||||
|
|
||||||
if (!map.isDef ||
|
if (!map.isDef ||
|
||||||
!layerVisible ||
|
!layerVisible ||
|
||||||
|
|||||||
Reference in New Issue
Block a user