Skip to content

Commit

Permalink
Merge pull request #986 from dbauszus-glx/layer-draw-reload
Browse files Browse the repository at this point in the history
Layer must be reloaded in draw callback.
  • Loading branch information
RobAndrewHurst authored Oct 30, 2023
2 parents 301862d + 148ab9d commit b960ccf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/layer/decorate.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ export default async layer => {
layer.draw?.defaults || {}))
})

// Layer must be reloaded to reflect geometry changes.
layer.reload()

// Get the newly created location.
mapp.location.get(location)
}
Expand Down

0 comments on commit b960ccf

Please sign in to comment.