The order in which each label in a layer will go through this process is described in detail below in Label hierarchy. This exception makes map rendering more efficient, but can sometimes be surprising. If a user changes the map zoom after a label has been placed, the map renderer will try to place the label in its original position first before moving on to the rest of the positions specified in the text-variable-anchor array. If none of these anchor positions can be used, the map will not display the label. And finally, if the label could not fit on the map anchored at the top or bottom, it would try anchoring on the left side. Then, if there wasn't room for the label at that position, it would try to place the label anchored at the bottom. The map renderer tries to place the label at the positions in this list in the provided order of the array at collision detection time.įor example, in a layer with text-variable-anchor set to, the map renderer would first try to place each label anchored at the top. Text-variable-anchor accepts an array of text-anchor positions as the input value. If set to true, other symbols can be visible even if they collide with the text or icon.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |