Hi, I have a time aware map service. When added it to ArcGIS online web map, it works very well. But when using WAB developer edition and added the layer using LocalLayer widget, this layer is not recognized by the Time-Slider widget. Any ideas?
Thanks
Solved! Go to Solution.
Rose,
The Local Layer widget does not support time aware layer as of yet.
Rose,
The Local Layer widget does not support time aware layer as of yet.
Thanks Robert for confirming this.
Don't forget to mark this question as answered by clicking on the "Correct Answer" link on the reply that answered your question.
You may want to review this code change. I use Local Layer 2.2 and Time Slider 1.4.
TIME AWARE LAYERS is the "Group Heading"
Property Transfers_0 is the Layer Name and ID
Hope this helps!
Time slider Version 1.4
onOpen: function() {
this._initLayerInfosObj().then(lang.hitch(this, function() {
//BELL CHANGE
if(!this.layerInfosObj.getLayerInfoById('TIME AWARE LAYERS','Property Transfers_0').isVisible()){
this.layerInfosObj.getLayerInfoById('TIME AWARE LAYERS','Property Transfers_0').setTopLayerVisible(true);
}
if (!this.hasVisibleTemporalLayer()) {
html.setStyle(this.noTimeContentNode, 'display', 'block');
html.setStyle(this.timeContentNode, 'display', 'none');
this._showed = true;
} else {
if (!this._showed) {
this.showTimeSlider();
}
}
}));
},
Rich:
Thank you very much.
I am using LocalLayer widget ver2.0 and TimeSlider widget ver2.1. I added the code you suggested, But still does not work.
I really like the LocalLayer widget. Any idea how to make it to support time aware layer?
Any ideas will be great!
Thanks in advance
Rose