Skip to content

Commit

Permalink
feat: borders
Browse files Browse the repository at this point in the history
  • Loading branch information
neocarto committed Mar 15, 2022
1 parent bde5ac1 commit d1265d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/borders.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import * as topojsonclient from "topojson-client";
import * as topojsonserver from "topojson-server";
const topojson = Object.assign({}, topojsonclient, topojsonserver);

import * as d3array from "d3-array";
const d3 = Object.assign({}, d3array);

export function borders({ geojson, id, values, type = "rel", share = null }) {
const topo = topojson.topology({ d: geojson });
const ids = geojson.features.map((d) => d.properties[id]);
Expand Down

0 comments on commit d1265d9

Please sign in to comment.