socib / Leaflet.TimeDimension

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

getting all items for a selected period? #173

Open lisenko72 opened 5 years ago

lisenko72 commented 5 years ago

Is it possible, when choosing a period of one year, to receive all elements associated with this year when displayed? Currently, when selecting a 1 year period, not all records related to that year are displayed.

this.map.options['timeDimensionOptions'] =
     {
         timeInterval: "1989/1991",
         period: "P1Y"
     };

 let tdWmsLayer = (L as any).timeDimension.layer.wms(this.selectedLayer.mapLayer.layer, {
      requestTimeFromCapabilities: true,
      //updateTimeDimension: true,
      setDefaultTime: true
    });

in the request, the times parameter is sent completely, when in theory you can only send a year. Or am I doing something wrong?