Open site modal after map transition
This commit is contained in:
parent
906daecbcc
commit
ff379acb13
@ -213,12 +213,15 @@ UI.sitesMenu = function (menuListSel, map, sites) {
|
|||||||
// zoom to layer...
|
// zoom to layer...
|
||||||
const layer = sites.customGetLayer(layerId);
|
const layer = sites.customGetLayer(layerId);
|
||||||
const data = await GIS.layerData(layerId);
|
const data = await GIS.layerData(layerId);
|
||||||
this.openSiteModal(data, '#site-data');
|
|
||||||
map.setView(
|
map.setView(
|
||||||
layer.getBounds().getCenter(),
|
layer.getBounds().getCenter(),
|
||||||
19,
|
19,
|
||||||
{animate: true, duration: 1, easeLinearity: 0.25}
|
{animate: true, duration: 1, easeLinearity: 0.25}
|
||||||
);
|
);
|
||||||
|
setTimeout(
|
||||||
|
() => this.openSiteModal(data, '#site-data'),
|
||||||
|
1200
|
||||||
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user