Comments (4)
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.
Apart from these minor issues, this is GREAT STUFF ;)
I love it
from isocronut.
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.
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)
- Cannot run your example - ConfigParser.NoSectionError: No section: 'api' HOT 2
- Configparser error after 2to3 conversion HOT 5
- Can't start from local on my PC. The project might update "map"
- Google APIs HOT 3
- UnicodeEncodeError when using outside of US HOT 6
- Exception: Error. Google Maps API return status: ZERO_RESULTS for geocode_address HOT 6
- Doubt on isochrones for 2 hours HOT 7
- Map marker not within isochrone HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from isocronut.