In the meeting, State Changers are discussing the process of integrating Mapbox into a project. The project involves connecting a map to a Content Management System (CMS) with the map pulling data from an array of objects in the CMS list.
The State Changers discuss a preference for a multi-directional system where, if a location on a list is clicked, it doesn't just center on the map, but also locates it on the map and navigates there. Similarly, when a location point on the map is clicked, it should scroll the left-hand side list to show that location. The challenge lies in working with JavaScript and third-party libraries to achieve this functionality. Webflow is being used to manage the website, and jQuery is used in script tags to tie interactions between the site’s list items and corresponding map locations. The officers discuss the use of unique IDs for array items, the importance of only applying JavaScript when the document is ready to avoid errors, using ‘parent’ and ‘parents’ to find the relationship between elements in a hierarchy, and the method of triggering events in Mapbox. Overall, the meeting presents a complicated coding and design problem, involving management of interactive elements and third-party libraries with JavaScript in a Webflow setting. The discussion signals a focus on providing a user-friendly interface where a click on a location list dynamically interacts with a geographical map, and vice versa.
(Source: Office Hours 8/2/2023 )
Join State Change Risk-Free