mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-17 22:24:49 +02:00
Default speed limits to mph in Puerto Rico (close #6626)
This commit is contained in:
@@ -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';
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user