| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
| |
Once the algorithm finds the center of the line, if placement is
not possible, do not place the anchor.
Previous code was trying to continue place the label beyond the center
of the segment.
Fixes #15139.
|
|
|
|
|
| |
- Remove unused/vestigial 'maxCameraDistance'
- Create a single collision circle for line labels that are less than half the width of a collision circle
|
| |
|
| |
|
|
|
|
| |
Ports https://github.com/mapbox/mapbox-gl-js/pull/3763 and https://github.com/mapbox/mapbox-gl-js/pull/3806.
|
|
|
|
|
|
|
| |
- puts function definitions in a namespace ... {} rather than using namespace ...;
- remove trailing whitespace
- add trailing newline
- protect SQL statements from being formatted by clang-format
|
|
|
|
| |
fix #4416
|
|
|
|
|
| |
Also introduced GeometryCoordinates (vector of GeometryCoordinate
items), to better cope with GeometryCollection.
|
|
|
|
|
|
|
| |
This skips anchors if there is not enough room before the beginning or
end of the line for the icon to fit.
-js: https://github.com/mapbox/mapbox-gl-js/pull/2077/files
|
|
|
|
|
| |
Convert all geometries to the maximum extent supported by our buffers
and then use that constant extent everywhere else.
|
| |
|
| |
|
|
|
|
| |
some functions defined in <cmath>, as well as std::to_string aren't available on GNU's STL for some platforms, e.g. Android
|
|
|
|
|
|
| |
Before C++11, std::list's implementation of size was O(n). It should be
all O(1) now, but it is probably still a good idea to use empty() to
emphasize the intend.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Added a filter to remove anchors with the same text that are too close to each other.
Updates to spacing and offset of anchor placement along lines:
Takes into account icon size for calculating label length.
Recalculates spacing for long labels.
Adjusts offsets to first anchors if line is continued from outside the tile boundary.
|
|
|
|
| |
This fixes many small render test and collision differences.
|
| |
|
|
|