forked from MapComplete/MapComplete
Docs: improve typing of FeatureSources
This commit is contained in:
parent
c71036d6c6
commit
34924fd4b1
21 changed files with 140 additions and 127 deletions
|
|
@ -54,11 +54,11 @@ export class GeoOperations {
|
|||
/**
|
||||
* Create a union between two features
|
||||
*/
|
||||
public static union(
|
||||
public static union<P >(
|
||||
f0: Feature<Polygon | MultiPolygon>,
|
||||
f1: Feature<Polygon | MultiPolygon>
|
||||
): Feature<Polygon | MultiPolygon> | null {
|
||||
return turf.union(turf.featureCollection([f0, f1]))
|
||||
): Feature<Polygon | MultiPolygon, P> | null {
|
||||
return turf.union<P>(turf.featureCollection([f0, f1]))
|
||||
}
|
||||
|
||||
public static intersect(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue