Default speed limits to mph in Puerto Rico (close #6626)

This commit is contained in:
Quincy Morgan
2019-07-16 10:33:07 -04:00
parent bf96acee6b
commit c0b79a614d
3 changed files with 4 additions and 2 deletions
+1
View File
@@ -8,6 +8,7 @@ export { dataPhoneFormats } from './phone-formats.json';
export { dataShortcuts } from './shortcuts.json';
export { default as dataImperial } from './imperial.json';
export { default as dataMPH } from './mph.json';
export { default as dataDriveLeft } from './drive-left.json';
export { en as dataEn } from '../dist/locales/en.json';
+1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -1,7 +1,7 @@
import { dispatch as d3_dispatch } from 'd3-dispatch';
import { select as d3_select } from 'd3-selection';
import { dataImperial } from '../../../data';
import { dataMPH } from '../../../data';
import { geoPointInPolygon } from '../../geo';
import { uiCombobox } from '../combobox';
import { utilGetSetValue, utilNoAuto, utilRebind } from '../../util';
@@ -57,7 +57,7 @@ export function uiFieldMaxspeed(field, context) {
loc = childNodes[~~(childNodes.length/2)].loc;
}
_isImperial = dataImperial.features.some(function(f) {
_isImperial = dataMPH.features.some(function(f) {
return f.geometry.coordinates.some(function(d) {
return geoPointInPolygon(loc, d);
});