dojo.require("esri.renderer.TemporalRenderer")
esri.renderer.Renderer |_esri.renderer.TemporalRenderer
Name | Summary |
---|---|
new esri.renderer.TemporalRenderer(observationRenderer, latestObservationRenderer?, trackRenderer?, observationAger?) | Creates a new TemporalRenderer object that can be used with a time-aware feature layer. |
Name | Return type | Summary |
---|---|---|
getColor(graphic, options?) | Color | Gets the color for the Graphic. |
getOpacity(graphic, options?) | Number | Returns the opacity value for the specified graphic. |
getRotationAngle(graphic, options?) | Number | Returns the angle of rotation (in degrees) for the graphic calculated using rotationInfo. |
getSize(graphic, options?) | Number | Return the symbol size (in pixels) for the graphic, calculated using sizeInfo . |
getSymbol(graphic) | Symbol | Returns the symbol used to render the graphic. |
toJson() | Object | Converts object to its ArcGIS Server JSON representation. |
< > observationRenderer |
Required | Renderer for regular/historic observations. |
< > 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)); ... }); |
< > 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); ... }); |
< > 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); ... }); |
var renderer = new esri.renderer.TemporalRenderer(observationRenderer, null, null, ager);
Color
< > graphic |
Required | Graphic to get color from. |
< > options |
Optional | This optional parameter supports colorInfo . If none is provided, the Renderer.colorInfo will be used. |
Number
< > graphic |
Required | Returns the opacity value appropriate for the given graphic. This value is calculated based on the opacityInfo definition. |
< > options |
Optional | This optional parameter supports opacityInfo . If none is provided, the Renderer.opacityInfo will be used. |
Number
< > graphic |
Required | An input graphic for which you want to get the angle of rotation. |
< > options |
Optional | This optional parameter supports rotationInfo . If none is provided, the Renderer.rotationInfo will be used. |
sizeInfo
. (Added at v3.7)Number
< > graphic |
Required | The graphic for which you want to calculate the symbol size. |
< > options |
Optional | This optional parameter supports sizeInfo . If none is provided, the Renderer.sizeInfo will be used.
|
Symbol
< > graphic |
Required | The input graphic. |
Object