File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 292
292
return this . _div ;
293
293
} ;
294
294
legend . update = function ( ) {
295
- this . _div . innerHTML = '<div class="leaflet-control-layers leaflet-control-layers-expanded" id="legendBox" style="width:300px ;height:100px;background:gray"></div>' ;
295
+ this . _div . innerHTML = '<div class="leaflet-control-layers leaflet-control-layers-expanded" id="legendBox" style="width:250px ;height:100px;background:gray"></div>' ;
296
296
} ;
297
297
legend . addTo ( map ) ;
298
298
299
299
var legendSVG = d3 . select ( '#legendBox' )
300
300
. append ( 'svg' )
301
301
. attr ( 'transform' , 'translate(0,' + 0 + ')' )
302
- . attr ( 'width' , 300 )
302
+ . attr ( 'width' , 250 )
303
303
. attr ( 'height' , 100 ) ;
304
304
showBlock = true ;
305
305
function toggleBlock ( num ) {
Original file line number Diff line number Diff line change @@ -78,10 +78,10 @@ function createBoxLegend(svg) {
78
78
function createColorMapLegend ( svg , value ) {
79
79
colorbar = svg . append ( 'g' )
80
80
81
- . attr ( 'transform' , 'translate(0, 40 )' )
81
+ . attr ( 'transform' , 'translate(20, 30 )' )
82
82
. attr ( 'width' , 50 ) ;
83
83
84
- var w = 300 , h = 50 ;
84
+ var w = 200 , h = 50 ;
85
85
86
86
87
87
var legend = colorbar . append ( "defs" )
You can’t perform that action at this time.
0 commit comments