socib / Leaflet.TimeDimension

Add time dimension capabilities on a Leaflet map.
MIT License
433 stars 138 forks source link

stuck at example 12 heatmap #220

Open 2803media opened 1 year ago

2803media commented 1 year ago

Hi I have a simple geojson file like that:

  "type": "FeatureCollection",
  "metadata": {
    "total": 2073,
    "name": "BEAL",
    "event": "birth"
  },
  "features": [
    {
      "type": "Feature",
      "properties": {
        "time": "1920-03-15"
      },
      "geometry": {
        "type": "Point",
        "coordinates": [
          4.866667,
          45.516667
        ]
      }
    },
    {
      "type": "Feature",
      "properties": {
        "time": "1941-06-14"
      },
      "geometry": {
        "type": "Point",
        "coordinates": [
          3.683333,
          45.616667
        ]
      }
    },
    {
      "type": "Feature",
      "properties": {
        "time": "1949-07-16"
      },
      "geometry": {
        "type": "Point",
        "coordinates": [
          4.866667,
          45.516667
        ]
      }
    },

And I want to use it as a heatmap like the example 12 but it's too complicate with the SODA API thing.

Is there somewhere an simple example of a dynamic heatmap based on a single geojson file?

Thanks