meta data for this page
How to add custom maps in N4V for Webi
Anonymised summary of support ticket #769726 (2023-12-12)
Symptom
Custom maps (Mapline or Drillmap) are not displayed or appear blank in Webi reports after configuration.
Environment
N4V for Webi (SAP BusinessObjects Web Intelligence), Tomcat server, custom_element module, JSON configuration files (_list_gendrillmaps.json, list_maps_codes.js, corseX.js, etc.).
Resolution
- 1. Prepare a valid GeoJSON file for the custom map (ensure correct coordinates, properties, and unique identifiers).
- 2. For Mapline: Add the map to the setup via the provided setup file (e.g., corse1.js) and update _list_gendrillmaps.json with the map index (1-24).
- 3. For Drillmap: Use index 25 for the level 1 map (e.g., corse25.js). Add 'hc-key' in level 1 features pointing to level 2 map names (e.g., corse2, corse3).
- 4. Update list_maps_codes.js with required variables (e.g., exports.corse25, exports.corse251, exports.corse25_names, exports.corse251_names).
- 5. For label updates: Modify corseX.js and increment version_files_id in config.js (e.g., 2023211) to force cache refresh. Restart N4V services (pm2 start all).
- 6. For blank maps: Verify GeoJSON structure (commas, coordinates, variable names) and test in QGIS or an online validator before integration.
- 7. For missing labels on zones without data: Enable 'Display labels for subdivisions without data' in extended settings.
Other resolution
Ensure GeoJSON files are lightweight (<7MB) to avoid performance issues. Drillmap requires 1 level 1 map + N level 2 maps (each level 2 map counts as a separate token). Mapline maps use tokens 1-24, Drillmap uses token 25.