Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
terrain: fixed introspection browser
Browse files Browse the repository at this point in the history
  • Loading branch information
vaclavblazek committed Mar 14, 2019
1 parent 5a57dbd commit e096540
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions mapproxy/src/mapproxy/cesium/cesium.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<head>
<meta charset="utf-8">

<script src="https://cesiumjs.org/releases/1.51/Build/Cesium/Cesium.js"></script>
<script src="https://cesiumjs.org/releases/1.55/Build/Cesium/Cesium.js"></script>
<style>
@import url(https://cesiumjs.org/releases/1.51/Build/Cesium/Widgets/widgets.css);
@import url(https://cesiumjs.org/releases/1.55/Build/Cesium/Widgets/widgets.css);
html, body, #cesiumContainer {
width: 100%; height: 100%; margin: 0; padding: 0; overflow: hidden;
}
Expand Down
14 changes: 8 additions & 6 deletions mapproxy/src/mapproxy/cesium/cesium.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,13 @@ function credit2html(credit) {
}

var beginA = function(url) {
return '<a href="' + escapedString(url) + '">';
out += '<a href="';
escapedString(url);
out += '">';
}

var endA = function() {
return '</a>';
out += '</a>';
}

var parseTo = function(end) {
Expand Down Expand Up @@ -120,13 +122,13 @@ function credit2html(credit) {
}
}

out += beginA(url);
beginA(url);
escapedString(text.length ? text : url);
out += endA();
endA();
}

var hasUrl = (typeof credit.url !== "undefined");
if (hasUrl) { out += beginA(credit.url); }
if (hasUrl) { beginA(credit.url); }

for (i = 0; i < notice.length; ++i) {
var c = credit.notice[i];
Expand All @@ -138,7 +140,7 @@ function credit2html(credit) {
}
}

if (hasUrl) { out += endA(); }
if (hasUrl) { endA(); }

return out;
}
Expand Down

0 comments on commit e096540

Please sign in to comment.