forked from FOSS/BangleApps
sizing
parent
79b55c50a7
commit
7cdc55a513
|
@ -24,8 +24,8 @@
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
}
|
}
|
||||||
#maptiles {
|
#maptiles {
|
||||||
width: 512px;
|
width: 896px;
|
||||||
height: 512px;
|
height: 896px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
@ -135,7 +135,7 @@ TODO:
|
||||||
if (!imgstr.startsWith(compress)) throw "Data in wrong format";
|
if (!imgstr.startsWith(compress)) throw "Data in wrong format";
|
||||||
imgstr = imgstr.slice(compress.length,-1);*/
|
imgstr = imgstr.slice(compress.length,-1);*/
|
||||||
tiles.push({
|
tiles.push({
|
||||||
name:"openstmap-"+x+"-"+y+".img",
|
name:"openseamap-"+x+"-"+y+".img",
|
||||||
content:imgstr,
|
content:imgstr,
|
||||||
evaluate:true
|
evaluate:true
|
||||||
});
|
});
|
||||||
|
@ -186,8 +186,8 @@ TODO:
|
||||||
var canvas = document.getElementById("maptiles");
|
var canvas = document.getElementById("maptiles");
|
||||||
canvas.style.display="";
|
canvas.style.display="";
|
||||||
var ctx = canvas.getContext('2d');
|
var ctx = canvas.getContext('2d');
|
||||||
canvas.width = 912;//OSMTILESIZE*2;
|
canvas.width = 896;//OSMTILESIZE*2;
|
||||||
canvas.height = 912;//OSMTILESIZE*2;
|
canvas.height = 896;//OSMTILESIZE*2;
|
||||||
for (var i = 0; i < 1; i++) {
|
for (var i = 0; i < 1; i++) {
|
||||||
for (var j = 0; j < 1; j++) {
|
for (var j = 0; j < 1; j++) {
|
||||||
(function(i,j){
|
(function(i,j){
|
||||||
|
|
Loading…
Reference in New Issue