Update custom.html

pull/1581/head
berkenbu 2022-02-16 21:48:25 -05:00 committed by GitHub
parent 121eae22e0
commit 21788784d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 10 deletions

View File

@ -24,8 +24,8 @@
z-index: 100;
}
#maptiles {
width: 256px;
height: 256px;
width: 512px;
height: 512px;
}
</style>
</head>
@ -191,22 +191,14 @@ TODO:
for (var i = 0; i < 1; i++) {
for (var j = 0; j < 1; j++) {
(function(i,j){
var coords = new L.Point(center.x+i-1, center.y+j-1);
coords.z = zoom;
var img = new Image();
img.crossOrigin = "Anonymous";
tileGetters.push(new Promise(function(resolve,reject) {
img.onload = function(){
ctx.drawImage(img, 0, 0);//i*OSMTILESIZE - ox, j*OSMTILESIZE - oy);
/*if (testPt) {
ctx.fillStyle="green";
ctx.fillRect(testPt.x-1, testPt.y-5, 3,10);
ctx.fillRect(testPt.x-5, testPt.y-1, 10,3);
}*/
resolve();
};
}));
bangleTileLayer._tileZoom = previewTileLayer._tileZoom;
img.src = 'http://sandshore.duckdns.org:2552/boca_ciega_cr.png';
})(i,j);
}