mirror of
https://github.com/maputnik/editor.git
synced 2026-11-28 12:54:20 +00:00
Allow inspect mode to count properly
Example: https://maputnik.github.io/editor/#12.86/54.38618/9.76697
This commit is contained in:
1 parent
06c3c92fd6
commit
7ff0524bb7
1 file changed
+1
-1
@@ -43,7 +43,7 @@ function removeDuplicatedFeatures(features) {
|
||||
if(featureIndex === -1) {
|
||||
uniqueFeatures.push(feature)
|
||||
} else {
|
||||
if(uniqueFeatures[featureIndex].hasOwnProperty('counter')) {
|
||||
if(uniqueFeatures[featureIndex].hasOwnProperty('inspectModeCounter')) {
|
||||
uniqueFeatures[featureIndex].inspectModeCounter++
|
||||
} else {
|
||||
uniqueFeatures[featureIndex].inspectModeCounter = 2
|
||||
|
||||
Reference in new issue
Block a user