Hello Sylvain, While not the most efficient, you can create 3 features for each item. If you are creating Point features, convert them to MultiPoint, LineString to MultiLineString, and Polygon to MultiPolygon.
Place one set in the X coordinaties < -180, one set in the X coordinates > -180 and < 180, and the last set in the X coordinates > 180. Essentially, triple the features used, and draw 3 'globes' worth of features. You may see a flash when crossing the dateline, but your features won't disappear when you cross the dateline (E to W, or W to E). In practice, the extra features are not rendered because the renderer only renders vector features that are visible in the viewport at any one time. z On Mon, Aug 30, 2010 at 10:06 AM, springrider <springri...@hotmail.com> wrote: > > Good morning > > I am currently working in the pacific area from Indonesia to Polynesia and > need to display pie charts based on population statistics. > I followed this tutorial > http://thematicmapping.org/playground/openlayers_piecharts_geojson_google_chart.php > and am really impressed by styling capabilities of OL. > > But (there is always a but), when i try to display my pies around the > dateline, the display is getting problematic, both points on each side can > not displayed at the same time and the map is always flashing when moving > around the dateline. > Moreover i had to convert negative data into positive such as -160 to 200. > Is there any workaround to display vector layers using OpenLayers in the > Pacific area? > > Thanks in advance for your help, everything is working fine except this last > but essential aspect. > I implemeneted the patch available here: > http://trac.openlayers.org/ticket/2787 but didn't change anything. > > http://osgeo-org.1803224.n2.nabble.com/file/n5478314/OL.png > > Sylvain > > -- > View this message in context: http://osgeo-org.1803224.n2.nabble.com/Vector-points-aver-the-dateline-tp5478314p5478314.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > Users@openlayers.org > http://openlayers.org/mailman/listinfo/users >
_______________________________________________ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users