Information

This example use an extra Leaflet.TimeDimension class: L.TimeDimension.Layer.TileLayer.Portus.

Portus wave forecast is served as different TileLayers with datetime as a part of the URL (in the format yyyymmddhh). The class is constructing a new TileLayer taking the URL of the base layer as a template (note the {d} and {t} placeholder).

Code

Code of L.TimeDimension.Layer.TileLayer.Portus

Example 15: Oil Spill simulation
Example 17: Basic GeoJSON usage