Skip to content

Conversation

dagatsoin
Copy link

Exposing:
convertPoint:toCoordinateFromView:
convertCoordinate:toPointToView:

Usage:
LatLng convertCoordinate(latLng: LatLng, callbackSuccess: function, callbackError: function)
Point convertPoint(point: Point, callbackSuccess: function, callbackError: function)

Returns an error if a point absolute value < 0 or if coords absolute value > 90 or 180.

Also added two button in the demo.html which convert center of the screen point<->coordinates.

@EddyVerbruggen
Copy link
Contributor

Looks great but I can't merge it since your fork is behind. Can you update it perhaps and resubmit the PR?

You can sync with the upstream (this repo) by executing these commands in the Terminal from within your fork's folder:

git remote add upstream https://github.com/Telerik-Verified-Plugins/Mapbox
git fetch upstream
git merge upstream/master
git push origin master

…gGeoCoords

# Conflicts:
#	demo/index.html
#	src/ios/CDVMapbox.h
#	src/ios/CDVMapbox.m
@dagatsoin
Copy link
Author

That was the occasion for my ever first conflict resolution and pull request. Good day :) Next step will be exposing the regionWillChange callback.

@EddyVerbruggen EddyVerbruggen merged commit 593c51b into Telerik-Verified-Plugins:master Mar 26, 2016
@dagatsoin dagatsoin deleted the feature/convertingGeoCoords branch March 26, 2016 15:49
@EddyVerbruggen
Copy link
Contributor

Looks great! I've happily merged and tested your changed 👍

Regarding offline support and other extensions of this plugin: please check #22 and see if there's some way to cooperate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants