Code coverage report for src/layer/vector/CircleMarker.js

Statements: 100% (10 / 10)      Branches: 100% (0 / 0)      Functions: 100% (5 / 5)      Lines: 100% (10 / 10)     

All files » src/layer/vector/ » CircleMarker.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34        1             5 5       12       6 6       8 8       1 5    
/*
 * L.CircleMarker is a circle overlay with a permanent pixel radius.
 */
 
L.CircleMarker = L.Circle.extend({
	options: {
		radius: 10,
		weight: 2
	},
 
	initialize: function (latlng, options) {
		L.Circle.prototype.initialize.call(this, latlng, null, options);
		this._radius = this.options.radius;
	},
 
	projectLatlngs: function () {
		this._point = this._map.latLngToLayerPoint(this._latlng);
	},
 
	_updateStyle : function () {
		L.Circle.prototype._updateStyle.call(this);
		this.setRadius(this.options.radius);
	},
 
	setRadius: function (radius) {
		this.options.radius = this._radius = radius;
		return this.redraw();
	}
});
 
L.circleMarker = function (latlng, options) {
	return new L.CircleMarker(latlng, options);
};