socib / Leaflet.TimeDimension

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

cannot read property 'querySelectorAll' of null at e.getDefaultTimeFromCapabilities in leaflet.timedimension.layer.wms.js #161

Open ISURU9900 opened 5 years ago

ISURU9900 commented 5 years ago

I adopted the code according to my webmap. but this error comes up with it in the Developer tools of the browser.

      ncaught TypeError: Cannot read property 'querySelectorAll' of null
      at e._getDefaultTimeFromCapabilities (leaflet.timedimension.layer.wms.js:324)

circle markers can be added bu they don't show any values of the wms layer in geoserver. error comes up with leaflet.timedimension.layer.wms.timeseries.js

        Uncaught TypeError: Cannot read property 'min' of undefined
        at e._loadData (leaflet.timedimension.layer.wms.timeseries.js:115)
        at e.addPositionMarker (leaflet.timedimension.layer.wms.timeseries.js:111)
        at e.<anonymous> (leaflet.timedimension.layer.wms.timeseries.js:32)
        at e.fireEvent (leaflet.js:6)
        at e._fireMouseEvent (leaflet.js:6)
        at HTMLDivElement.s [as _leaflet_dblclick2] (leaflet.js:8)

any idea how to make it work?

DrPDash commented 5 years ago

I don't have a solution but see a similar issue for WMTS tiles from NASA using the template var nasagibs_epsg4326_template = '//gibs-{s}.earthdata.nasa.gov/wmts/epsg4326/best/' + '{layer}/default/{time}/{tileMatrixSet}/{z}/{y}/{x}.';

The Error Message in the Console is as below: "leaflet.timedimension.layer.wms.js:329 Uncaught TypeError: Cannot read property 'querySelectorAll' of null at e._getDefaultTimeFromCapabilities (leaflet.timedimension.layer.wms.js:329) at e. (leaflet.timedimension.layer.wms.js:268)"

It would be great if someone can give some thoughts and help us understand the meaning of the error. In my case the display is working but the console is filled with these error messages for each date change. Thanks