Better indentation for wms capabilities example
This commit is contained in:
@@ -35,7 +35,7 @@
|
|||||||
<title>wms capabilities example</title>
|
<title>wms capabilities example</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="log"></div>
|
<pre id="log"></pre>
|
||||||
<div id="map">
|
<div id="map">
|
||||||
<div id="text">
|
<div id="text">
|
||||||
<h1 id="title">WMS GetCapabilities parsing example</h1>
|
<h1 id="title">WMS GetCapabilities parsing example</h1>
|
||||||
|
|||||||
@@ -13,7 +13,8 @@ xhr.open('GET', url, true);
|
|||||||
xhr.onload = function() {
|
xhr.onload = function() {
|
||||||
if (xhr.status == 200) {
|
if (xhr.status == 200) {
|
||||||
result = parser.read(xhr.responseXML);
|
result = parser.read(xhr.responseXML);
|
||||||
document.getElementById('log').innerHTML = window.JSON.stringify(result);
|
document.getElementById('log').innerHTML =
|
||||||
|
window.JSON.stringify(result, undefined, 2);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
xhr.send();
|
xhr.send();
|
||||||
|
|||||||
Reference in New Issue
Block a user