Company
Date Published
Author
Joe Hermann, Engineer
Word count
691
Language
English
Hacker News points
None

Summary

Felt, a mapping company, explores the challenge of delivering an intuitive and efficient user experience by managing complex data layers and ensuring swift interaction capabilities. This involves making subjective decisions on how to represent data in maps, which are purpose-built to effectively communicate ideas. The company emphasizes the importance of heuristics over universal solutions for determining data layer extents, particularly in their "Zoom to fit" feature. Instead of burdening the frontend with complex calculations, Felt leverages PostGIS to handle bounding box calculations during data upload, using functions like ST_Extent and ST_EstimatedExtent to determine the most efficient approach. While ST_Extent provides accurate bounding boxes, ST_EstimatedExtent offers a quicker, pre-calculated alternative, as demonstrated in a test on a large table of multipolygon geometries. This approach allows Felt to balance accuracy and performance in map visualization.