Tutorial - Text and Points
Create a map and define some data. Create a feature layer for the points and add the points to it.
Create another layer for the text feature. We need a separate layer as the text feature won't use the same renderer as the point feature.
Add a text feature to the layer.
Many text styles can be changed, including adding an offset so the text won't overlap the points.
Multiline and word-wrapping aren't directly supported, but can be simulated by adding additional text features.
This also shows that the text value can be set as a style property.
Mafunzo - Nakala na Points Kuunda ramani na kufafanua baadhi ya data. Kuunda kipengele safu kwa pointi na kuongeza pointi kwa hilo. Kuunda safu nyingine kwa ajili ya kipengele maandishi. Tunahitaji safu tofauti kama kipengele maandishi si kutumia renderer sawa na kipengele uhakika. Kuongeza kipengele maandishi kwa safu. Aina nyingi za maandishi zinaweza kubadilishwa, ikiwa ni pamoja na kuongeza offset ili maandishi yasipate kuingiliana na pointi. Multiline na neno-wrapping si moja kwa moja mkono, lakini inaweza kuwa simulated kwa kuongeza vipengele vya ziada maandishi. Hii pia inaonyesha kwamba thamani ya maandishi inaweza kuweka kama mali style.