From 148ab9dc4e920033c327151c7af7f4697eca36b6 Mon Sep 17 00:00:00 2001 From: dbauszus-glx Date: Mon, 30 Oct 2023 10:30:32 +0000 Subject: [PATCH] Layer must be reloaded in draw callback. --- lib/layer/decorate.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/layer/decorate.mjs b/lib/layer/decorate.mjs index ed3fd168e..354fe8274 100644 --- a/lib/layer/decorate.mjs +++ b/lib/layer/decorate.mjs @@ -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) }