6
6
* LICENSE file in the root directory of this source tree.
7
7
*/
8
8
9
-
10
9
'use strict' ;
11
10
12
- var params = module . exports = { } ;
13
-
14
11
// projection names to d3 function name
15
- params . projNames = {
12
+ exports . projNames = {
16
13
// d3.geo.projection
17
14
'equirectangular' : 'equirectangular' ,
18
15
'mercator' : 'mercator' ,
@@ -39,10 +36,10 @@ params.projNames = {
39
36
} ;
40
37
41
38
// name of the axes
42
- params . axesNames = [ 'lonaxis' , 'lataxis' ] ;
39
+ exports . axesNames = [ 'lonaxis' , 'lataxis' ] ;
43
40
44
41
// max longitudinal angular span (EXPERIMENTAL)
45
- params . lonaxisSpan = {
42
+ exports . lonaxisSpan = {
46
43
'orthographic' : 180 ,
47
44
'azimuthal equal area' : 360 ,
48
45
'azimuthal equidistant' : 360 ,
@@ -54,14 +51,14 @@ params.lonaxisSpan = {
54
51
} ;
55
52
56
53
// max latitudinal angular span (EXPERIMENTAL)
57
- params . lataxisSpan = {
54
+ exports . lataxisSpan = {
58
55
'conic conformal' : 150 ,
59
56
'stereographic' : 179.5 ,
60
57
'*' : 180
61
58
} ;
62
59
63
60
// defaults for each scope
64
- params . scopeDefaults = {
61
+ exports . scopeDefaults = {
65
62
world : {
66
63
lonaxisRange : [ - 180 , 180 ] ,
67
64
lataxisRange : [ - 90 , 90 ] ,
@@ -108,34 +105,34 @@ params.scopeDefaults = {
108
105
} ;
109
106
110
107
// angular pad to avoid rounding error around clip angles
111
- params . clipPad = 1e-3 ;
108
+ exports . clipPad = 1e-3 ;
112
109
113
110
// map projection precision
114
- params . precision = 0.1 ;
111
+ exports . precision = 0.1 ;
115
112
116
113
// default land and water fill colors
117
- params . landColor = '#F0DC82' ;
118
- params . waterColor = '#3399FF' ;
114
+ exports . landColor = '#F0DC82' ;
115
+ exports . waterColor = '#3399FF' ;
119
116
120
117
// locationmode to layer name
121
- params . locationmodeToLayer = {
118
+ exports . locationmodeToLayer = {
122
119
'ISO-3' : 'countries' ,
123
120
'USA-states' : 'subunits' ,
124
121
'country names' : 'countries'
125
122
} ;
126
123
127
124
// SVG element for a sphere (use to frame maps)
128
- params . sphereSVG = { type : 'Sphere' } ;
125
+ exports . sphereSVG = { type : 'Sphere' } ;
129
126
130
127
// N.B. base layer names must be the same as in the topojson files
131
128
132
129
// base layer with a fill color
133
- params . fillLayers = [ 'ocean' , 'land' , 'lakes' ] ;
130
+ exports . fillLayers = [ 'ocean' , 'land' , 'lakes' ] ;
134
131
135
132
// base layer with a only a line color
136
- params . lineLayers = [ 'subunits' , 'countries' , 'coastlines' , 'rivers' , 'frame' ] ;
133
+ exports . lineLayers = [ 'subunits' , 'countries' , 'coastlines' , 'rivers' , 'frame' ] ;
137
134
138
- params . layers = [
135
+ exports . layers = [
139
136
'bg' ,
140
137
'ocean' , 'land' , 'lakes' ,
141
138
'subunits' , 'countries' , 'coastlines' , 'rivers' ,
@@ -144,7 +141,7 @@ params.layers = [
144
141
'frontplot'
145
142
] ;
146
143
147
- params . layersForChoropleth = [
144
+ exports . layersForChoropleth = [
148
145
'bg' ,
149
146
'ocean' , 'land' ,
150
147
'subunits' , 'countries' , 'coastlines' ,
@@ -154,7 +151,7 @@ params.layersForChoropleth = [
154
151
'frontplot'
155
152
] ;
156
153
157
- params . layerNameToAdjective = {
154
+ exports . layerNameToAdjective = {
158
155
ocean : 'ocean' ,
159
156
land : 'land' ,
160
157
lakes : 'lake' ,
0 commit comments