mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-24 00:54:03 +02:00
Fix import statement for sexagesimal
This commit is contained in:
+4
-4
@@ -1,8 +1,8 @@
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
||||
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
||||
(factory((global.iD = global.iD || {})));
|
||||
}(this, function (exports) { 'use strict';
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('sexagesimal')) :
|
||||
typeof define === 'function' && define.amd ? define(['exports', 'sexagesimal'], factory) :
|
||||
(factory((global.iD = global.iD || {}),global.sexagesimal));
|
||||
}(this, function (exports,sexagesimal) { 'use strict';
|
||||
|
||||
function AddEntity(way) {
|
||||
return function(graph) {
|
||||
|
||||
@@ -3216,7 +3216,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
var sexagesimal = (index && typeof index === 'object' && 'default' in index ? index['default'] : index);
|
||||
var pair = index.pair;
|
||||
|
||||
function FeatureList(context) {
|
||||
var geocodeResults;
|
||||
@@ -3294,7 +3294,7 @@
|
||||
});
|
||||
}
|
||||
|
||||
var locationMatch = sexagesimal.pair(q.toUpperCase()) || q.match(/^(-?\d+\.?\d*)\s+(-?\d+\.?\d*)$/);
|
||||
var locationMatch = pair(q.toUpperCase()) || q.match(/^(-?\d+\.?\d*)\s+(-?\d+\.?\d*)$/);
|
||||
|
||||
if (locationMatch) {
|
||||
var loc = [parseFloat(locationMatch[0]), parseFloat(locationMatch[1])];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { default as sexagesimal } from 'sexagesimal';
|
||||
import * as sexagesimal from 'sexagesimal';
|
||||
|
||||
export function FeatureList(context) {
|
||||
var geocodeResults;
|
||||
|
||||
Reference in New Issue
Block a user