From e34cad9ebf7a8e5f449947c1d8d10500b922d573 Mon Sep 17 00:00:00 2001 From: Jan-Erik Vinje Date: Thu, 10 Nov 2016 09:20:10 +0100 Subject: [PATCH] Make x and y accessible on mapboxgl.Point type Make x and y accessible on mapboxgl.Point type We are using mapbox gl in Norkart, but sometimes have to edit the typescript definitions ourselves. This one was at the core so I think everyone should have a better version. --- mapbox-gl.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mapbox-gl.d.ts b/mapbox-gl.d.ts index 47bf5ba..59d3a41 100644 --- a/mapbox-gl.d.ts +++ b/mapbox-gl.d.ts @@ -583,6 +583,10 @@ declare namespace mapboxgl { // Todo: Pull out class to seperate definition for Module "point-geometry" export class Point { constructor(options?: Object); + + x:number; + + y:number; clone(): Point;