We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8d3c58 commit 09cd410Copy full SHA for 09cd410
lib/scenario-editor/components/StopLayer.js
@@ -21,13 +21,14 @@ export default class StopLayer extends GridLayer {
21
console.log('creating GridLayer', gl)
22
return gl
23
}
24
- createTile = (coords, done) => {
+ createTile = (coords) => {
25
const {map} = this.context
26
const {minZoom, stops} = this.props
27
if (coords.z < minZoom) return // don't draw every transit stop in a country
28
29
// create a <canvas> element for drawing
30
const tile = document.createElement('canvas')
31
+ tile.width = tile.height = TILE_LENGTH
32
this.drawTile(tile, coords, map, stops)
33
return tile
34
0 commit comments