Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 303de22

Browse files
committed
add stroke-miterlimit: 2 to base layer lines
1 parent 2488f4b commit 303de22

9 files changed

+34
-1
lines changed

src/plots/geo/geo.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,8 @@ proto.updateBaseLayers = function(fullLayout, geoLayout) {
273273
.classed('scatterlayer', true);
274274
} else if(isLineLayer(d)) {
275275
basePaths[d] = layer.append('path')
276-
.style('fill', 'none');
276+
.style('fill', 'none')
277+
.style('stroke-miterlimit', 2);
277278
} else if(isFillLayer(d)) {
278279
basePaths[d] = layer.append('path')
279280
.style('stroke', 'none');
-492 Bytes
Loading
0 Bytes
Loading
Loading
2 Bytes
Loading
-92 Bytes
Loading
-186 Bytes
Loading
Loading
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"data": [
3+
{
4+
"type": "scattergeo",
5+
"lon": [-72],
6+
"lat": [40],
7+
"marker": {
8+
"size": 20,
9+
"color": "#d3d3d3"
10+
}
11+
}
12+
],
13+
"layout": {
14+
"geo": {
15+
"projection": {
16+
"type": "orthographic",
17+
"rotation": {
18+
"lon": -72,
19+
"lat": 40
20+
},
21+
"scale": 15
22+
},
23+
"showcoastlines": true,
24+
"showcountries": true,
25+
"showland": true,
26+
"showocean": true,
27+
"countrywidth": 8
28+
},
29+
"width": 500,
30+
"height": 500
31+
}
32+
}

0 commit comments

Comments
 (0)