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;
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.