meta data for this page
How to ensure consistent map overlays in N4V for Webi
Anonymised summary of support ticket #319604 (2022-04-01)
Symptom
Maps (EPCI, CTEF, departments) do not perfectly overlap due to differences in geographic boundaries, particularly around islands or peripheral zones.
Environment
N4V for Webi (Need4Viz extensions) with custom GeoJSON maps in SAP BusinessObjects Web Intelligence reports. Uses Tomcat server for map rendering.
Resolution
- Ensure all GeoJSON files use the same geographic boundaries (same level of detail) for consistent overlay.
- Simplify map contours to reduce file size and improve rendering performance (e.g., reduce contour definition to 30% of original).
- Remove peripheral islands or small zones from department maps to align with EPCI and CTEF boundaries.
- Replace the existing map files in the Tomcat directory (e.g., `tomcat/webapps/N4VCustomElements/res/js/highcharts/maps_custom/`) with the updated GeoJSON files.
- Clear the browser cache and refresh the HTML page (e.g., `departement.html`) to apply changes without regenerating the report in Webi.
Other resolution
If minor discrepancies persist, adjust the map boundaries in the GeoJSON files to match exactly. For visual consistency, ensure the projection and simplification algorithms are applied uniformly across all maps.