From 96373b8241a0a774a684548524e35c30186f4bdb Mon Sep 17 00:00:00 2001 From: Scott Davis Date: Thu, 12 Oct 2017 14:05:36 -0600 Subject: [PATCH 1/2] Fix reference to LngLatBounds --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index be131da..9541e3c 100644 --- a/index.js +++ b/index.js @@ -9,7 +9,7 @@ FakeControl.prototype.onRemove = function() {} module.exports = { Map: require('./classes/map'), LngLat: require('mapbox-gl/js/geo/lng_lat'), - LngLatBounds: require('mapbox-gl/js/geo/lng_lat'), + LngLatBounds: require('mapbox-gl/js/geo/lng_lat_bounds'), NavigationControl: FakeControl, ScaleControl: FakeControl, AttributionControl: FakeControl, From eb9a4742c9fef24b0196a463422dcb4ae581d070 Mon Sep 17 00:00:00 2001 From: Scott Davis Date: Mon, 16 Oct 2017 15:05:01 -0600 Subject: [PATCH 2/2] add on method to Control mock --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 9541e3c..e8f1452 100644 --- a/index.js +++ b/index.js @@ -5,6 +5,7 @@ FakeControl.prototype.addTo = function() {} /* New Control API */ FakeControl.prototype.onAdd = function() {} FakeControl.prototype.onRemove = function() {} +FakeControl.prototype.on = function() {} module.exports = { Map: require('./classes/map'),