OpenLayers JavaScript Mapping Library |
OpenLayers. Renderer.VMLRender vector features in browsers with VML capability. Construct a new VML renderer with the OpenLayers.Renderer.VML constructor. Note that for all calculations in this class, we use toFixed() to round a float value to an integer. This is done because it seems that VML doesn’t support float values. Inherits fromSummary
setSize
Set the size of the drawing surface Parameters
getNodeType
Get the noode type for a geometry Parameters
Returns{String} The corresponding node type for the specified geometry setStyle
Use to set all the style attributes to a VML node. Parameters
setNodeDimension
Get the geometry’s bounds, convert it to our vml coordinate system, then set the node’s position, size, and local coordinate system. Parameters
drawPoint
Render a point Parameters
drawCircle
Render a circle. Size and Center a circle given geometry (x,y center) and radius Parameters
drawLineString
Render a linestring. Parameters
drawLinearRing
Render a linearring Parameters
DrawLineRender a line. Parameters
drawPolygon
Render a polygon Parameters
drawRectangle
Render a rectangle Parameters
|
Deconstruct the renderer.
destroy: function()
Determine whether a browser supports this renderer.
supported: function()
Set the renderer’s extent
setExtent: function( extent )
Set the size of the drawing surface
setSize: function( size )
Get the noode type for a geometry
getNodeType: function( geometry )
Use to set all the style attributes to a VML node.
setStyle: function( node, style, options, geometry )
Get the geometry’s bounds, convert it to our vml coordinate system, then set the node’s position, size, and local coordinate system.
setNodeDimension: function( node, geometry )
Create a new node
createNode: function( type, id )
Determine whether a node is of a given type
nodeTypeCompare: function( node, type )
Create the renderer root
createRenderRoot: function()
Create the main root element
createRoot: function()
Render a point
drawPoint: function( node, geometry )
Render a circle.
drawCircle: function( node, geometry, radius )
Render a linestring.
drawLineString: function( node, geometry )
Render a linearring
drawLinearRing: function( node, geometry )
Render a polygon
drawPolygon: function( node, geometry )
Render a rectangle
drawRectangle: function( node, geometry )
drawCurve: function( node, geometry )
drawSurface: function( node, geometry )