[OpenLayers-Users] GetFeatureInfo + Highlightning WMS
JamSquad
Jordan_R_Clark at hotmail.com
Wed Mar 24 15:24:12 EDT 2010
Okay well I was tinkering around with it some more today, and found it it's
more the Googles projection then anything else in the map. I use proj4js on
transforming my 26917 projection into googles 900913.
Proj4js.defs["EPSG:900913"] = "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0
+lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs";
Proj4js.defs["EPSG:26917"] = "+proj=utm +zone=17 +ellps=GRS80 +datum=NAD83
+units=m +no_defs";
var projGoogle = new OpenLayers.Projection("EPSG:900913");
var proj26917 = new OpenLayers.Projection("EPSG:26917");
var bounds = new OpenLayers.Bounds(
601483.168, 4891001.729,
618569.5, 4918042.5
);
bounds.transform(proj26917, projGoogle);
Is there a way to permanently change the co-ordinates into a different
projection on-click basis?
Thanks!
JamSquad
--
View this message in context: http://n2.nabble.com/GetFeatureInfo-Highlightning-WMS-tp4786660p4793268.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list