Table of Contents

How to customize the position and value of the zone label on your Mapline/Drillmap/Webmap

Source : Support Need4Viz — KB #100 — Category : Mapline, WebMapline & Drilldown mapline

Symptom

Environment

Resolution

Various properties can be added in the geojson file of your custom map in order to be used in the N4V Mapline/Webmap/Drillmap components.

The standard properties used in the N4V components are the following :

You can also add other labels as you wish to display a different area name according to your needs. For example, if in some cases you want to display a short name (abbreviated, lowercase, …) on a slightly smaller map, you can add one or more different properties:

Ex. of geojson with custom properties :

When you have added the additional zone label properties, you must declare them on the N4V engine side, in the \Need4Viz\nodejs\node_modules\custom_element\ce_libs\resources\list_maps_codes.js file:

After restarting the N4V services, you can then use these labels in the component (instead of the default “name” field):