-
Hello, I'm trying to add multiple layers to my terriamap instance, each one displaying data related to a date.
the layer are displayed just fine, but i would like them to appear only when the timeline is on the related date.
But it only affect the bounds of the timeline and the date at which the cursor is placed. By adding :
The layer was invisible before the desired datetime, but visible afterwards until the end of the timeline, and the layer had its style disabled. After looking at the documentation, i really don't know what is the option i'm looking for. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi @Sivloc, If I understand correctly, you would like to show only features with datetime as the chosen timeline date. Here is a sample of how this can be done with the bike_racks dataset available in our CI catalog: http://ci.terria.io/main/#share=s-nC98LNJ5aTxZxmdXEKsJxdsdcal. If you move through the datetime selector in the workbench, you will see features appear and disappear from the map. {
"id": "DL4Av6wY5h",
"type": "geojson",
"name": "GeoJSON Test",
"url": "test/bike_racks.geojson",
"initialTimeSource": "start",
"isPaused": true,
"styles": [
{
"id": "number_of_",
"color": { "colorPalette": "Reds" },
"time": {
"timeColumn": "inspection",
"endTimeColumn": "",
"idColumns": ["asset_numb"],
"isSampled": true,
"displayDuration": 1440,
"spreadStartTime": false,
"spreadFinishTime": false
},
"hidden": false
}
]
} |
Beta Was this translation helpful? Give feedback.
-
Hi @zoran995, thanks for your answer. My datetime format is "YYYY-MM-DDThh:mm:ss" if that matters. |
Beta Was this translation helpful? Give feedback.
To show a timeline, you need to have features with different times. We won't show a timeline option if all features have the same date. I have updated your sample to have different dates, and it is working with the following catalog definition:
Here is the link t…