Skip to content

Commit

Permalink
New version 1.0.48
Browse files Browse the repository at this point in the history
  • Loading branch information
xdan committed Mar 19, 2024
1 parent 75bfc9a commit ce0f8a0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
12 changes: 7 additions & 5 deletions example/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,13 @@ const dataSource = {
type: layerId,
fetchTile: (x, y, z) => {
const canvas = document.createElement('canvas');
canvas.width = TILE_SIZE;
canvas.height = TILE_SIZE;
canvas.width = TILE_SIZE * window.devicePixelRatio;
canvas.height = TILE_SIZE * window.devicePixelRatio;
const ctx = canvas.getContext('2d');
ctx.strokeStyle = '#010101';
ctx.strokeRect(0, 0, TILE_SIZE, TILE_SIZE);
ctx.fillText(`${x}-${y}-${z}`, 10, 15);
ctx.font = '26px sans-serif';
ctx.strokeRect(0, 0, TILE_SIZE * window.devicePixelRatio, TILE_SIZE * window.devicePixelRatio);
ctx.fillText(`${x}-${y}-${z}`, 10, 30);
return Promise.resolve({image: canvas});
}
};
Expand All @@ -161,7 +162,8 @@ function showBounds(bounds) {
coordinates: [[bounds[0], [bounds[0][0], bounds[1][1]], bounds[1], [bounds[1][0], bounds[0][1]]]]
},
style: {
fill: 'rgba(56, 56, 219, 0.5)',
fill: '#EEFD7D',
fillOpacity: 0.5,
stroke: [{color: '#e07e7e', width: 2}]
}
});
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mappable-test-server",
"version": "1.0.47",
"version": "1.0.48",
"private": "true",
"description": "Test server for demonstrating work with the tile and bbox data loading API for the Mappable API",
"scripts": {
Expand Down

0 comments on commit ce0f8a0

Please sign in to comment.