<br><br>On Saturday, May 19, 2012, RICHARD Didier wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
> On Saturday, May 19, 2012, Andreas Hocevar wrote:<br>
><br>
>> On Sat, May 19, 2012 at 5:36 PM, RICHARD Didier<br>
>> <<a href="javascript:;" onclick="_e(event, 'cvml', 'didier.richard@ign.fr')">didier.richard@ign.fr</a><javascript:;>><br>
>> wrote:<br>
>> > btw, using the Canvas renderer won't work for IE, will it ?<br>
>><br>
>> No, but the VML renderer also shouldn't have this issue.<br>
><br>
><br>
><br>
> Right. So to use Canvas in capable browsers and VML in others you'd use<br>
> `renderers: ['VML', 'Canvas']` in the layer config.<br>
><br>
<br>
In that case, why not changing :<br>
<br>
/**<br>
* Property: renderers<br>
* {Array(String)} List of supported Renderer classes. Add to this<br>
list to<br>
* add support for additional renderers. This list is ordered:<br>
* the first renderer which returns true for the 'supported()'<br>
* method will be used, if not defined in the 'renderer' option.<br>
*/<br>
renderers: ['SVG', 'VML', 'Canvas'],<br>
<br>
into :<br>
<br>
/**<br>
* Property: renderers<br>
* {Array(String)} List of supported Renderer classes. Add to this<br>
list to<br>
* add support for additional renderers. This list is ordered:<br>
* the first renderer which returns true for the 'supported()'<br>
* method will be used, if not defined in the 'renderer' option.<br>
*/<br>
renderers: ['VML', 'Canvas', 'SVG'],<br>
<br>
in OpenLayers.Layer.Vector as most of modern browser would support Canvas<br>
? (even if old browser will have to check for the two first before chosing<br>
SVG !) Is there a speed issue behind that order of renderers ?</blockquote><div><br></div><div>As far as I know the Canvas renderer re-renders features on each map move. This may have performance implications. It also has an impact on user experience – features disappear and reappear.<span></span></div>
<br><br>-- <br>Eric Lemoine<br><br>Camptocamp France SAS<br>Savoie Technolac, BP 352<br>73377 Le Bourget du Lac, Cedex<br><br>Tel : 00 33 4 79 44 44 96<br>Mail : <a href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</a><br>
<a href="http://www.camptocamp.com">http://www.camptocamp.com</a><br><br>