This feature integrates OpenStreetMap into your application, allowing you to display interactive maps. It provides a configurable map setup, including tile layers, zoom levels, and attribution controls. The map is initialized with specific settings and can be customized through the configuration interface.
- Step-by-Step Instructions:
- Ensure the
Config
class is properly set up with the required parameters such asid
,mapElement
,containerElement
, etc. - Use the
createMap
function fromjs/map.ts
to initialize the map with the desired configuration. - Customize the map settings through the
ConfigInterface
to adjust zoom levels, map style, and attribution position.
- Ensure the
- Capabilities/Permissions Required: No specific permissions are required to use this feature.
- Settings Location: Configuration settings are managed through the
Config
class injs/setupMap/config/config.ts
.
- Users will see an interactive map on the frontend, which can be panned, zoomed, and interacted with. The map will display tiles based on the configured style and provide attribution information.
- This feature was implemented to provide a seamless way to integrate interactive maps into your application. It solves the problem of manually setting up and configuring map tiles and controls.
- It benefits administrators by centralizing map configuration and reducing the need for manual setup. End users benefit from an enhanced interactive experience with the map.
✅ Centralizes functionality or information.
✅ Improves the user experience by providing an interactive and customizable map.
✅ Reduces manual work for administrators by automating map setup and configuration.
- Author: Helsingborg Stad
- Initial Release Date: February, 2025