socib / Leaflet.TimeDimension

Add time dimension capabilities on a Leaflet map.
MIT License
435 stars 139 forks source link

ES6 And Leaflet 1.2.0 compatibility? #111

Closed litzebauer closed 7 years ago

litzebauer commented 7 years ago

I can't get Leaflet.TimeDimension to work using Webpack and Leaflet 1.2.0. L.nonTiledLayer is undefined.

I have tried loading the following ways with the same results:

require('iso8601-js-period');
require('leaflet');
require('leaflet-timedimension');
import 'iso8601-js-period';
import * as L from 'leaflet';
import 'leaflet-timedimension';
litzebauer commented 7 years ago

I had to install Leaflet.NonTiledLayer and do the following:

import 'iso8601-js-period';
import 'leaflet';
import 'leaflet-timedimension';