Select to view content in your preferred language

Time-aware layer was not recognized by Time-Slider widget when added using LocalLayer widget

1990
5
Jump to solution
12-16-2016 12:41 PM
RoseZhou
Deactivated User

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

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Rose,

   The Local Layer widget does not support time aware layer as of yet.

View solution in original post

5 Replies
RobertScheitlin__GISP
MVP Emeritus

Rose,

   The Local Layer widget does not support time aware layer as of yet.

RoseZhou
Deactivated User

Thanks Robert for confirming this.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Don't forget to mark this question as answered by clicking on the "Correct Answer" link on the reply that answered your question.

0 Kudos
RichBell
Regular Contributor

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();
            }
          }
        }));
      },

0 Kudos
RoseZhou
Deactivated User

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

0 Kudos