[OpenLayers-Users] Noob Needs Help with setCenter() call
Arnie Shore
ashore3 at verizon.net
Fri Jan 6 03:32:27 EST 2012
Folks, my map is not centering on the bounds center point returned from
the foll'g:
var proj = new OpenLayers.Projection("EPSG:4326");
var point = new OpenLayers.LonLat(bounds.getCenterLonLat());
// returns lon=-77.50959,lat=39.011702, which is correct
map_Obj.setCenter(point.transform(proj,
map_Obj.getProjectionObject()));
I'll appreciate any help in that setCenter() call working.
AS
More information about the Users
mailing list