Skip to content

Commit

Permalink
fix(tileEngine): don't error for object layers (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-lima authored and straker committed Dec 10, 2019
1 parent 0c6b459 commit 5d073b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tileEngine.js
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ export default function TileEngine(properties = {}) {
context.save();
context.globalAlpha = layer.opacity;

layer.data.map((tile, index) => {
(layer.data || []).map((tile, index) => {

// skip empty tiles (0)
if (!tile) return;
Expand Down

0 comments on commit 5d073b0

Please sign in to comment.