There is an issue with OpenLayers before version 2.6 with Firefox3 and Safari, where a message saying
"Your browser does not support vector rendering. Currently supported renderers are:
SVG
VML"
pops up. (You can click ok and the maps work - it's just annoying!) This is fixed in 2.6
However, OpenSpace still uses 2.5, so if you use OpenSpace maps in Mapstraction, you get the message.
The issue is mentioned here (you may need a login to see this):
http://openspace.ordnancesurvey.co.uk/openspaceforum/thread.jspa?threadI...
with a link to a work around here:
http://trac.openlayers.org/wiki/Vectors/SafariRegression
In a dirty fix - I used the code from the link:
OpenLayers.Renderer.SVG.prototype.supported = function() {
var svgFeature = "http://www.w3.org/TR/SVG11/feature#";
return (document.implementation &&
(document.implementation.hasFeature("org.w3c.svg", "1.0") ||
document.implementation.hasFeature(svgFeature + "SVG", "1.1") ||
document.implementation.hasFeature(svgFeature + "BasicStructure", "1.1") ));
};
and shoved it on line 3 of the mastraction.drupal.js file (it needs to be placed "after OpenLayers is loaded, and before you create a vector layer")
I haven't tested it with any other maps, as all I'm interested in at the moment is OpenSpace - but maybe this is useful for someone, and perhaps the start of a proper fix for someone else!
OpenSpace say they are moving to OpenLayers2.6 soon, so at that point this should no longer be an issue.
Comments
Comment #1
levelos commented