Skip to main content

Zone label placement logic

llppa-2124
Original Poster

I am trying to understand what determines the placement of the label for a zone on the map. We have a customer that uses these zones to easily locate assets according to their internal sectors. It's not practical for this northernmost zone's label to be way up there near the northernmost point, yet it always is (in 2 different environments). I thought it might be uneven point density skewing the geometric centroid point north, but a drastically simplified polygon (~900 points instead of ~23000) positions the label at exactly the same spot. It doesn't seem to be related to the arithmetic mean point either (for the same reasons). So how does Geotab decide where the label goes? How can I help nudge it down near the arithmetic or geometric centers?

image

Join the conversation

You need to be logged in to reply to this post and participate in the Geotab Community discussions.

Top Answers

EishiFUN
Geotabber

Just wanted to add this since I got this answer and gave it to Felipe on Reddit. If there is anything else you want me to ask them please let me know: https://www.reddit.com/r/GEOTAB/comments/1sx25hx/zone_label_placement_logic/

4 Replies

 

Hi @llppa-2124​  have you tried zooming in on the map? I think if you zoom in on the area, the label will adjust according to the location.

llppa-2124
Original Poster

Thanks for your suggestion Cristian, but no it does not. That's the problem, really, because nothing really ever happens (for this fleet) that far north, so they never pan the map that high and the result is that the label is never visible at all. Normally this would not matter that much, because on mouseover event, there is another popover that follows the cursor and identifies the zone, but here this customer has smaller sectors overlaid on top of these regions, so the label that gets shown is for the sector (which is good), but the region is not visible at all unless we zoom way out, of pan way up.

image

I always assumed that it used the Centroid for the label as I used to sometimes see the label floating miles away from the zone for roads that had a significant curve to them. That doesn't seem to be the case any more though, I just double checked some zones with a similar shape and they all have the label inside part of the zone now. I can't see obvious rhyme or reason where the label shows up though, some of them are towards the top and some at the bottom.

EishiFUN
Geotabber

Just wanted to add this since I got this answer and gave it to Felipe on Reddit. If there is anything else you want me to ask them please let me know: https://www.reddit.com/r/GEOTAB/comments/1sx25hx/zone_label_placement_logic/

Still have questions?