-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New methods to convert between LatLng and Point #1851
New methods to convert between LatLng and Point #1851
Conversation
ee835a9
to
da2723a
Compare
@rborn can we get this moving also? This is very useful and simply exposes basic functionality |
docs/mapview.md
Outdated
@@ -71,6 +71,8 @@ To access event data, you will need to use `e.nativeEvent`. For example, `onPres | |||
| `fitToElements` | `animated: Boolean` | | |||
| `fitToSuppliedMarkers` | `markerIDs: String[]`, `animated: Boolean` | If you need to use this in `ComponentDidMount`, make sure you put it in a timeout or it will cause performance problems. | |||
| `fitToCoordinates` | `coordinates: Array<LatLng>, options: { edgePadding: EdgePadding, animated: Boolean }` | If called in `ComponentDidMount` in android, it will cause an exception. It is recommended to call it from the MapView `onLayout` event. | |||
| `pointForCoordinate` | `coordinate: LatLng` | Converts a map coordinate to a user-space point. Returns a `Promise<Point>`. |
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.
Could you please explain a little more what user-space
is? (I suppose we talk view coordinates, right?)
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 it means view-coordinates...
@danielgindi thank you 🤗 |
* New methods to convert between LatLng and Point * Clarification for `pointForCoordinate` and `coordinateForPoint`
* New methods to convert between LatLng and Point * Clarification for `pointForCoordinate` and `coordinateForPoint`
…-maps#1851)" This reverts commit d7226ab.
Right here, right now, explaining this is a "more is less" situation :-)