We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d12595 commit 857265cCopy full SHA for 857265c
src/lib/geo_location_utils.js
@@ -10,20 +10,19 @@
10
'use strict';
11
12
var countryRegex = require('country-regex');
13
-var locationUtils = module.exports = {};
+var Lib = require('./');
14
15
-var Plotly = require('../plotly');
16
17
// make list of all country iso3 ids from at runtime
18
var countryIds = Object.keys(countryRegex);
19
20
var locationmodeToIdFinder = {
21
- 'ISO-3': Plotly.Lib.identity,
22
- 'USA-states': Plotly.Lib.identity,
+ 'ISO-3': Lib.identity,
+ 'USA-states': Lib.identity,
23
'country names': countryNameToISO3
24
};
25
26
-locationUtils.locationToFeature = function(locationmode, location, features) {
+exports.locationToFeature = function(locationmode, location, features) {
27
var locationId = getLocationId(locationmode, location);
28
var feature;
29
0 commit comments