Skip to content

Commit 588dbbd

Browse files
committed
Map size now controlled by CSS
1 parent 3a84c36 commit 588dbbd

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

MMM-BirdNET.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.BirdNETmap {
2-
width: 500px;
3-
height: 500px;
2+
width: 400px;
3+
height: 400px;
44
border-radius: 10px;
55
}
66

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ All configuration options are optional. There are no mandatory parameters.
3737
| mapMode | 'dark' | Which map to use. Supported values are: `dark`, `light`, `atlas`, `stark`, `terrain`, `satellite`, `custom` and `metal`.
3838
| lat | 42.453583743 | Latitude for the center of the map display. |
3939
| lon | -76.47363144 | Longitude for the center of the map display. |
40-
| width | 400px | Width of the map box. |
41-
| height | 400px | Height of the map box |
4240
| markerColor | 'LightGreen' | Sets the color of the markers on the map representing submissions. Accepts [HTML standard color names](https://www.w3schools.com/cssref/css_colors.php) or hex format.|
4341
| markerDistance | 300 | Distance in kilometers from the center of the map to display BirdNET submissions. If you encounter performance issues, try reducing this number. BirdNET regularly receives 30-50K submissions daily and we can _maybe_ display 10K. |
4442
| zoomLevel | 7 | How far in the map is zoomed. See [Leaflet](https://leafletjs.com/examples/zoom-levels/) documentation for more details. |
4543
| mapUrl | null | If you set the mapMode parameter to `custom`, this parameter will activate. You can supply your own [Leaflet](https://leafletjs.com/reference.html#map-example)-supported map URL here. |
4644
| dataUrl | https://birdnet.cornell.edu/map/requeststats| Where to pull the data |
4745

46+
Note: Width & height of the map are controlled via the `BirdNETmap` classname. Override via your `custom.css`. Default is 400px x 400px.
47+
4848
## Upcoming Features
4949
* Better CSS for the popups.
5050
* Enable notification broadcasts

0 commit comments

Comments
 (0)