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;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
import {assert} from '../asserts.js';
|
||||
import GeometryType from '../geom/GeometryType.js';
|
||||
import _ol_style_Circle_ from '../style/Circle.js';
|
||||
import CircleStyle from '../style/Circle.js';
|
||||
import Fill from '../style/Fill.js';
|
||||
import Stroke from '../style/Stroke.js';
|
||||
|
||||
@@ -331,7 +331,7 @@ Style.defaultFunction = function(feature, resolution) {
|
||||
});
|
||||
Style.default_ = [
|
||||
new Style({
|
||||
image: new _ol_style_Circle_({
|
||||
image: new CircleStyle({
|
||||
fill: fill,
|
||||
stroke: stroke,
|
||||
radius: 5
|
||||
@@ -390,7 +390,7 @@ Style.createDefaultEditing = function() {
|
||||
|
||||
styles[GeometryType.POINT] = [
|
||||
new Style({
|
||||
image: new _ol_style_Circle_({
|
||||
image: new CircleStyle({
|
||||
radius: width * 2,
|
||||
fill: new Fill({
|
||||
color: blue
|
||||
|
||||
Reference in New Issue
Block a user