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');
44var domainAttrs = require ( '../domain' ) . attributes ;
55var constants = require ( './constants' ) ;
66var overrideAll = require ( '../../plot_api/edit_types' ) . overrideAll ;
7+ var sortedObjectKeys = require ( '../../lib/sorted_object_keys' ) ;
78
89var geoAxesAttrs = {
910 range : {
@@ -100,14 +101,14 @@ var attrs = module.exports = overrideAll({
100101 } ,
101102 scope : {
102103 valType : 'enumerated' ,
103- values : Object . keys ( constants . scopeDefaults ) ,
104+ values : sortedObjectKeys ( constants . scopeDefaults ) ,
104105 dflt : 'world' ,
105106 description : 'Set the scope of the map.'
106107 } ,
107108 projection : {
108109 type : {
109110 valType : 'enumerated' ,
110- values : Object . keys ( constants . projNames ) ,
111+ values : sortedObjectKeys ( constants . projNames ) ,
111112 description : 'Sets the projection type.'
112113 } ,
113114 rotation : {
Original file line number Diff line number Diff line change 20532053 "editType": "plot",
20542054 "valType": "enumerated",
20552055 "values": [
2056- "equirectangular",
2057- "mercator",
2058- "orthographic",
2059- "natural earth",
2060- "kavrayskiy7",
2061- "miller",
2062- "robinson",
2063- "eckert4",
2056+ "aitoff",
2057+ "albers usa",
20642058 "azimuthal equal area",
20652059 "azimuthal equidistant",
2066- "conic equal area",
20672060 "conic conformal",
2061+ "conic equal area",
20682062 "conic equidistant",
2063+ "eckert4",
2064+ "equirectangular",
20692065 "gnomonic",
2070- "stereographic",
2071- "mollweide",
20722066 "hammer",
2067+ "kavrayskiy7",
2068+ "mercator",
2069+ "miller",
2070+ "mollweide",
2071+ "natural earth",
2072+ "orthographic",
2073+ "robinson",
2074+ "sinusoidal",
2075+ "stereographic",
20732076 "transverse mercator",
2074- "albers usa",
2075- "winkel tripel",
2076- "aitoff",
2077- "sinusoidal"
2077+ "winkel tripel"
20782078 ]
20792079 }
20802080 },
21092109 "editType": "plot",
21102110 "valType": "enumerated",
21112111 "values": [
2112- "world",
2113- "usa",
2114- "europe",
2115- "asia",
21162112 "africa",
2113+ "asia",
2114+ "europe",
21172115 "north america",
2118- "south america"
2116+ "south america",
2117+ "usa",
2118+ "world"
21192119 ]
21202120 },
21212121 "showcoastlines": {
You can’t perform that action at this time.
0 commit comments