[OpenLayers-Users] Strange problem with vector layer
Adam Eskreis
aeskreis at gmail.com
Mon Dec 25 15:03:26 EST 2006
Happy Holidays everyone!
I am having a bit of a problem with the vector layer. I added the vector
layer adn it shows it properly upon loading the page, but if i pan in any
direction, the vector moves more than it should. What would cause this?
How can i fix it? I am using ka-map to show the map and running ms4w. here
is the relevant vector code:
var linearRing = new OpenLayers.Geometry.LinearRing([
new OpenLayers.Geometry.Point(1036611.14832322,
195424.10379100),
new OpenLayers.Geometry.Point(1036583.12835519,
195422.43390300),
new OpenLayers.Geometry.Point(1036577.76822719,
195475.50398305),
new OpenLayers.Geometry.Point(1036606.86825922,
195484.15396706),
new OpenLayers.Geometry.Point(1036611.14832322,
195424.10379100),
]);
var polygon = new OpenLayers.Geometry.Polygon([linearRing]);
var feature = new OpenLayers.Feature();
feature.setGeometry(polygon);
vector.addFeatures(feature);
thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20061225/385a905e/attachment.html
More information about the Users
mailing list