Closed prasanjitdash closed 5 years ago
Folks, never mind. I just called map_init separately before the document.ready function, and it works.
Here is the snippet if someone else is looking for. I am closing the issue. This is a very powerful plugin for leaflet and if the full potential can be understood, it will be useful in many ways. Thanks
Hi Folks, it seems I'm stuck with a known issue and can't figure out.
Can TimeDimension read tiles with the template given below from NASA EPSG 4326 WMTS: var nasagibs_epsg4326_template = '//gibs-{s}.earthdata.nasa.gov/wmts/epsg4326/best/' +'{layer}/default/{time}/{tileMatrixSet}/{z}/{y}/{x}.';
Essentially I need a return with YYYY-MM-DD for {time}, but currently its returning ISO UTC times with THH:MM:SS:000
My main js runs on document.ready() mode. As shown in examples 11, 12, I tried using L.Control.TimeDimensionCustom, but Chrome debugger shows 'Uncaught TypeError'. Seems like the trouble is while using L.Control.TimeDimensionCustom within a document.ready() function.
Has anyone a working example using this to retrieve YYYY-MM-DD tiles using a document.ready () call? Thanks
An example call