influxdata / influxdata/giraffe

GeoWidget: PanAndZoom disabled but click on cluster node zooms anyway

Open
#398 0 comments 0 reactions 1 assignee Claimed by @dubsky View on GitHub
kind/bug team/bonitoo
Dominant language
TypeScript
Stars
189
Forks
33
Avg merge
3d 15h
Merged PRs (30d)
4

Description

**Build**
Local build of PR 365

```
commit 361b63bc55ac4989f17f03f33165d3070c7236b2 (HEAD -> fix-leaflet-css, origin/fix-leaflet-css)
```

**Use Case**

Double checking unpacking of clusters to markers - with `allowPanAndZoom: false`

```javascript
{
type: 'geo',
lat: latitude,
lon: longitude,
zoom: 8,
allowPanAndZoom: false,
detectCoordinateFields: false,
layers: [
{
type: 'pointMap',
colorDimension: {label: 'Mag'},
colorField: 'mag',
colors: [
{type: 'min', hex: '#006d6f'},
{value: 3, hex: '#FFD300'},
{value: 6, hex: '#FF4F00'},
{value: 9, hex: '#db0000'},
{type: 'max', hex: '#db0000'},
],
isClustered: true,
areClustersColored: true,
clusterAggregationFunction: ClusterAggregation.mean,
maxClusterRadius: 120,
},
],
tileServerConfiguration: tileServerConfiguration,

}
```

**Expected Behavior**

Expected to be able to unpack clustered markers while respecting the declaration `allowPanAndZoom: false`.

**Actual Behavior**

Clicking on the clustered circle unpacks the markers and zooms in to the next level. However, there is no obvious mechanism to return to the original view.

**Screencast**

![NoPanNoZoomUnpack01](https://user-images.githubusercontent.com/25881301/100078249-9efd0280-2e43-11eb-87b0-325d87e5a0f5.gif)

**Related**

I had opened a feature request related to this, but then discovered that a click event on the clustered markers point already unpacks and zooms in on that point. (#388) However, this is not handled in a friendly way when pan and zoom are disabled.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.