Giter Club home page Giter Club logo

Comments (4)

wolframteetz avatar wolframteetz commented on September 3, 2024

There are also some issues on the image generated

a) There is one weird line "across europe".
b) Close to venice, the travel time decreases when travelling out into the ocean. This is very weird, don't know where that comes from... Probably mapbox knows I own a small private airplane and if going to the adriatic sea over the weekend, I won't go by car. Clever, mapbox, clever.

from isocronut.

wolframteetz avatar wolframteetz commented on September 3, 2024

Apart from these minor issues, this is GREAT STUFF ;)
I love it

from isocronut.

drewfustin avatar drewfustin commented on September 3, 2024

a) Ah yes. I spent an entire day trying to figure this nonsense out. The problem: if the points you randomly pick are within too small of a region to fully contain the isochrone contour, the isoline will go "off the screen," so to speak. So instead of being a closed loop, these contours will be something like 2 separated lines. Connecting those points then gets confusing, which is why the contour jumps across the map. The solution: make the bounding boxes from which random points are drawn larger.
b) Water, man. I have no idea what MapBox is doing when you throw them a point out in the sea. I just hope it handles it intelligently. Guess not...

Anyhow, in summary, it's probably best to describe exactly what:

        var m = [50, 150, 300];
        var s = [50, 100, 100];

is doing. That means, for a box of size (m[0] = ) 50 miles on each side (I think), draw (s[0] = ) 50 points. For a box of size (m[1] = ) 150 miles, draw (s[1] = ) 100 points. For a box of size (m[2] = ) 300 miles, draw (s[2] = ) 100 points. I do it this way so regions near the origin are well-explored with higher density points. You can't just add a billion points because the complexity crashes it (which I think is what you're seeing). So, to get the most accurate contours, I tried this method.

The fun part about this is that the way I have it done is sort of stupid/hacky. There's an actual CORRECT choice for the test point density distribution to make this optimal. I just haven't put the time into figuring out what it is. Presumably, it's something that goes as 1 / r^2.

from isocronut.

vidiot1969 avatar vidiot1969 commented on September 3, 2024

I too experience these browser errors as described by Wolf, "Ajax failed to fetch data". Was there any solution? It does not not seem to matter how closely zoomed in I am. Thanks!

from isocronut.

Related Issues (9)

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.