* Convert a user-space point to a map coordinate * * @param point Point * @param [point.x] X * @param [point.x] Y * * @return Promise Promise with the coordinate ({ latitude: Number, longitude: Number })
(point: Point)
| 1026 | * @return Promise Promise with the coordinate ({ latitude: Number, longitude: Number }) |
| 1027 | */ |
| 1028 | coordinateForPoint(point: Point): Promise<LatLng> { |
| 1029 | if (this.fabricMap.current) { |
| 1030 | return this.fabricMap.current.getCoordinateForPoint(point); |
| 1031 | } |
| 1032 | return Promise.reject('coordinateForPoint not supported on this platform'); |
| 1033 | } |
| 1034 | |
| 1035 | /** |
| 1036 | * Get markers' centers and frames in user-space coordinates |
nothing calls this directly
no test coverage detected