[OpenLayers-Dev] #736 (external graphic as style for vector points)

Andreas Hocevar andreas.hocevar at gmail.com
Tue Jun 5 14:05:43 EDT 2007


Hi,

On 6/5/07, Andreas Hocevar <andreas.hocevar at gmail.com> wrote:
> The problem is with VML. The v:image element stretches the image to
> the specified width and height. It should be possible to use image
> fills on a rect element, specifying an "aspect" attribute. But this
> did not work for me. If anyone knows how to do this, please speak up!

Ok, the <v:rect><v:fill aspect="atmost" src="..."</v:rect> trick is working!

I now committed a version to the sandbox without graphicWidth and
graphicSize, which takes the height from the pointRadius attribute and
keeps the aspect ratio of the image!

Regards,
Andreas.



More information about the Dev mailing list