Leaflet.TimeDimension icon indicating copy to clipboard operation
Leaflet.TimeDimension copied to clipboard

Object returned by module on an ES6 environment

Open keul opened this issue 6 years ago • 0 comments

Maybe partially related to #124.

There is a reason why the UMD bundle returns L.TimeDimension instead of L.timeDimension?

https://github.com/socib/Leaflet.TimeDimension/blob/9ef51eb8d6d2c7ad1bddf45b1110f983ea978d00/dist/leaflet.timedimension.src.js#L2251

From issue 124 I went through PR https://github.com/socib/Leaflet.TimeDimension/pull/129 so I know this came from a suggested way to do from Leaflet documentation, but in your case every usage example in the documentation pass through using L.timeDimension.

Getting back "only" the TimeDimension is pretty useless, so you must always rely on the global L object.

keul avatar Nov 26 '19 15:11 keul