Skip to content

Commit 09cd410

Browse files
committed
fix(StopLayer): fix tile creation
1 parent e8d3c58 commit 09cd410

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/scenario-editor/components/StopLayer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@ export default class StopLayer extends GridLayer {
2121
console.log('creating GridLayer', gl)
2222
return gl
2323
}
24-
createTile = (coords, done) => {
24+
createTile = (coords) => {
2525
const {map} = this.context
2626
const {minZoom, stops} = this.props
2727
if (coords.z < minZoom) return // don't draw every transit stop in a country
2828

2929
// create a <canvas> element for drawing
3030
const tile = document.createElement('canvas')
31+
tile.width = tile.height = TILE_LENGTH
3132
this.drawTile(tile, coords, map, stops)
3233
return tile
3334
}

0 commit comments

Comments
 (0)