| OpenLayers. | |
| Properties | |
| xmlns | {String} |
| xlinkns | {String} |
| symbolMetrics | {Object} Cache for symbol metrics according to their svg coordinate space. |
| Constants | |
| labelNodeType | {String} The node type for text label containers. |
| Constructor | |
| OpenLayers. | |
| Functions | |
| supported | {Boolean} Whether or not the browser supports the SVG renderer |
| updateDimensions | |
| getNodeType | |
| setStyle | Use to set all the style attributes to a SVG node. |
| dashStyle | |
| createNode | |
| nodeTypeCompare | |
| createRenderRoot | {DOMElement} The specific render engine’s root element |
| createRoot | |
| createDefs | {DOMElement} The element to which we’ll add the symbol definitions |
| drawPoint | This method is only called by the renderer itself. |
| drawCircle | This method is only called by the renderer itself. |
| drawLineString | This method is only called by the renderer itself. |
| drawLinearRing | This method is only called by the renderer itself. |
| drawPolygon | This method is only called by the renderer itself. |
| drawRectangle | This method is only called by the renderer itself. |
| drawSurface | This method is only called by the renderer itself. |
| drawText | Function for drawing text labels. |
| getComponentString | |
| getShortString | |
| importSymbol | add a new symbol definition from the rendererer’s symbol hash |
| getFeatureIdFromEvent | |
| Constants | |
| OpenLayers. | {Object} |
| OpenLayers. | {Object} |
| OpenLayers. | {Object} |
| Functions | |
| OpenLayers. | Used to prevent default events (especially opening images in a new tab on ctrl-click) from being executed for externalGraphic and graphicName symbols |
getNodeType: function( geometry, style )
| geometry | {OpenLayers.Geometry} |
| style | {Object} |
{String} The corresponding node type for the specified geometry
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
| node | {SVGDomElement} An SVG element to decorate |
| style | {Object} |
| options | {Object} Currently supported options include ‘isFilled’ {Boolean} and ‘isStroked’ {Boolean} |
drawPoint: function( node, geometry )
This method is only called by the renderer itself.
| node | {DOMElement} |
| geometry | {OpenLayers.Geometry} |
{DOMElement} or false if the renderer could not draw the point
drawCircle: function( node, geometry, radius )
This method is only called by the renderer itself.
| node | {DOMElement} |
| geometry | {OpenLayers.Geometry} |
| radius | {Float} |
{DOMElement} or false if the renderer could not draw the circle
drawLineString: function( node, geometry )
This method is only called by the renderer itself.
| node | {DOMElement} |
| geometry | {OpenLayers.Geometry} |
{DOMElement} or null if the renderer could not draw all components of the linestring, or false if nothing could be drawn
drawLinearRing: function( node, geometry )
This method is only called by the renderer itself.
| node | {DOMElement} |
| geometry | {OpenLayers.Geometry} |
{DOMElement} or null if the renderer could not draw all components of the linear ring, or false if nothing could be drawn
drawPolygon: function( node, geometry )
This method is only called by the renderer itself.
| node | {DOMElement} |
| geometry | {OpenLayers.Geometry} |
{DOMElement} or null if the renderer could not draw all components of the polygon, or false if nothing could be drawn
drawRectangle: function( node, geometry )
This method is only called by the renderer itself.
| node | {DOMElement} |
| geometry | {OpenLayers.Geometry} |
{DOMElement} or false if the renderer could not draw the rectangle
drawSurface: function( node, geometry )
This method is only called by the renderer itself.
| node | {DOMElement} |
| geometry | {OpenLayers.Geometry} |
{DOMElement} or false if the renderer could not draw the surface
drawText: function( featureId, style, location )
Function for drawing text labels. This method is only called by the renderer itself.
| featureId | {String|DOMElement} |
| style | {Object} |
| location | {OpenLayers.Geometry.Point}, will be modified inline |
{DOMElement} container holding the text label
| components | {Array(OpenLayers.Geometry.Point)} Array of points |
| separator | {String} character between coordinate pairs. Defaults to “,” |
{Object} hash with properties “path” (the string created from the components and “complete” (false if the renderer was unable to draw all components)
getShortString: function( point )
| point | {OpenLayers.Geometry.Point} |
{String} or false if point is outside the valid range
getFeatureIdFromEvent: function( evt )
| evt | {Object} An OpenLayers.Event object |
{OpenLayers.Geometry} A geometry from an event that happened on a layer.
{Boolean} Whether or not the browser supports the SVG renderer
supported: function()
updateDimensions: function( zoomChanged )
getNodeType: function( geometry, style )
Use to set all the style attributes to a SVG node.
setStyle: function( node, style, options )
dashStyle: function( style, widthFactor )
createNode: function( type, id )
nodeTypeCompare: function( node, type )
{DOMElement} The specific render engine’s root element
createRenderRoot: function()
createRoot: function( suffix )
{DOMElement} The element to which we’ll add the symbol definitions
createDefs: function()
This method is only called by the renderer itself.
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.
drawLinearRing: 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.
drawSurface: function( node, geometry )
Function for drawing text labels.
drawText: function( featureId, style, location )
getShortString: function( point )
add a new symbol definition from the rendererer’s symbol hash
importSymbol: function ( graphicName )
getFeatureIdFromEvent: function( evt )
Used to prevent default events (especially opening images in a new tab on ctrl-click) from being executed for externalGraphic and graphicName symbols
OpenLayers.Renderer.SVG2.preventDefault = function( e )