Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 329a1db

Browse filesBrowse files
committed
lint (mostly scoped vars)
1 parent e5ed519 commit 329a1db
Copy full SHA for 329a1db

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

‎src/traces/scattergeo/plot.js

Copy file name to clipboardExpand all lines: src/traces/scattergeo/plot.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ plotScatterGeo.calcGeoJSON = function(trace, topojson) {
3131
var cdi = [],
3232
hasLocationData = Array.isArray(trace.locations);
3333

34-
var len, features, getLonLat, lonlat, locations, calcItem;
34+
var len, features, getLonLat, locations;
3535

3636
if(hasLocationData) {
3737
locations = trace.locations;
@@ -53,11 +53,11 @@ plotScatterGeo.calcGeoJSON = function(trace, topojson) {
5353
}
5454

5555
for(var i = 0; i < len; i++) {
56-
lonlat = getLonLat(trace, i);
56+
var lonlat = getLonLat(trace, i);
5757

5858
if(!lonlat) continue; // filter the blank points here
5959

60-
calcItem = {
60+
var calcItem = {
6161
lon: lonlat[0],
6262
lat: lonlat[1],
6363
location: hasLocationData ? trace.locations[i] : null
@@ -104,7 +104,7 @@ function makeLineGeoJSON(trace) {
104104
var N = trace.lon.length,
105105
coordinates = new Array(N);
106106

107-
for (var i = 0; i < N; i++) {
107+
for(var i = 0; i < N; i++) {
108108
coordinates[i] = [trace.lon[i], trace.lat[i]];
109109
}
110110

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.