Skip to content

Commit caaf5a8

Browse files
committed
color example
1 parent 9f0bb50 commit caaf5a8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎examples/index.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ <h4>Simple Example</h4>
5959

6060
$('#map-label1').append('<b>Load time: ' + (new Date().getTime()-time1) + 'ms</b>');
6161

62-
var geoPlain = new L.GeoJSON(data);
62+
var geoPlain = new L.GeoJSON(data, {style: { weight:2,opacity:1}});
6363

6464
map1.addLayer(geoPlain).fitBounds( geoPlain.getBounds() );
6565
});
@@ -69,7 +69,7 @@ <h4>Simple Example</h4>
6969

7070
$('#map-label2').append('<b>Load time: ' + (new Date().getTime()-time2) + 'ms</b>');
7171

72-
var geoEncoded = new L.GeoJSON.Encoded(data);
72+
var geoEncoded = new L.GeoJSON.Encoded(data, {style: { weight:2,opacity:1,color:'#00aa00'}});
7373

7474
map2.addLayer(geoEncoded).fitBounds( geoEncoded.getBounds() );
7575
});

0 commit comments

Comments
 (0)