File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,8 +7,6 @@ Module.register("MMM-BirdNET", {
77 mapMode : 'dark' ,
88 lat : 42.453583743 ,
99 lon : - 76.47363144 ,
10- width : '400px' ,
11- height : '400px' ,
1210 zoomLevel : 7 ,
1311 markerDistance : 300 ,
1412 markerColor : 'LightGreen' // distance from map center to put markers
@@ -37,8 +35,10 @@ Module.register("MMM-BirdNET", {
3735 this . mapOptions = {
3836 zoomControl : false ,
3937 boxZoom : false ,
40- doubleClickZoom : false
41- }
38+ doubleClickZoom : false ,
39+ attributionControl : false
40+ } ;
41+
4242
4343 this . mapSelector = "Jawg.Dark" ;
4444
@@ -70,6 +70,8 @@ Module.register("MMM-BirdNET", {
7070 wrapper = document . createElement ( "div" ) ;
7171 wrapper . className = "BirdNETmap" ;
7272 wrapper . id = "BirdNET-map" ;
73+ wrapper . width = this . config . width ;
74+ wrapper . height = this . config . height ;
7375 this . mapWrapper = wrapper ;
7476 }
7577
@@ -257,7 +259,7 @@ Module.register("MMM-BirdNET", {
257259 case 'custom' :
258260 L . tileLayer ( this . config . mapUrl , { maxZoom : 19 , attribution : 'Unknown' } ) . addTo ( map ) ; // add map tiles
259261 } // end case statement
260-
262+ L . control . attribution ( this . attributionOptions ) ;
261263 this . birdMap = map ;
262264 }
263265
You can’t perform that action at this time.
0 commit comments