Add support for a Canvas renderer. This renderer will allow for some new
capabilties in OpenLayers Vector drawing, including: * Vector support for iPhone, Safari 2.x series browsers * Improved performance of dragging the map with a large number of geometries. The Vector layer default renderer order is now SVG, VML, Canvas, so browsers with Canvas support and no SVG or VML will be able to draw vectors. The Canvas layer has a number of limitations: getFeatureFromEvent is much slower than the other types of layer, and any change to any feature requires a redraw of the entire canvas. Because Canvas is typically a pretty fast drawing implementation, the latter is less problematic than it might otherwise be. r=pagameba,fred, with glances from a couple other people. (Closes #1512) git-svn-id: http://svn.openlayers.org/trunk/openlayers@7862 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -32,6 +32,17 @@ OpenLayers.Renderer = OpenLayers.Class({
|
||||
* {<OpenLayers.Bounds>}
|
||||
*/
|
||||
extent: null,
|
||||
|
||||
/**
|
||||
* Property: locked
|
||||
* {Boolean} If the renderer is currently in a state where many things
|
||||
* are changing, the 'locked' property is set to true. This means
|
||||
* that renderers can expect at least one more drawFeature event to be
|
||||
* called with the 'locked' property set to 'true': In some renderers,
|
||||
* this might make sense to use as a 'only update local information'
|
||||
* flag.
|
||||
*/
|
||||
locked: false,
|
||||
|
||||
/**
|
||||
* Property: size
|
||||
|
||||
Reference in New Issue
Block a user