Skip to content

Commit

Permalink
Merge pull request #4 from watergis/feature/add-scroll
Browse files Browse the repository at this point in the history
Feature/add scroll
  • Loading branch information
Jin Igarashi authored Oct 10, 2020
2 parents 3b8f818 + f1678b9 commit 077bc22
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ npm i @watergis/mapbox-gl-legend --save
```

## Demo:
![demo.gif](./demo.gif)

See [demo](https://watergis.github.io/mapbox-gl-legend/#12/-1.08551/35.87063).

Expand Down
5 changes: 5 additions & 0 deletions css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
display: none;
}

.mapboxgl-legend-list{
overflow-y:scroll;
max-height: calc(100vh * 0.7);
}

.mapboxgl-ctrl-group .mapboxgl-legend-list button
{
background: none;
Expand Down
Binary file added demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@watergis/mapbox-gl-legend",
"version": "1.0.4",
"version": "1.0.5",
"description": "This module adds legend control which is able to create legend panel from mapbox style to mapbox-gl",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 077bc22

Please sign in to comment.