Encode layer name in tile factory, remove get_elem()

This commit is contained in:
Ian Gulliver
2021-05-11 03:23:28 +00:00
parent ea167e42a1
commit b027777a08
29 changed files with 204 additions and 217 deletions

View File

@@ -25,7 +25,7 @@ export class Layer {
}
add_tile(tile_factory) {
const tile = tile_factory.build(__classPrivateFieldGet(this, _tileset));
tile.get_elem().style.zIndex = `${__classPrivateFieldGet(this, _level)}`;
tile.elem.style.zIndex = `${__classPrivateFieldGet(this, _level)}`;
return tile;
}
}