Comments (10)
If anyone finds this issue take a look at:
from folium.
I'm honestly not sure how to address this- seems like a GeoJSON or TopoJSON polygon issue?
from folium.
@wckoeppen: this artifact is a common projection issue, but a cartographer would be able to explain it better than me (I'm just a programmer). Post this as a question at http://gis.stackexchange.com/ and you will get a good explanation and a few solutions.
from folium.
Thanks @scardine, I know I can change those lons manually (with code), but it seems overkill for the simple display that I'm using this for. I'll probably just live with it.
from folium.
that sucks.....
from folium.
I'm thinking about alternatives for solving this:
- automatically split polygons that cross the international date line
- have an alternative projection where the international date line is placed somewhere else
from folium.
@wckoeppen do you have a branch that contains an example we can look at, that also includes the geojson you are using? might take a look over the weekend
from folium.
@birdage whoops! sorry, somehow I missed seeing this. Here's the ipython notebook:
https://github.com/wckoeppen/bering-seabird-vulnerability/blob/master/bin/Bering%20Seabirds.ipynb
The geojson is in the second cell.
(But don't judge me on my terrible loops and other bad coding practices, I'm new.)
from folium.
@wckoeppen ALL THE JUDGEMENT! (kidding, ill take a look)
from folium.
I'm honestly not sure how to address this- seems like a GeoJSON or TopoJSON polygon issue?
After reading a lot about the GeoJSON format specs I found out that the recommend way around this issue is to break the -180, 180. Here is an example:
http://nbviewer.ipython.org/gist/ocefpaf/f03e2cb878c891716518
I am closing since we don't have any plans to try to be smart about this issue and do that automatically.
from folium.
Related Issues (20)
- AttributeError: module 'folium' has no attribute 'plugins' HOT 1
- Marker with same ID results into broken html HOT 1
- Make Folium follow the Leaflet class hierarchy more closely HOT 4
- Add example pattern for pulling JsCode snippets from external javascript files HOT 9
- Support function objects in Leaflet options. HOT 3
- HTML does not work when run on mobile. HOT 2
- Blue Lines when using TimestampedGeoJson in Folium HOT 2
- Docs not quite representative of the real "latest" version? HOT 10
- No popup when clicking on specific icons (BeautifyIcon plugin) HOT 5
- Geocoder plugin not working in Google Chrome HOT 3
- Making a tooltip stay when clicked on a marker/shape HOT 1
- Add Code of Conduct HOT 1
- Realtime Circles have non-changing radii. HOT 2
- Adding Multiple Clusters to map HOT 3
- Add support to map ruler based on configured projection HOT 3
- Request for Assistance: Multi-Marker Selection and Value Summation Display in Folium Map HOT 1
- Using HeatMapWithTime together with TimestampedGeoJson HOT 2
- Fix FitOverlays when using multiple Tilesets HOT 3
- Release v0.17.0 HOT 3
- opened_symbol option in TreeLayerControl not functioning HOT 2
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 folium.