From 5b30a6bf0fd3f4500742105775d0df1a9a18b516 Mon Sep 17 00:00:00 2001 From: David Levinsky Date: Mon, 17 Dec 2018 14:41:12 +0100 Subject: [PATCH 1/2] fixed label stick --- src/core/map/geodata-processor/worker-style.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/map/geodata-processor/worker-style.js b/src/core/map/geodata-processor/worker-style.js index 2f1a132d..e4a6693d 100755 --- a/src/core/map/geodata-processor/worker-style.js +++ b/src/core/map/geodata-processor/worker-style.js @@ -747,7 +747,7 @@ var validateValue = function(layerId, key, value, type, arrayLength, min, max) { //check array if (arrayLength != null) { - if (Array.isArray(value) && value.length == arrayLength) { + if (Array.isArray(value) && (value.length == arrayLength || ((key == 'icon-stick' || 'label-stick') && value.length == 7) )) { //validate array values i = 0; From e947809c7dfa13a60f986d4408ee1162c56b62fb Mon Sep 17 00:00:00 2001 From: David Levinsky Date: Mon, 17 Dec 2018 14:58:39 +0100 Subject: [PATCH 2/2] version update --- package.json | 2 +- src/core/core.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 830e974b..3a30bd2b 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vts-browser-js", - "version": "2.16.8", + "version": "2.16.10", "description": "JavaScript WebGL 3D maps rendering engine", "main": "src/browser/index.js", "scripts": { diff --git a/src/core/core.js b/src/core/core.js index 3b284bf2..86b06fa7 100755 --- a/src/core/core.js +++ b/src/core/core.js @@ -532,7 +532,7 @@ string getCoreVersion() */ function getCoreVersion(full) { - return (full ? 'Core: ' : '') + '2.16.8'; + return (full ? 'Core: ' : '') + '2.16.10'; }