From 010871b3049d6c79c6d643c28d1251c6ae51094c Mon Sep 17 00:00:00 2001 From: Bilal Saeed Date: Wed, 26 Dec 2018 07:24:57 +0100 Subject: [PATCH] invalid if check issue fixed this was a small bug i found on line 196, please have a look --- mapbox-gl-control.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapbox-gl-control.html b/mapbox-gl-control.html index 3337da8..cd73b11 100644 --- a/mapbox-gl-control.html +++ b/mapbox-gl-control.html @@ -193,7 +193,7 @@ } _createIControl(map, icontrol, icontrolOptions) { - if (!map || !icontrol || this.icontrol) return; + if (!map || !icontrol || !this.icontrol) return; // name of the control if (typeof icontrol === 'string') { this.icontrol = new mapboxgl[icontrol](icontrolOptions);