[OpenLayers-Users] Browser not supported ?
Christopher Schmidt
crschmidt at metacarta.com
Mon Aug 25 13:35:37 EDT 2008
On Mon, Aug 25, 2008 at 07:27:04PM +0200, Arnd Wippermann wrote:
> OpenLayers.Renderer.SVG.prototype.supported = function ()
> {
> // firefox 3 supports SVG but does like either of the feature URLs
> below
> // See ( https://bugzilla.mozilla.org/show_bug.cgi?id=322724 )
> if (/Firefox\/3/.test(navigator.userAgent))
> return true;
>
> var svgFeature = "http://www.w3.org/TR/SVG11/feature#SVG";
> var supported = (document.implementation &&
> (document.implementation.hasFeature("org.w3c.svg",
> "1.0") ||
> document.implementation.hasFeature(svgFeature,
> "1.1")));
> return supported;
> }
>
> Overwrite OpenLayers.Renderer.SVG.prototype.supported. Then OL 2.5 should
> work.
If you're going to do this, please don't do it in this way.
http://trac.openlayers.org/wiki/Vectors/SafariRegression
Gives a better fix, but really, just upgrade to 2.6.
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list