mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2025-01-01 06:58:18 +01:00
Allow inspect mode to count properly
Example: https://maputnik.github.io/editor/#12.86/54.38618/9.76697
This commit is contained in:
parent
06c3c92fd6
commit
7ff0524bb7
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ function removeDuplicatedFeatures(features) {
|
||||||
if(featureIndex === -1) {
|
if(featureIndex === -1) {
|
||||||
uniqueFeatures.push(feature)
|
uniqueFeatures.push(feature)
|
||||||
} else {
|
} else {
|
||||||
if(uniqueFeatures[featureIndex].hasOwnProperty('counter')) {
|
if(uniqueFeatures[featureIndex].hasOwnProperty('inspectModeCounter')) {
|
||||||
uniqueFeatures[featureIndex].inspectModeCounter++
|
uniqueFeatures[featureIndex].inspectModeCounter++
|
||||||
} else {
|
} else {
|
||||||
uniqueFeatures[featureIndex].inspectModeCounter = 2
|
uniqueFeatures[featureIndex].inspectModeCounter = 2
|
||||||
|
|
Loading…
Reference in a new issue