[OpenLayers-Users] Vector points aver the dateline

springrider springrider at hotmail.com
Tue Aug 31 02:41:54 EDT 2010


Hello David,
Thanks for your reply, i have followed your recommendations and have now 2
vectors layers containing same type of data but with coordinates adapted to
each side of the date line (-179 becoming +181 in one file and 179 becoming
-181 in the other).
vectorsWest = new OpenLayers.Layer.GML( "Releases", "pacific_W.json",
                                                { format:
OpenLayers.Format.GeoJSON,
                                                  styleMap: styleMap,
                                                  isBaseLayer: false,
                                                  projection: new
OpenLayers.Projection("EPSG:4326")}
												);
            vectorsEast = new OpenLayers.Layer.GML( "Releases",
"pacific_E.json",
                                                { format:
OpenLayers.Format.GeoJSON,
                                                  styleMap: styleMap,
                                                  isBaseLayer: false,
                                                  projection: new
OpenLayers.Projection("EPSG:4326")}
												);					

Would i have to add 2 vector layers or do you think the coordinate
recalculations could be done at OL level from a unique Json file?

Thanks

Sylvain
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Vector-points-over-the-dateline-tp5478314p5481381.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list