support pointRadius for canvas renderer, p=gregers, r=me (closes #2126)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10104 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -253,14 +253,14 @@ OpenLayers.Renderer.Canvas = OpenLayers.Class(OpenLayers.Renderer, {
|
|||||||
if(style.fill !== false) {
|
if(style.fill !== false) {
|
||||||
this.setCanvasStyle("fill", style);
|
this.setCanvasStyle("fill", style);
|
||||||
this.canvas.beginPath();
|
this.canvas.beginPath();
|
||||||
this.canvas.arc(pt[0], pt[1], 6, 0, Math.PI*2, true);
|
this.canvas.arc(pt[0], pt[1], style.pointRadius, 0, Math.PI*2, true);
|
||||||
this.canvas.fill();
|
this.canvas.fill();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(style.stroke !== false) {
|
if(style.stroke !== false) {
|
||||||
this.setCanvasStyle("stroke", style);
|
this.setCanvasStyle("stroke", style);
|
||||||
this.canvas.beginPath();
|
this.canvas.beginPath();
|
||||||
this.canvas.arc(pt[0], pt[1], 6, 0, Math.PI*2, true);
|
this.canvas.arc(pt[0], pt[1], style.pointRadius, 0, Math.PI*2, true);
|
||||||
this.canvas.stroke();
|
this.canvas.stroke();
|
||||||
this.setCanvasStyle("reset");
|
this.setCanvasStyle("reset");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user