mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Update martinez-polygon-clipping to v0.6.2 (close #7370)
This commit is contained in:
@@ -3,7 +3,7 @@ import { dispatch as d3_dispatch } from 'd3-dispatch';
|
||||
import deepEqual from 'fast-deep-equal';
|
||||
import turf_bboxClip from '@turf/bbox-clip';
|
||||
import stringify from 'fast-json-stable-stringify';
|
||||
import martinez from 'martinez-polygon-clipping';
|
||||
import * as martinez from 'martinez-polygon-clipping';
|
||||
|
||||
import Protobuf from 'pbf';
|
||||
import vt from '@mapbox/vector-tile';
|
||||
@@ -65,8 +65,9 @@ function vtToGeoJSON(data, tile, mergeCache) {
|
||||
var merged = mergeCache[propertyhash];
|
||||
if (merged && merged.length) {
|
||||
var other = merged[0];
|
||||
var coords = martinez(
|
||||
feature.geometry.coordinates, other.geometry.coordinates, 1 /*UNION*/
|
||||
var coords = martinez.union(
|
||||
feature.geometry.coordinates,
|
||||
other.geometry.coordinates
|
||||
);
|
||||
|
||||
if (!coords || !coords.length) {
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
"fast-json-stable-stringify": "2.1.0",
|
||||
"lodash-es": "~4.17.15",
|
||||
"marked": "0.8.0",
|
||||
"martinez-polygon-clipping": "0.6.0",
|
||||
"martinez-polygon-clipping": "0.6.2",
|
||||
"node-diff3": "1.0.0",
|
||||
"osm-auth": "1.0.2",
|
||||
"pannellum": "2.4.1",
|
||||
|
||||
Reference in New Issue
Block a user