Documenting the featureDx, xOffset and rightOfDateLine member variables.

This commit is contained in:
ahocevar
2011-10-08 12:03:16 -04:00
parent 2cfe6f83c2
commit bb80c893fd
2 changed files with 33 additions and 0 deletions

View File

@@ -73,6 +73,17 @@ OpenLayers.Renderer = OpenLayers.Class({
*/
map: null,
/**
* Property: featureDx
* {Number} Feature offset in x direction. Will be calculated for and
* applied to the current feature while rendering. Looking at the center of
* the feature bounds and the renderer extent, we calculate how many world
* widths the two are away from each other. This value is used to shift the
* feature as close as possible to the center of the current renderer
* extent. This ensures that the feature is visible in the current
* viewport.
*/
/**
* Constructor: OpenLayers.Renderer
*