Fix conflicts in Heightgraph integration

This commit is contained in:
alexcojocaru 2020-10-23 18:57:07 -07:00
parent 77ed28cb76
commit bd0679d15c
4 changed files with 112 additions and 8 deletions

View file

@ -0,0 +1,28 @@
diff --git a/node_modules/leaflet.heightgraph/dist/L.Control.Heightgraph.js b/node_modules/leaflet.heightgraph/dist/L.Control.Heightgraph.js
index 122c9ac..1a966af 100644
--- a/node_modules/leaflet.heightgraph/dist/L.Control.Heightgraph.js
+++ b/node_modules/leaflet.heightgraph/dist/L.Control.Heightgraph.js
@@ -1282,10 +1282,10 @@ function schedule(node, name, id, index, group, timing) {
group: group, // For context during callback.
on: emptyOn,
tween: emptyTween,
- time: timing.time,
- delay: timing.delay,
- duration: timing.duration,
- ease: timing.ease,
+ time: timing ? timing.time : 0,
+ delay: timing ? timing.delay : 0,
+ duration: timing ? timing.duration : 0,
+ ease: timing ? timing.ease : null,
timer: null,
state: CREATED
});
@@ -3062,7 +3062,7 @@ function initRange(domain, range) {
var prefix = "$";
-function Map() {}
+// function Map() {}
Map.prototype = map.prototype = {
constructor: Map,