src/factories: Customizing Kepler.gl Components
The src/factories directory houses custom implementations of Kepler.gl components, allowing the demo app to tailor the user experience and functionality to its specific needs. These factories modify the default behavior of Kepler.gl components, providing a more streamlined and customized interface for data exploration and visualization.
1. replaceLoadDataModal
This factory replaces the default Kepler.gl data loading modal with a custom implementation. The custom modal provides a more user-friendly interface for loading data from various sources, including:
- Sample Data: Allows users to select from a list of pre-defined sample datasets.
- Remote Data: Enables users to load data from remote URLs.
- Cloud Providers: Integrates with cloud providers like Dropbox to load data.
The custom modal simplifies the data loading process, making it easier for users to access and visualize data from different sources.
2. replaceMapControl
This factory replaces the default Kepler.gl map control panel with a custom implementation. The custom map control panel provides a more streamlined and intuitive interface for controlling the map's behavior, including:
- Panning and Zooming: Offers controls for panning and zooming the map.
- Layer Management: Allows users to manage the visibility and order of layers on the map.
- Data Exploration: Provides tools for exploring and interacting with data points on the map.
The custom map control panel enhances the user experience by providing a more focused and efficient way to interact with the map.
3. replacePanelHeader
This factory replaces the default Kepler.gl panel header with a custom implementation. The custom panel header provides a more visually appealing and informative header for the panel, including:
- Custom Title: Displays a custom title for the panel.
- Additional Information: May include additional information about the panel's content or functionality.
The custom panel header improves the visual appeal and clarity of the panel, enhancing the overall user experience.