-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fixes #476: pixel / projected meter / lat/long conversions #853
Conversation
… conversions Conflicts: src/map/transform.cpp
…ordinate conversions
Conflicts: ios/mapbox-gl-cocoa
Conflicts: common/glfw_view.cpp include/mbgl/map/map.hpp include/mbgl/map/transform.hpp ios/mapbox-gl-cocoa src/map/map.cpp src/mbgl/map/transform.cpp styles test/headless.cpp
Conflicts: src/mbgl/renderer/painter.cpp
Ok, I think we're set here, including migrating API across OS X, iOS, Linux, and Android. Working on tests now. |
:-D |
void setLonLatZoom(double lon, double lat, double zoom, std::chrono::steady_clock::duration duration = std::chrono::steady_clock::duration::zero()); | ||
void getLonLatZoom(double &lon, double &lat, double &zoom) const; | ||
void setLatLngZoom(LatLng latLng, double zoom, std::chrono::steady_clock::duration duration = std::chrono::steady_clock::duration::zero()); | ||
void getLatLngZoom(LatLng &latLng, double &zoom) const; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove this method and use separate calls to getLatLng()
and getZoom()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think so. This was just ported for historical reasons. Good reason to scrap it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now working, so I'm inclined to merge it once it passes Travis and write tests in |
Remaining:
conversions
work again and merge inmaster
(over 1,000 commits).gl-cocoa#conversions
changes into this repo.Transform
andTransformState
as a result of this branch + 4603ca0 (background image support /cc @jfirebaugh).gl-cocoa#conversions
to clean house.