From bee39372480c0c351eba123fb4d203ca7b9670cd Mon Sep 17 00:00:00 2001 From: Cameron Kruse <14115927+cameronkruse@users.noreply.github.com> Date: Thu, 4 Jan 2024 14:48:07 -0800 Subject: [PATCH] updating with debugging --- src/map.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/map.js b/src/map.js index 6620afd..7605294 100644 --- a/src/map.js +++ b/src/map.js @@ -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]); });