A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.arcgis.com/en/javascript/jsapi/temporalrenderer.html below:

TemporalRenderer (legacy) | API Reference | ArcGIS API for JavaScript 3.46

<Renderer> latestObservationRenderer Optional Renderer for the most current observations.

In the snippet below RouteID is the field that contains the trackID for the feature layer this is used to display the latest observation for the specified tracks.

require([
  "esri/renderers/UniqueValueRenderer", "esri/symbols/PictureMarkerSymbol", ... 
], function(UniqueValueRenderer, PictureMarkerSymbol, ... ) {
  var latestObservationRenderer = new UniqueValueRenderer(defaultSymbol, "RouteID");
  latestObservationRenderer.addValue(1,new PictureMarkerSymbol('images/runnergreen.png',20,20));
  latestObservationRenderer.addValue(2,new PictureMarkerSymbol('images/runnerblue.png',20,20));
  latestObservationRenderer.addValue(3,new PictureMarkerSymbol('images/runnerred.png',20,20));
  ...
});
<Renderer> trackRenderer Optional Renderer for the tracks. A track is a collection of events that share a common track ID. A track line is a graphic line that connects the observations. Applicable only for feature layers with a valid trackIdField.
require([
  "esri/renderers/SimpleRenderer", ... 
], function(SimpleRenderer, ... ) {
  var trackRenderer = new SimpleRenderer(myLineSymbol);
  ...
});
<SymbolAger> observationAger Optional Symbol ager for regular observations.
require([
  "esri/renderers/TimeClassBreaksAger", "esri/Color", ... 
], function(TimeClassBreaksAger, Color, ... ) {
  var infos = [
    {
      minAge: 0,
      maxAge: 1,
      color: new Color([255, 0, 0])
    },
    {
      minAge: 1,
      maxAge: 5,
      color: new Color([255, 153, 0])
    },
    {
      minAge: 5,
      maxAge: 10,
      color: new Color([255, 204, 0])
    },
    {
      minAge: 10,
      maxAge: Infinity,
      color: new Color([0, 0, 0, 0])
    }
  ];
  var ager = new TimeClassBreaksAger(infos, TimeClassBreaksAger.UNIT_MINUTES);
  ...
});

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4