Getting appropriate clusterZoom; flyto moving to incorrect location on map

This commit is contained in:
efarooqui
2020-09-30 13:07:29 -07:00
parent 5020e73811
commit 5333f492f8
4 changed files with 20 additions and 7 deletions

View File

@@ -74,8 +74,8 @@ export function insetSourceFrom (allSources) {
if (!event.sources) {
sources = []
} else {
sources = event.sources.map(src => {
const id = typeof src === 'object' ? src.id : src
sources = event.sources.map(id => {
// const id = typeof src === 'object' ? src.id : src
return allSources.hasOwnProperty(id) ? allSources[id] : null
})
}