sample skeleton application with dojo toolkit & arcgis js api v 4.30
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
992 B

define(["dojo/_base/declare","./AnalogIndicatorBase"],
function(declare, AnalogIndicatorBase) {
return declare("dojox.gauges.AnalogCircleIndicator", [AnalogIndicatorBase], {
// summary:
// An indicator for the AnalogGauge that draws a circle. The center of the circle is positioned
// on the circular gauge according to the value of the indicator. The circle has for radius the
// length of the indicator. This indicator is mainly used to draw round ticks for the scale.
_getShapes: function(group){
// summary:
// Override of dojox.gauges.AnalogLineIndicator._getShapes
var color = this.color ? this.color : 'black';
var strokeColor = this.strokeColor ? this.strokeColor : color;
var stroke = {
color: strokeColor,
width: 1
};
if (this.color.type && !this.strokeColor){
stroke.color = this.color.colors[0].color;
}
return [group.createCircle({
cx: 0,
cy: -this.offset,
r: this.length
}).setFill(color).setStroke(stroke)];
}
});
});