From 37fdd6a5ecb18cfef72309faeecebd2010923ef7 Mon Sep 17 00:00:00 2001 From: zakhy <=> Date: Wed, 15 Jan 2025 09:53:16 +0700 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=8B=D0=B2=D0=BE=D0=B4=20=D0=B8=D0=BC?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8,=20=D0=B5=D1=81=D0=BB=D0=B8=20=D0=BD=D0=B5?= =?UTF-8?q?=D1=82=20=D0=BD=D0=BE=D0=BC=D0=B5=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/main/templates/main_index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/main/templates/main_index.html b/apps/main/templates/main_index.html index 0680632..17678f0 100644 --- a/apps/main/templates/main_index.html +++ b/apps/main/templates/main_index.html @@ -72,7 +72,12 @@ let centerLon = '{{lat}}' const getGTOMarkerText = function (feature) { - return feature.get('statenum'); + const statemum = feature.get('statenum') + console.log(statemum) + if (statemum) { + return statemum; + } + return feature.get('name') }; const createGTOStateNumTextStyle = function (feature, resolution) {