[OpenLayers-Users] Browser not supported with Canvas renderer

Rob Hyx robhyx at gmail.com
Wed Jul 11 09:13:48 PDT 2012


Thanks Andreas, I'm looking at the documentation, do you mean
OpenLayers.Util.CANVAS_SUPPORTED? I tried both with no luck.

On Wed, Jul 11, 2012 at 10:55 AM, Andreas Hocevar <ahocevar at opengeo.org> wrote:
> Hi,
>
> a hack to make the Canvas renderer think that Canvas is supported
> would be to add the following at the top of your application script:
>
> OpenLayers.CANVAS_SUPPORTED = true;
>
> Andreas.
>
> On Wed, Jul 11, 2012 at 4:35 PM, Rob Hyx <robhyx at gmail.com> wrote:
>> Hello all,
>>
>> I am having an issue in IE 8. I am using OP 2.11 with ExCanvas to
>> untilize Canvas tags in older browsers. I realize this is a long shot
>> as it's probably a hack, but I figure I'd at least ask: When I
>> construct my vector layer with the canvas renderer I get a
>> 'browserNotSupported' alert box (not surprisingly). Later when I go to
>> add features to the map I get: this.renderer is null or not an object.
>>
>> First question: Is there anyway to supress that alert that comes up?
>> Second question: Has anyone done this before and know how to get the
>> vectors to correctly render?
>>
>> I assume since OpenLayers recognizes IE 8 as a browser that doesn't
>> support canvas it just flat out rejects the renderer, hence none is
>> present when the vectors are added to the map. I tried adding VML and
>> SVG as well but then I get other problems (Attribute is only valid on
>> v:image).
>>
>> Thanks so much in advance!
>>
>> --
>> HYX
>> http://hyx-music.com
>> _______________________________________________
>> Users mailing list
>> Users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
>
>
> --
> Andreas Hocevar
> OpenGeo - http://opengeo.org/
> Expert service straight from the developers.



-- 
HYX
http://hyx-music.com


More information about the Users mailing list