Вывод имени, если нет номера

This commit is contained in:
zakhy 2025-01-15 09:53:16 +07:00
parent bf6afc7430
commit 37fdd6a5ec

View File

@ -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) {