Adding support for backgroundWidth and backgroundHeight properties on symbolizers. If not provided, background graphics are rendered with graphicWidth and graphicHeight values (or pointRadius if not provided). r=ahocevar (closes #1968)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8947 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -573,6 +573,8 @@ OpenLayers.Renderer.Elements = OpenLayers.Class(OpenLayers.Renderer, {
|
||||
backgroundStyle.graphicXOffset = backgroundStyle.backgroundXOffset;
|
||||
backgroundStyle.graphicYOffset = backgroundStyle.backgroundYOffset;
|
||||
backgroundStyle.graphicZIndex = backgroundStyle.backgroundGraphicZIndex;
|
||||
backgroundStyle.graphicWidth = backgroundStyle.backgroundWidth || backgroundStyle.graphicWidth;
|
||||
backgroundStyle.graphicHeight = backgroundStyle.backgroundHeight || backgroundStyle.graphicHeight;
|
||||
|
||||
// Erase background styles.
|
||||
backgroundStyle.backgroundGraphic = null;
|
||||
|
||||
Reference in New Issue
Block a user