Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Adding labels to the map

Brian Kircher edited this page Apr 9, 2019 · 3 revisions

The labeling support allows for displaying the names of cities and neighborhoods on the map.

The MapLabel component is used to transfer label text to the GameObject. How this label is rendered is up to you, but the best approaches would involve using one of Unity's various text components, e.g. TextMeshPro.

Refer to the sample project to see a concrete example of such a prefab.

After the MapLabel prefab has been created, a MapLabelLayer component must be added to the MapRenderer. Then the MapLabel prefab is associated with the corresponding field in the MapLabelLayer.

Map Label Layer

Only one MapLabelLayer component can be added to a MapRenderer GameObject.


Clone this wiki locally