Interactive POI Map Markers
Imagine you're building an internal tool for a logistics company to manage pickup and delivery locations. A critical feature for operational planning is the ability to visualize these points of interest (POIs) on a map and interact with them. This problem focuses on building a core interactive component where users can select a POI from a list and see its corresponding marker highlighted on a simulated map, and vice-versa.
Your goal is to build a React component that displays a list of Points of Interest (POIs) and their corresponding markers on a simulated map. The component should allow for single-selection interaction across both views.
name of each POI from the provided mockPOIs data in a scrollable list.x and y coordinates.mockPOIs are correctly displayed in the list panel.map-area at their respective x, y coordinates.Constraints
map-area div should serve as a simulated map container.x, y coordinates) is provided directly in the mock data and represents pixel offsets relative to the top-left of the map-area container. You do not need to convert latitude/longitude.Loading editor...