@ceresimaging/react-mapbox-gl
Advanced tools
Comparing version 6.0.3 to 6.0.4
@@ -128,2 +128,3 @@ var __extends = (this && this.__extends) || (function () { | ||
} | ||
console.log('Hi! Map is: ', map); | ||
Object.entries(eventToHandler).forEach(function (_a) { | ||
@@ -130,0 +131,0 @@ var event = _a[0], propName = _a[1]; |
@@ -140,2 +140,3 @@ "use strict"; | ||
} | ||
console.log('Hi! Map is: ', map); | ||
Object.entries(eventToHandler).forEach(function (_a) { | ||
@@ -142,0 +143,0 @@ var event = _a[0], propName = _a[1]; |
{ | ||
"name": "@ceresimaging/react-mapbox-gl", | ||
"version": "6.0.3", | ||
"version": "6.0.4", | ||
"description": "A React binding of mapbox-gl-js", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -227,11 +227,13 @@ import * as React from 'react'; | ||
if (!map.getLayer(id)) { | ||
console.log(`map.addLayer(${layer.id}, ${before})`) | ||
console.log(`map.addLayer(${layer.id}, ${before})`); | ||
map.addLayer(layer, before); | ||
} else if (before) { | ||
console.log(`map.moveLayer(${id}, ${before})`) | ||
console.log(`map.moveLayer(${id}, ${before})`); | ||
map.moveLayer(id, before); | ||
} else { | ||
console.log(`map.noneOfTheAbove(${id})`) | ||
console.log(`map.noneOfTheAbove(${id})`); | ||
} | ||
console.log('Hi! Map is: ', map); | ||
(Object.entries(eventToHandler) as Array< | ||
@@ -238,0 +240,0 @@ [keyof EventToHandlersType, keyof LayerEvents] |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
497892
9660