File tree Expand file tree Collapse file tree 2 files changed +23
-22
lines changed Expand file tree Collapse file tree 2 files changed +23
-22
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ var colorAttrs = require('../../components/color/attributes');
4
4
var domainAttrs = require ( '../domain' ) . attributes ;
5
5
var constants = require ( './constants' ) ;
6
6
var overrideAll = require ( '../../plot_api/edit_types' ) . overrideAll ;
7
+ var sortedObjectKeys = require ( '../../lib/sorted_object_keys' ) ;
7
8
8
9
var geoAxesAttrs = {
9
10
range : {
@@ -100,14 +101,14 @@ var attrs = module.exports = overrideAll({
100
101
} ,
101
102
scope : {
102
103
valType : 'enumerated' ,
103
- values : Object . keys ( constants . scopeDefaults ) ,
104
+ values : sortedObjectKeys ( constants . scopeDefaults ) ,
104
105
dflt : 'world' ,
105
106
description : 'Set the scope of the map.'
106
107
} ,
107
108
projection : {
108
109
type : {
109
110
valType : 'enumerated' ,
110
- values : Object . keys ( constants . projNames ) ,
111
+ values : sortedObjectKeys ( constants . projNames ) ,
111
112
description : 'Sets the projection type.'
112
113
} ,
113
114
rotation : {
Original file line number Diff line number Diff line change 2053
2053
"editType": "plot",
2054
2054
"valType": "enumerated",
2055
2055
"values": [
2056
- "equirectangular",
2057
- "mercator",
2058
- "orthographic",
2059
- "natural earth",
2060
- "kavrayskiy7",
2061
- "miller",
2062
- "robinson",
2063
- "eckert4",
2056
+ "aitoff",
2057
+ "albers usa",
2064
2058
"azimuthal equal area",
2065
2059
"azimuthal equidistant",
2066
- "conic equal area",
2067
2060
"conic conformal",
2061
+ "conic equal area",
2068
2062
"conic equidistant",
2063
+ "eckert4",
2064
+ "equirectangular",
2069
2065
"gnomonic",
2070
- "stereographic",
2071
- "mollweide",
2072
2066
"hammer",
2067
+ "kavrayskiy7",
2068
+ "mercator",
2069
+ "miller",
2070
+ "mollweide",
2071
+ "natural earth",
2072
+ "orthographic",
2073
+ "robinson",
2074
+ "sinusoidal",
2075
+ "stereographic",
2073
2076
"transverse mercator",
2074
- "albers usa",
2075
- "winkel tripel",
2076
- "aitoff",
2077
- "sinusoidal"
2077
+ "winkel tripel"
2078
2078
]
2079
2079
}
2080
2080
},
2109
2109
"editType": "plot",
2110
2110
"valType": "enumerated",
2111
2111
"values": [
2112
- "world",
2113
- "usa",
2114
- "europe",
2115
- "asia",
2116
2112
"africa",
2113
+ "asia",
2114
+ "europe",
2117
2115
"north america",
2118
- "south america"
2116
+ "south america",
2117
+ "usa",
2118
+ "world"
2119
2119
]
2120
2120
},
2121
2121
"showcoastlines": {
You can’t perform that action at this time.
0 commit comments