Skip to content

Plugin to add the possibility to display a WMS layers not for a single time but for a startTime/endTime continuos interval if supported by the WMS server (like Geoserver).

Notifications You must be signed in to change notification settings

ev4debug/Leaflet.TimeDimension.WmsTimeInterval

Repository files navigation

Leaflet.TimeDimension.WmsTimeInterval

Plugin to add the possibility to display a WMS layers not for a single time but for a startTime/endTime continuos interval if supported by the WMS server (like Geoserver).

How to use:

TimeDimension WMS layer

instead of

    L.timeDimension.layer.wms

use

    L.timeDimension.layer.wms.wmsTimeInterval

TimeDimension Control

instead of

    var map = L.map('map', {
        ...
        timeDimension: true,
        timeDimensionOptions: {
            ....
        },
        timeDimensionControl: true,
    });

use

    var map = L.map('map', {
        ...
        timeDimensionWmsTimeInterval: true,
        timeDimensionOptions: {
            ....
        },
        timeDimensionControlWmsTimeInterval: true,
    });

if creating control outside map initialization, instead of

    var timeDimensionControl = L.control.timeDimension(timeDimensionControlOptions);

use

    var timeDimensionControl = L.control.timeDimension.wmsTimeInterval(timeDimensionControlOptions);

About

Plugin to add the possibility to display a WMS layers not for a single time but for a startTime/endTime continuos interval if supported by the WMS server (like Geoserver).

Resources

Stars

Watchers

Forks

Packages