Uh oh!
There was an error while loading. Please reload this page.
Fix lakes and rivers geometry on scoped geo subplots - #4048
Conversation
etpinard
commented
Jul 15, 2019
cc @plotly/plotly_js don't attempt to update https://codepen.io/nicolaskruchten/pen/orRBKb?editors=0010 from #4046 to see the new behaviour. We need to first update https://cdn.plot.ly/africa_110m.json and friends. |
etpinard
commented
Jul 15, 2019
You'll notice that |
| @@ -0,0 +1,264 @@ | |||
| { | |||
archmoj
commented
Jul 15, 2019
It is rather difficult to view & compare the before/after images (with aspect-ratio close to 2) on small monitors. @etpinard would you mind splitting the mock into two mocks? |
etpinard
commented
Jul 15, 2019
@archmoj does this help? |
archmoj
commented
Jul 15, 2019
@etpinard I cannot |
antoinerg
commented
Jul 16, 2019
Thank you @etpinard for the update and the mock 💃 |
etpinard
commented
Jul 16, 2019
Is @archmoj ok also with the changes? Here's the script I used to generate the new mock: varschema=Plotly.PlotSchema.get()varscopes=schema.layout.layoutAttributes.geo.scope.valuesvarresolutions=[110,50]vartraces=[]varlayout={grid: {rows: scopes.length,columns: resolutions.length},width: 600,height: 1500}vark=0resolutions.forEach((r,i)=>{scopes.forEach((s,j)=>{varid='geo'+(k ? (k+1) : '')traces.push({type: 'scattergeo',geo: id})layout[id]={scope: s,resolution: r,domain: {column: i,row: j},landcolor: "brown",showland: true,lakecolor: "blue",showlakes: true,rivercolor: "blue",showrivers: true}k++})})Plotly.newPlot(gd,traces,layout,{scrollZoom:false})It should be easy to transpose (i,j) -> (j,i), if that makes it easier to review for you. |
archmoj
commented
Jul 16, 2019
💃 |


fixes#4046 (a regression from #3856) with the help of etpinard/sane-topojson#14