[OpenLayers-Trac] [OpenLayers] #3185: canvas: drawExternalGraphic
either misplaced or not drawn
OpenLayers
trac-20090302 at openlayers.org
Mon Mar 21 16:04:34 EDT 2011
#3185: canvas: drawExternalGraphic either misplaced or not drawn
---------------------------+------------------------------------------------
Reporter: rduivenvoorde | Owner:
Type: feature | Status: new
Priority: minor | Milestone: 2.11 Release
Component: general | Version: 2.10
Keywords: | State:
---------------------------+------------------------------------------------
In current implementation of Canvas.drawExternalGraphic I found two
problems:
1) if using a (point) style with an external graphic, and NOT defining a
pointRadius AND (graphicWidth OR graphicHeight), NO graphic was draws
(there seems to be no default size for a graphic
2) when using an external graphic and using the style properties
graphicXOffset and graphicYOffset the offset was too big (eg using a
marker graphic 24 pixels hight with a pointer to the bottom of the
graphic, you had to give an y-offset of 24 to have the pointer point to
the real point ...).
I will attach a patch for both problems
--
Ticket URL: <http://trac.openlayers.org/ticket/3185>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list