Giter Site home page Giter Site logo

Comments (4)

arktisma avatar arktisma commented on June 23, 2024

Is this bug still active? Because I have attempted to run a line from Pitcairn Island to Opua, New Zealand, and am encountering this bug, whereby the line is rendered in reverse to its destination (NZ).

This seems like a fairly significant bug... Are there any workarounds? I am attempting to plot a round the world route. Here is a screen cap: http://cl.ly/1e2R1J2d3M1b193L011i

from polymaps.

arktisma avatar arktisma commented on June 23, 2024

Additionally, if I attempt to stop my linestring 0.0 and start it again at 180, I encounter a secondary issue: http://cl.ly/0N383q1I2w2e3M3P2X2c

from polymaps.

mbostock avatar mbostock commented on June 23, 2024

If you use longitude values greater than +180 or less than -180, you can force Polymaps to pick one side of the Earth, rather than bouncing between the two.

from polymaps.

arktisma avatar arktisma commented on June 23, 2024

Ok, I'm a bit confused. This is my JSON...

[
{ "source": [ -122.51541137695312, 37.80761398306056 ], "target": [ -72.70751953125, -55.54106495611102] },
{ "source": [ -72.70751953125, -55.54106495611102 ], "target": [ -67.269287109375, -56.016807763203204] },
{ "source": [ -67.269287109375, -56.016807763203204 ], "target": [ -109.3664237, -27.1211919 ] },
{ "source": [ -109.3664237, -27.1211919 ], "target": [ -127.439308, -24.703615 ] },
{ "source": [ -127.439308, -24.703615 ], "target": [ -0.0, -143.94241333007812 ] },
{ "source": [ 180,-35.3130147 ], "target": [ 144.9629796 , -37.8131869 ] }
]

The last line of the above JSON, is the linestring that is being pushed onto the wrong side of the map.

from polymaps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.