Skip to content

Commit

Permalink
updating with debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronkruse committed Jan 4, 2024
1 parent 872a59f commit bee3937
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,17 +95,18 @@ map.on("load", () => {
polyCentroid = turf.centroid(e.features[0]).geometry.coordinates;

console.log("🐓");

console.log("Poly Centroid: ", polyCentroid);
console.log("Polygon: ", e.features[0]);
let bbox = turf.bbox(e.features[0]);
console.log(bbox);
console.log("Bounding Box: ", bbox);
const queriedFeatures = map.queryRenderedFeatures(bbox, {
layers: ["building"],
});
moveMiniMap(bbox, polyCentroid);

console.log("qf = ", queriedFeatures);
// DEBUGGIBG
// debugPoly(bbox, e.features[0]);
debugPoly(bbox, e.features[0]);

// getStaticMap(polyCentroid[1], polyCentroid[0]);
});
Expand Down

0 comments on commit bee3937

Please sign in to comment.