On Wed, Apr 09, 2008 at 04:55:35PM +0100, Bjorn Sandvik wrote:
>
> Hi,
>
> I'm having a problem with hover styles using OpenLayers 2.6-rc1:
> http://www.thematicmapping.org/experiments/openlayers/propsymbols.html
>
> When you hover on of the circles the size is not preserved.
> Is there a way to define the "default" and "select" styles to be the same?
In 2.6-rc2, this is fixed.
In 2.6-rc1, you can do:
StyleMap({'default': style, 'select': style});
If you want to only change (for example) the color, and not the size,
you can do (in either version):
StyleMap({'default': style, 'select': {strokeColor: '#0000ff'}});
Regards,
--
Christopher Schmidt
MetaCarta
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users