Support for raster mbtiles (issue #13)

This commit is contained in:
Petr Sloup
2016-04-21 18:23:13 +02:00
parent d486a8595b
commit c0fb4fd400
7 changed files with 55 additions and 44 deletions
+7 -2
View File
@@ -43,8 +43,13 @@
<div class="item">
<div class="sample-img"></div>
<h3>{{name}}</h3>
<p>Id: {{@key}} | <a href="/vector/{{@key}}.json">TileJSON</a></p>
<a class="btn" href="/vector/{{@key}}/{{viewer_hash}}">X-Ray viewer</a>
<p>Id: {{@key}} | <a href="/data/{{@key}}.json">TileJSON</a></p>
{{#is_vector}}
<a class="btn" href="/data/{{@key}}/{{viewer_hash}}">X-Ray viewer</a>
{{/is_vector}}
{{^is_vector}}
Raster tiles
{{/is_vector}}
</div>
{{/each}}
</div>
+1 -1
View File
@@ -84,7 +84,7 @@
}
};
xhttp.responseType = 'json';
xhttp.open('GET', '/vector/{{id}}.json', true);
xhttp.open('GET', '/data/{{id}}.json', true);
xhttp.send();
var propertyList = document.getElementById('propertyList');