ALKMaps. | |
Constants | |
labelNodeType | {String} The node type for text label containers. |
Constructor | |
ALKMaps. | |
Functions | |
updateDimensions | |
resize | |
drawFeature | Draw the feature. |
drawText | Function for drawing text labels. |
updateDimensions: function( zoomChanged )
To be extended by subclasses | here we set positioning related styles on HTML elements, subclasses have to do the same for renderer specific elements (e.g. viewBox, width and height of the rendererRoot) |
zoomChanged | {Boolean} Has the zoom changed? If so, subclasses may have to update feature styles/dimensions. |
drawFeature: function( feature, style )
Draw the feature. The optional style argument can be used to override the feature’s own style. This method should only be called from layer.drawFeature().
feature | {ALKMaps.Feature.Vector} |
style | {<Object>} |
{Boolean} true if the feature has been drawn completely, false if not, undefined if the feature had no geometry
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 | {ALKMaps.Geometry.Point}, will be modified inline |
{DOMElement} container holding the text label (to be populated by subclasses)
updateDimensions: function( zoomChanged )
Draw the feature.
drawFeature: function( feature, style )
Function for drawing text labels.
drawText: function( featureId, style, location )