Skip to content

Commit 57da6f7

Browse files
committed
show ocean on non-usa projections in geo_fitbounds-locations
1 parent 10c402f commit 57da6f7

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

src/plots/geo/constants.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ for(var col = 0; col < nCol; col++) {
194194
row: row,
195195
column: col,
196196
},
197+
showocean: usa ? false : true,
197198
projection: { type: name },
198199
fitbounds: 'locations'
199200
};
8.77 KB
Loading

test/image/mocks/geo_fitbounds-locations.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,7 @@
542542
"row": 0,
543543
"column": 0
544544
},
545+
"showocean": true,
545546
"projection": {
546547
"type": "aitoff"
547548
},
@@ -552,6 +553,7 @@
552553
"row": 1,
553554
"column": 0
554555
},
556+
"showocean": false,
555557
"projection": {
556558
"type": "albers usa"
557559
},
@@ -562,6 +564,7 @@
562564
"row": 2,
563565
"column": 0
564566
},
567+
"showocean": true,
565568
"projection": {
566569
"type": "azimuthal equal area"
567570
},
@@ -572,6 +575,7 @@
572575
"row": 3,
573576
"column": 0
574577
},
578+
"showocean": true,
575579
"projection": {
576580
"type": "azimuthal equidistant"
577581
},
@@ -582,6 +586,7 @@
582586
"row": 4,
583587
"column": 0
584588
},
589+
"showocean": true,
585590
"projection": {
586591
"type": "conic conformal"
587592
},
@@ -592,6 +597,7 @@
592597
"row": 5,
593598
"column": 0
594599
},
600+
"showocean": true,
595601
"projection": {
596602
"type": "conic equal area"
597603
},
@@ -602,6 +608,7 @@
602608
"row": 6,
603609
"column": 0
604610
},
611+
"showocean": true,
605612
"projection": {
606613
"type": "conic equidistant"
607614
},
@@ -612,6 +619,7 @@
612619
"row": 7,
613620
"column": 0
614621
},
622+
"showocean": true,
615623
"projection": {
616624
"type": "eckert4"
617625
},
@@ -622,6 +630,7 @@
622630
"row": 0,
623631
"column": 1
624632
},
633+
"showocean": true,
625634
"projection": {
626635
"type": "equirectangular"
627636
},
@@ -632,6 +641,7 @@
632641
"row": 1,
633642
"column": 1
634643
},
644+
"showocean": true,
635645
"projection": {
636646
"type": "gnomonic"
637647
},
@@ -642,6 +652,7 @@
642652
"row": 2,
643653
"column": 1
644654
},
655+
"showocean": true,
645656
"projection": {
646657
"type": "hammer"
647658
},
@@ -652,6 +663,7 @@
652663
"row": 3,
653664
"column": 1
654665
},
666+
"showocean": true,
655667
"projection": {
656668
"type": "kavrayskiy7"
657669
},
@@ -662,6 +674,7 @@
662674
"row": 4,
663675
"column": 1
664676
},
677+
"showocean": true,
665678
"projection": {
666679
"type": "mercator"
667680
},
@@ -672,6 +685,7 @@
672685
"row": 5,
673686
"column": 1
674687
},
688+
"showocean": true,
675689
"projection": {
676690
"type": "miller"
677691
},
@@ -682,6 +696,7 @@
682696
"row": 6,
683697
"column": 1
684698
},
699+
"showocean": true,
685700
"projection": {
686701
"type": "mollweide"
687702
},
@@ -692,6 +707,7 @@
692707
"row": 7,
693708
"column": 1
694709
},
710+
"showocean": true,
695711
"projection": {
696712
"type": "natural earth"
697713
},
@@ -702,6 +718,7 @@
702718
"row": 0,
703719
"column": 2
704720
},
721+
"showocean": true,
705722
"projection": {
706723
"type": "orthographic"
707724
},
@@ -712,6 +729,7 @@
712729
"row": 1,
713730
"column": 2
714731
},
732+
"showocean": true,
715733
"projection": {
716734
"type": "robinson"
717735
},
@@ -722,6 +740,7 @@
722740
"row": 2,
723741
"column": 2
724742
},
743+
"showocean": true,
725744
"projection": {
726745
"type": "sinusoidal"
727746
},
@@ -732,6 +751,7 @@
732751
"row": 3,
733752
"column": 2
734753
},
754+
"showocean": true,
735755
"projection": {
736756
"type": "stereographic"
737757
},
@@ -742,6 +762,7 @@
742762
"row": 4,
743763
"column": 2
744764
},
765+
"showocean": true,
745766
"projection": {
746767
"type": "transverse mercator"
747768
},
@@ -752,6 +773,7 @@
752773
"row": 5,
753774
"column": 2
754775
},
776+
"showocean": true,
755777
"projection": {
756778
"type": "winkel tripel"
757779
},

0 commit comments

Comments
 (0)