File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5050 previousSelectedPoints = selectedPoints ;
5151
5252 // Change view
53- if (appState .lastMoved !== currentComponent ) {
53+ if (appState .lastMoved !== currentComponent && featuresToSelect . length ) {
5454 const bounds = bbox (featureCollection (featuresToSelect )) as LngLatBoundsLike ;
5555 const camera = map .cameraForBounds (bounds , { maxZoom , padding: settings .padding });
5656 if (camera ) {
Original file line number Diff line number Diff line change 6565 previousSelectedPoints = selectedPoints ;
6666
6767 // Change view
68- if (appState .lastMoved !== currentComponent ) {
68+ if (appState .lastMoved !== currentComponent && featuresToSelect . length ) {
6969 const bounds = bbox (featureCollection (featuresToSelect )) as LngLatBoundsLike ;
7070 const camera = map .cameraForBounds (bounds , { maxZoom , padding: settings .padding });
7171 if (camera ) {
You can’t perform that action at this time.
0 commit comments