The geodesic option has no effect unless you also include Proj4.js.
Just include the following before the OpenLayers.js (or upload
proj4js.js to your website).
<script type="text/javascript"src="http://proj4js.org/lib/proj4js.js
<view-source:http://proj4js.org/lib/proj4js.js>"></script>
<scripttype="text/javascript">
Proj4js.defs["EPSG:3776"] = "+proj=tmerc +lat_0=0 +lon_0=-114 +k=0.9999
+x_0=0 +y_0=0 +ellps=GRS80 +datum=NAD83 +units=m +no_defs";
</script>
<script type="text/javascript"src="http://openlayers.org/api/OpenLayers.js
<view-source:http://openlayers.org/api/OpenLayers.js>">
</script>
On 30/11/2010 16:22, Planet)x wrote:
Thanks for the advice, I tried to change the handlerOptions like so -
var options = {
handlerOptions: {
style: "default", // this forces default render intent
layerOptions: { styleMap: styleMap },
persist: true,
geodesic: true
}
};
But adding geodesic: true did not seem to have any affect and my
measurements are still not accurate compared to a different application that
is apparently using EPSG:3776. So should I look into proj4JS as a best
option?
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users