I've tried out a SWEREF 99 WMS and have had issues displaying it correctly. Changing the reference system to the almost equivalent EPSG:32633 displays the map correctly and at the correct zoom levels and such. The only difference being the reference system. Is there an issue with this reference system?
Please explain "ssues displaying it correctly" in more detail.
ol3 will be relying on Proj4js to support these projections, and so ol3 treats both reference systems exactly the same way.
What are the Proj4js definition strings that you are using?
In short using the correct reference system does not display the map at all.
Proj4js.defs["EPSG:3006"] = "+proj=utm +zone=33 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs";
Proj4js.defs["EPSG:32633"] = "+proj=utm +zone=33 +ellps=WGS84 +datum=WGS84 +units=m +no_defs";
Practically the map is fine with using the EPSG:32633 considering that the Proj4Js definition is pretty much the same.
Is it possible that the build of Proj4js that you are using does not contain the definition of the GRS80 ellipsoid?
I took the proj4js-compressed file from one of the OL samples. Searching through it does seem to contain a GRS80 definition. I'll try hacking my definition to use the same ellipsoid (I should have done this before...) and see what happens.
Closing due to lack of response.
Hi, sorry for the lack of response; this issue was solved by using a newer proj4 version, i.e. probably an issue with older versions of Proj4.
Thanks for the update. Glad it's fixed!