File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 10
10
'use strict' ;
11
11
12
12
var countryRegex = require ( 'country-regex' ) ;
13
- var locationUtils = module . exports = { } ;
13
+ var Lib = require ( './' ) ;
14
14
15
- var Plotly = require ( '../plotly' ) ;
16
15
17
16
// make list of all country iso3 ids from at runtime
18
17
var countryIds = Object . keys ( countryRegex ) ;
19
18
20
19
var locationmodeToIdFinder = {
21
- 'ISO-3' : Plotly . Lib . identity ,
22
- 'USA-states' : Plotly . Lib . identity ,
20
+ 'ISO-3' : Lib . identity ,
21
+ 'USA-states' : Lib . identity ,
23
22
'country names' : countryNameToISO3
24
23
} ;
25
24
26
- locationUtils . locationToFeature = function ( locationmode , location , features ) {
25
+ exports . locationToFeature = function ( locationmode , location , features ) {
27
26
var locationId = getLocationId ( locationmode , location ) ;
28
27
var feature ;
29
28
You can’t perform that action at this time.
0 commit comments