[OpenLayers-Users] Vector Layer on Chrome weirdness
Eric Lemoine
eric.lemoine at camptocamp.com
Thu Jun 7 12:08:10 PDT 2012
On Thursday, June 7, 2012, William DePalo wrote:
> Hi,
>
> A couple of days ago I asked why clicking on a line string feature in a
> KML layer displayed in the Chrome browser would not raise an event even
> though the same code works fine in Firefox, IE, Safari and Opera.
>
> Today I found that the problem is related to the presence of this line
>
> OpenLayers.Layer.Vector.**prototype.renderers = ["SVG2", "VML", "Canvas"];
>
> If I omit the line then I get the event. If it is present, I don't.
>
> So, I'm happy to leave the line out and let the browser choose the render
> method and forego the performance gain which I thought the line brought if
> it means everything will work as expected.
>
> Is this a bug or should I do something differently? That is should I be
> worried about things breaking with v2.12?
The SVG2 renderer is deprecated, so it's not so surprising that it doesn't
work in recent versions of Chrome. Use SVG.
--
Eric Lemoine
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120607/ad8ed505/attachment.html>
More information about the Users
mailing list