File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ function locationToFeature(locationmode, location, features) {
62
62
63
63
for ( i = 0 ; i < filteredFeatures . length ; i ++ ) {
64
64
f = filteredFeatures [ i ] ;
65
- if ( f . id === locationId && isMainCountryFeature ( f ) ) return f ;
65
+ if ( f . id === locationId ) return f ;
66
66
}
67
67
68
68
loggers . log ( [
@@ -74,18 +74,6 @@ function locationToFeature(locationmode, location, features) {
74
74
return false ;
75
75
}
76
76
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
-
89
77
function feature2polygons ( feature ) {
90
78
var geometry = feature . geometry ;
91
79
var coords = geometry . coordinates ;
You can’t perform that action at this time.
0 commit comments