* Convert a map coordinate to user-space point * * @param coordinate Coordinate * @param [coordinate.latitude] Latitude * @param [coordinate.longitude] Longitude * * @return Promise Promise with the point ({ x: Number, y: Number })
(coordinate: LatLng)
| 1010 | * @return Promise Promise with the point ({ x: Number, y: Number }) |
| 1011 | */ |
| 1012 | pointForCoordinate(coordinate: LatLng): Promise<Point> { |
| 1013 | if (this.fabricMap.current) { |
| 1014 | return this.fabricMap.current.getPointForCoordinate(coordinate); |
| 1015 | } |
| 1016 | return Promise.reject('pointForCoordinate not supported on this platform'); |
| 1017 | } |
| 1018 | |
| 1019 | /** |
| 1020 | * Convert a user-space point to a map coordinate |
nothing calls this directly
no test coverage detected