summaryrefslogtreecommitdiff
path: root/src/leaflet-soton.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/leaflet-soton.js')
-rw-r--r--src/leaflet-soton.js25
1 files changed, 12 insertions, 13 deletions
diff --git a/src/leaflet-soton.js b/src/leaflet-soton.js
index 6116704..238a921 100644
--- a/src/leaflet-soton.js
+++ b/src/leaflet-soton.js
@@ -1638,23 +1638,22 @@ SELECT * WHERE {\
}
if ('name' in properties) {
- var span = document.createElement( "span" );
- span.classList.add("ls-popup-title-name");
- span.textContent = properties.name;
- title.appendChild( span );
- }
+ if ('uri' in properties) {
+ var link = document.createElement('a');
+ link.setAttribute('href', properties.uri);
+ link.className = 'ls-popup-title-name';
- if ('uri' in properties) {
- var link = document.createElement('a');
- link.setAttribute('href', properties.uri);
- link.setAttribute('target', '_blank');
- link.className = 'ls-popup-uri';
- link.textContent = "(Full Information)";
+ link.textContent = properties.name;
- documentFragment.appendChild(link);
+ title.appendChild(link);
+ } else {
+ var span = document.createElement( "span" );
+ span.classList.add("ls-popup-title-name");
+ span.textContent = properties.name;
+ title.appendChild( span );
+ }
}
-
var div_inner = document.createElement("div");
div_inner.classList.add("ls-popup-content");
contentFunction(div_inner);