Use CSS rule to separate attributions

This commit is contained in:
Tom Payne
2012-09-28 14:57:54 +02:00
parent ed67bdc489
commit 7bcb5886ad
2 changed files with 4 additions and 1 deletions

View File

@@ -22,6 +22,9 @@
.ol-attribution li {
display: inline;
}
.ol-attribution li:not(:last-child):after {
content: " ";
}
.ol-dragbox {
position: absolute;
border: 2px solid red;

View File

@@ -138,7 +138,7 @@ ol.control.Attribution.prototype.createAttributionElementsForLayer_ =
var attributionKey = goog.getUid(attribution);
var attributionElement = goog.dom.createElement(goog.dom.TagName.LI);
attributionElement.innerHTML = attribution.getHtml() + ' ';
attributionElement.innerHTML = attribution.getHtml();
if (!map.isDef ||
!layerVisible ||