if (this.Autorefresh==true) { //autorefresh mapURL.AppendFormat("&t={0:hhmmss}", DateTime.Now); } else if (this.VisibleTimeExtent != null) { if (this.VisibleTimeExtent.Start == this.VisibleTimeExtent.End) { mapURL.AppendFormat("&TIME={0:yyyy-MM-ddTHH:mm:ss.sssZ}", this.VisibleTimeExtent.Start); } else { mapURL.AppendFormat("&TIME={0:yyyy-MM-ddTHH:mm:ss.sssZ}/{1:yyyy-MM-ddTHH:mm:ss.sssZ}", this.VisibleTimeExtent.Start, this.VisibleTimeExtent.End); } }
public override void GetUrl(Envelope extent, int width, int height, DynamicMapServiceLayer.OnUrlComplete onComplete) { ... }
mapURL.AppendFormat("&t={0:hhmmss}", DateTime.Now);
HtmlPage.Window.AttachEvent("onblur", stopAutoRefresh);
featureLayer.Update(); featureLayer.Visible = false; featureLayer.Visible = true;
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.