Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

fixes #476: pixel / projected meter / lat/long conversions #853

Closed
wants to merge 39 commits into from

Conversation

incanus
Copy link
Contributor

@incanus incanus commented Feb 11, 2015

Remaining:

  • Pick up conversions work again and merge in master (over 1,000 commits).
  • Integrate old gl-cocoa#conversions changes into this repo.
  • Reduce overlap between Transform and TransformState as a result of this branch + 4603ca0 (background image support /cc @jfirebaugh).
  • Write specific tests for exercising conversion routines (will hit iOS specifically in iOS integration testing #830).
  • Merge this in (my excuse to finally try rebasing).
  • Delete old gl-cocoa#conversions to clean house.

@incanus incanus mentioned this pull request Feb 11, 2015
2 tasks
@incanus incanus mentioned this pull request Feb 12, 2015
5 tasks
@incanus
Copy link
Contributor Author

incanus commented Feb 12, 2015

Ok, I think we're set here, including migrating API across OS X, iOS, Linux, and Android.

Working on tests now.

@ljbade
Copy link
Contributor

ljbade commented Feb 13, 2015

:-D

@ljbade ljbade mentioned this pull request Feb 13, 2015
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;
Copy link
Contributor

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()?

Copy link
Contributor Author

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@incanus incanus mentioned this pull request Feb 13, 2015
@incanus
Copy link
Contributor Author

incanus commented Feb 14, 2015

This is now working, so I'm inclined to merge it once it passes Travis and write tests in master.

incanus added a commit that referenced this pull request Feb 16, 2015
fixes #476 & #853: pixel/meter/latlng conversion routines in core & iOS
@incanus incanus closed this Feb 16, 2015
@incanus incanus deleted the conversions branch February 16, 2015 18:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants