Repository navigation
Map API inconsistences - #2994
brunoabinader wants to merge 0 commit into
Conversation
9be82e6 to
835a2ed
Compare
There was a problem hiding this comment.
This line mutates the CameraOptions for local purposes. There are several instances of this in Map and Transform, which is why the CameraOptions was being passed in by value.
There was a problem hiding this comment.
This method should receive by const reference and copy before resetting.
835a2ed to
6845756
Compare
6845756 to
aa88576
Compare
|
@brunoabinader @1ec5 for future reference if a PR does not get "merged" status properly, you only need to force push to the branch with a appropriately rebased tree. GH will then fixup closed PR to merged status. This works even if you merge to master and forget to update the branch first after rebase. |
|
@jfirebaugh you might also find ^ tip handy if you spot a broken PR merge |
|
@ljbade, actually, I think that's what happened here, which is why the PR lists zero commits. |
We currently have some API inconsistencies in our Map API:
double x, double y) or insidevec2<double>structs - seeMap::scaleByandMap::setLatLngas examples;constfor return types and pass-by-value, pass-by-const-ref, pass-by-ref in function parameters;std::nan()inTransformfunctions;For the pixel handling, I propose a
PrecisionPointstruct with two double x and y members in the same fashion as the other structures ininclude/mbgl/util/geo.hpp.These changes shouldn't affect current behavior, but might break API compatibility with Android and iOS platforms.
/cc @mapbox/gl @mapbox/mobile