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 2710e7c

Browse filesBrowse files
committed
Revert "filter out extra features"
This reverts commit 4d37b8c.
1 parent 5482adf commit 2710e7c
Copy full SHA for 2710e7c

File tree

Expand file treeCollapse file tree

1 file changed

+1
-13
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-13
lines changed

‎src/lib/geo_location_utils.js

Copy file name to clipboardExpand all lines: src/lib/geo_location_utils.js
+1-13Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function locationToFeature(locationmode, location, features) {
6262

6363
for(i = 0; i < filteredFeatures.length; i++) {
6464
f = filteredFeatures[i];
65-
if(f.id === locationId && isMainCountryFeature(f)) return f;
65+
if(f.id === locationId) return f;
6666
}
6767

6868
loggers.log([
@@ -74,18 +74,6 @@ function locationToFeature(locationmode, location, features) {
7474
return false;
7575
}
7676

77-
function isMainCountryFeature(feature) {
78-
// Returns false for certain features which are not the main region of their country
79-
if(feature.id === 'USA') {
80-
if(feature.properties && feature.properties.ct && feature.properties.ct[0] == -155.5 &&
81-
feature.properties.ct[1] == 19.6) {
82-
// Hawaii
83-
return false;
84-
}
85-
}
86-
return true;
87-
}
88-
8977
function feature2polygons(feature) {
9078
var geometry = feature.geometry;
9179
var coords = geometry.coordinates;

0 commit comments

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