Rename _ol_style_Circle_ to CircleStyle
This commit is contained in:
@@ -13,7 +13,7 @@ import RegularShape from '../style/RegularShape.js';
|
||||
* @extends {ol.style.RegularShape}
|
||||
* @api
|
||||
*/
|
||||
var _ol_style_Circle_ = function(opt_options) {
|
||||
var CircleStyle = function(opt_options) {
|
||||
|
||||
var options = opt_options || {};
|
||||
|
||||
@@ -28,7 +28,7 @@ var _ol_style_Circle_ = function(opt_options) {
|
||||
|
||||
};
|
||||
|
||||
inherits(_ol_style_Circle_, RegularShape);
|
||||
inherits(CircleStyle, RegularShape);
|
||||
|
||||
|
||||
/**
|
||||
@@ -37,8 +37,8 @@ inherits(_ol_style_Circle_, RegularShape);
|
||||
* @override
|
||||
* @api
|
||||
*/
|
||||
_ol_style_Circle_.prototype.clone = function() {
|
||||
var style = new _ol_style_Circle_({
|
||||
CircleStyle.prototype.clone = function() {
|
||||
var style = new CircleStyle({
|
||||
fill: this.getFill() ? this.getFill().clone() : undefined,
|
||||
stroke: this.getStroke() ? this.getStroke().clone() : undefined,
|
||||
radius: this.getRadius(),
|
||||
@@ -57,8 +57,8 @@ _ol_style_Circle_.prototype.clone = function() {
|
||||
* @param {number} radius Circle radius.
|
||||
* @api
|
||||
*/
|
||||
_ol_style_Circle_.prototype.setRadius = function(radius) {
|
||||
CircleStyle.prototype.setRadius = function(radius) {
|
||||
this.radius_ = radius;
|
||||
this.render_(this.atlasManager_);
|
||||
};
|
||||
export default _ol_style_Circle_;
|
||||
export default CircleStyle;
|
||||
|
||||
Reference in New Issue
Block a user