Home / Companies / Felt / Blog / June 2022

June 2022 Summaries

2 posts from Felt

Filter
Month: Year:
Post Summaries Back to Blog
The article explores the development of a specialized canvas UI for Felt's geospatial drawing tools, emphasizing the intricate processes behind creating an intuitive and responsive mapping experience. It delves into the foundational concepts of canvas UIs, including the importance of coordinate systems and viewport transformations, and explains how users interact with the map through gestures like panning and zooming. The text highlights the complexities of converting geographic coordinates to screen-space via map projection, focusing on the use of Mercator projection to translate world-space coordinates to a 2D cartesian system. To enhance performance, the system employs optimizations like transient canvas transforms and regular reprojections, which leverage GPU-accelerated SVG transformations to efficiently manage and update the display of thousands of coordinate pairs. These techniques ensure that users can smoothly navigate and manipulate the map, even as the complexity and scale of drawn elements increase.
Jun 02, 2022 1,969 words in the original blog post.
Canvas UIs, like those used in mapping applications and design tools, provide users with an interactive experience similar to manipulating a physical canvas. The article discusses the development of a geospatial canvas for Felt's drawing tools, focusing on core concepts such as coordinate systems, gestures, and viewport transformations. The canvas UI relies on a combination of world-space (geographic coordinates) and screen-space (pixel coordinates) systems to allow users to pan and zoom effectively, using gestures that maintain the geographic point under the cursor during zooming. Felt's system employs map tiles, exponential zoom levels, and techniques like Mercator projection to manage geographic data efficiently. To optimize performance, particularly when rendering complex shapes, the system uses GPU-accelerated SVG transformations and transient canvas transforms, which reduce the computational load during interactions. Regular reprojections are performed to maintain accuracy across a wide zoom range, dynamically simplifying geometries based on zoom level to avoid unnecessary computation. This sophisticated setup ensures that Felt's canvas UI remains responsive and efficient as users create increasingly intricate maps.
Jun 02, 2022 1,969 words in the original blog post.