From 5fd3ee783d4681379950446a7a436fd06116d2a8 Mon Sep 17 00:00:00 2001 From: Artemy Date: Mon, 12 Jun 2023 12:48:40 +0300 Subject: [PATCH] fix: displaying polygons after changing style --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 481a433..6bc8393 100644 --- a/src/index.js +++ b/src/index.js @@ -83,7 +83,7 @@ window.onload = async () => { let converter = new showdown.Converter(); - map.on("load", async () => { + map.on("style.load", async () => { map.loadImage( "https://cimengine.github.io/map/icons/city.png", (error, image) => {