<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Yeah, I understand that. What I need to be able to do is be able to change the renderer like with a setter. I tried vectorLayer.renderer = new OpenLayers.Renderer.Canvas(vectorLayer.renderer.container.id); but I get an error (this.container is null).<div><br></div><div>I stepped through the Canvas.js file and it appears that the fill color is there for each feature but for some reason style.fill is false for every feature after the first one. So I get one polygon filled in but the rest are empty. I don't know why this would happen, as I'm not even setting that boolean in my style map.<br><div><br><div><div>On Aug 6, 2012, at 3:27 PM, Mike Ryan wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
  

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Rob,<br>
      <br>
      When you specify that array of renderers, I believe you are
      specifying your *preference* of renderer. You put your first
      choice first, etc. If that choice is not available, then it tries
      the next one, etc. <br>
      <br>
      Does that help?<br>
      <br>
      -Mike<br>
      <br>
      On 8/1/2012 3:00 PM, <a class="moz-txt-link-abbreviated" href="mailto:openlayers-users-request@lists.osgeo.org">openlayers-users-request@lists.osgeo.org</a>
      wrote:<br>
    </div>
    <blockquote class=" cite" id="mid_mailman_53_1343847614_18022_openlayers_users_lists_osgeo_org" cite="mid:mailman.53.1343847614.18022.openlayers-users@lists.osgeo.org" type="cite">
      <pre wrap="">Message: 2
Date: Wed, 1 Aug 2012 09:30:42 -0400
From: Rob Hyx <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:robhyx@gmail.com"><robhyx@gmail.com></a>
To: <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:openlayers-users@lists.osgeo.org">openlayers-users@lists.osgeo.org</a>
Subject: Re: [OpenLayers-Users] Canvas renderer causing fill in style,
        map,    to be ignored
Message-ID:
        <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:CAF-PjvzhYiE-MwmxX+OaVzwPB+E4gqs4WHYPBHpyXZ-QS+QN4Q@mail.gmail.com"><CAF-PjvzhYiE-MwmxX+OaVzwPB+E4gqs4WHYPBHpyXZ-QS+QN4Q@mail.gmail.com></a>
Content-Type: text/plain; charset=ISO-8859-1

Okay, let me take back what I said last. Adding the additional
renderers ['SVG,'VML,'Canvas'], does fix my problem, but now when I go
to use the Canvas renderer it's not vectorLayer.renderer. Instead I
get the SVG renderer. I see an array vectorLayer.renderers but that's
just an array of Strings. I'm looking at the API and it is not obvious
to me how you can pick your renderer of choice. It seems you must be
able to do it otherwise why would you be able to specify more than
one.

Any ideas?
</pre>
    </blockquote>
    <br>
  </div>

</blockquote></div><br></div></div></body></html>