meta data for this page
How to add a custom map in N4V for Webi
Anonymised summary of support ticket #301292 (2024-06-19)
Symptom
User needs to integrate a custom GeoJSON map (e.g., districts) into N4V for Webi to display data distribution by selected zones, similar to existing predefined maps.
Environment
SAP BusinessObjects Web Intelligence with N4V FOR WEBI extension. Environment includes Webi reports, Tomcat server, and N4V components.
Resolution
- Prepare a simplified GeoJSON file: reduce polygon complexity (e.g., using tools like [url]) to keep file size under 1-2MB for optimal performance. Remove unnecessary territories (e.g., overseas regions) if not required.
- Generate the custom map setup using N4V tools: upload the simplified GeoJSON file to the N4V custom map generator to create the required setup files (JSON, SVG, or other formats).
- Install the generated setup in the N4V environment: place the generated files in the designated directory (e.g., Tomcat webapps/N4V/maps) and ensure proper permissions are set.
- Configure the map in Webi: open the Webi report, add the N4V map component, and select the newly added custom map from the list. Map the data fields (e.g., 'CODE_ARRONDISSEMENT') to the corresponding zones in the GeoJSON file.
- Validate the display: test the report to ensure the custom map renders correctly and data is properly visualized (e.g., choropleth or color ranges).
Other resolution
For large or complex maps, consider simplifying the GeoJSON file further or splitting it into smaller regions to improve performance. Refer to N4V documentation for detailed steps on managing custom maps.