OpenLayers. Renderer.SVG

Inherits

Summary
{String}
{Integer} Firefox has a limitation where values larger or smaller than about 15000 in an SVG document lock the browser up.
{Float}
{Boolean} Whether or not the browser supports the SVG renderer
Sets the size of the drawing surface.
Use to set all the style attributes to a SVG node.
{DOMElement} The specific render engine’s root element
{DOMElement} The main root element to which we’ll add vectors
This method is only called by the renderer itself.
This method is only called by the renderer itself.
This method is only called by the renderer itself.
This method is only called by the renderer itself.
This method is only called by the renderer itself.
This method is only called by the renderer itself.
This method is only called by the renderer itself.

Properties

xmlns

{String}

maxPixel

{Integer} Firefox has a limitation where values larger or smaller than about 15000 in an SVG document lock the browser up.  This works around it.

localResolution

{Float}

Constructor

OpenLayers. Renderer.SVN

Parameters

containerID{String}

Functions

destroy

destroy: function()

supported

supported: function()

Returns

{Boolean} Whether or not the browser supports the SVG renderer

setExtent

setExtent: function(extent)

Parameters

extent{OpenLayers.Bounds}

setSize

setSize: function(size)

Sets the size of the drawing surface.

Parameters

size{OpenLayers.Size} The size of the drawing surface

getNodeType

getNodeType: function(geometry)

Parameters

geometry{OpenLayers.Geometry}

Returns

{String} The corresponding node type for the specified geometry

setStyle

setStyle: function(node,
style,
options)

Use to set all the style attributes to a SVG node.

Takes care to adjust stroke width and point radius to be resolution-relative

Parameters

node{SVGDomElement} An SVG element to decorate
style{Object}
options{Object} Currently supported options include ‘isFilled’ {Boolean} and ‘isStroked’ {Boolean}

createNode

createNode: function(type,
id)

Parameters

type{String} Kind of node to draw
id{String} Id for node

Returns

{DOMElement} A new node of the given type and id

nodeTypeCompare

nodeTypeCompare: function(node,
type)

Parameters

node{SVGDomElement} An SVG element
type{String} Kind of node

Returns

{Boolean} Whether or not the specified node is of the specified type

createRenderRoot

createRenderRoot: function()

Returns

{DOMElement} The specific render engine’s root element

createRoot

createRoot: function()

Returns

{DOMElement} The main root element to which we’ll add vectors

drawPoint

drawPoint: function(node,
geometry)

This method is only called by the renderer itself.

Parameters

node{DOMElement}
geometry{OpenLayers.Geometry}

drawCircle

drawCircle: function(node,
geometry,
radius)

This method is only called by the renderer itself.

Parameters

node{DOMElement}
geometry{OpenLayers.Geometry}
radius{Float}

drawLineString

drawLineString: function(node,
geometry)

This method is only called by the renderer itself.

Parameters

node{DOMElement}
geometry{OpenLayers.Geometry}

drawPolygon

drawPolygon: function(node,
geometry)

This method is only called by the renderer itself.

Parameters

node{DOMElement}
geometry{OpenLayers.Geometry}

drawRectangle

drawRectangle: function(node,
geometry)

This method is only called by the renderer itself.

Parameters

node{DOMElement}
geometry{OpenLayers.Geometry}

drawCurve

drawCurve: function(node,
geometry)

This method is only called by the renderer itself.

Parameters

node{DOMElement}
geometry{OpenLayers.Geometry}

drawSurface

drawSurface: function(node,
geometry)

This method is only called by the renderer itself.

Parameters

node{DOMElement}
geometry{OpenLayers.Geometry}

getComponentString

Parameters

components{Array(<OpenLayers.Geometry.Point)} Array of points

getShortString

getShortString: function(point)

Parameters

point{OpenLayers.Geometry.Point}

Returns

{String}

destroy: function()
supported: function()
{Boolean} Whether or not the browser supports the SVG renderer
setExtent: function(extent)
setSize: function(size)
Sets the size of the drawing surface.
getNodeType: function(geometry)
setStyle: function(node,
style,
options)
Use to set all the style attributes to a SVG node.
createNode: function(type,
id)
nodeTypeCompare: function(node,
type)
createRenderRoot: function()
{DOMElement} The specific render engine’s root element
createRoot: function()
{DOMElement} The main root element to which we’ll add vectors
drawPoint: function(node,
geometry)
This method is only called by the renderer itself.
drawCircle: function(node,
geometry,
radius)
This method is only called by the renderer itself.
drawLineString: function(node,
geometry)
This method is only called by the renderer itself.
drawPolygon: function(node,
geometry)
This method is only called by the renderer itself.
drawRectangle: function(node,
geometry)
This method is only called by the renderer itself.
drawCurve: function(node,
geometry)
This method is only called by the renderer itself.
drawSurface: function(node,
geometry)
This method is only called by the renderer itself.
getShortString: function(point)
This is another virtual class in that it should never be instantiated by itself as a Renderer.
Instances of this class represent bounding boxes.
Instances of this class represent a width/height pair
A Geometry is a description of a geographic object.
Point geometry class.