meta data for this page
How to fix map rendering issues in N4V for Webi using custom maplines
Anonymised summary of support ticket #122028 (2026-12-04)
Symptom
Maplines in N4V for Webi generate errors or display incorrect labels when using custom map coordinates files. Issues include: missing attributes in JSON files, labels placed incorrectly (e.g., France labeled as United States), or labels not visible for certain countries.
Environment
N4V FOR WEBI (Need4Viz extensions for SAP BusinessObjects Web Intelligence), custom maplines (JSON format), SAP BO Webi reports, browser cache.
Resolution
- Ensure the custom map coordinates file (e.g., rbi9.json) contains valid attributes for each zone: 'code' (used to map data in Webi) and 'name' (used to display the zone name on the map). Replace any 'C_ID' or 'NAME' attributes with 'code' and 'name' (lowercase).
- For labels not displayed correctly (e.g., Australia, France), manually adjust their position by adding 'hc-middle-x' and 'hc-middle-y' properties to the zone in the JSON file. These properties accept values between 0 and 1 to fine-tune label placement. Example for Australia: 'hc-middle-x': 0.87, 'hc-middle-y': 0.65.
- To remove unwanted small islands from a zone's footprint: 1) Use a GIS tool (e.g., QGIS) to import the JSON file. 2) Dissociate multipolygons into single polygons. 3) Select and delete unwanted islands. 4) Recreate multipolygons grouped by the 'code' attribute. 5) Export the simplified map and use it in the rbi9.js file.
- Clear the browser cache and refresh the Webi report to apply changes (no need to restart services).
Other resolution
If possible, use the default world map provided by the mapline application, as it is pre-configured to display labels correctly. For state-authorized maps (e.g., from MapMyIndia), manual adjustments may be required due to specific territorial requirements.