[OpenLayers-Users] Re: Virtual Earth Layers vector layer projection
issue
BillyZ313
billyz at iagt.org
Tue Jun 7 15:07:06 EDT 2011
I found the issue, the fix is a simple one like i assumed...
I changed the line:
var point2 = new OpenLayers.LonLat(-90.601111, 14.380833);
to:
var point2 = new OpenLayers.Geometry.Point(-90.601111, 14.380833);
then i did the transform on that point as well
var transPoint2 = point2.transform(proj, map_OL.getProjectionObject());
and created the feature from transPoint2
marker1 = new OpenLayers.Feature.Vector(transPoint2);
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Virtual-Earth-Layers-vector-layer-projection-issue-tp6450691p6450976.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list