Comments (3)
Hi @beingalink thank you for the kind word. Do you have an example address or coordinates where this is happening? Will make it easier to find a solution while keeping the distinct style.
from prettymapp.
Hi, thanks for your reply. IMHO you should be easily able to fix that by changing the zorder to that of the other styles. Anyway, here is a script to get an example for the issue at hand:
from prettymapp.geo import get_aoi
from prettymapp.osm import get_osm_geometries
from prettymapp.plotting import Plot
from prettymapp.settings import STYLES
aoi = get_aoi(address="Göttingen, Germany", radius=1200, rectangular=False)
df = get_osm_geometries(aoi=aoi)
fig = Plot(
df=df,
aoi_bounds=aoi.bounds,
draw_settings=STYLES["Peach"],
name_on = True,
name = "Göttingen",
font_size = 25,
font_color = "#2F3737",
text_x = -44,
text_y = 49,
bg_buffer = 2,
bg_color = "#F2F4CB",
).plot_all()
fig.savefig("map.png")
On the left side is a small river that should be blue.
Hope that helps.
from prettymapp.
I see what you mean, Z-ordering of the Peach style really is different than the others. In your case the issue is that Peach draws water (the river) first (zorder: 1), then the grassland area is drawn above, so the river doesn't show up anymore.
However there also issues with the other oder. When drawing water above grassland etc. it can hide islands etc. like in the first example:
Need to think about this, maybe you also have any thoughts how the drawing order should be prioritized in general to have the least amount of errors.
from prettymapp.
Related Issues (20)
- Export image HOT 1
- Gallery
- Randomize button HOT 1
- Extend prettymapp docs HOT 1
- Addresses HOT 1
- Unable to change colors in python package HOT 1
- Error running app HOT 4
- Converting elements to geometries can be very slow HOT 4
- Website down HOT 2
- Error running app. If this keeps happening, please contact support. HOT 2
- https://prettymapp.streamlit.app/ HOT 4
- License? HOT 2
- Page won't load
- Seems to be broken HOT 2
- Demo not working - error page HOT 2
- A wonderful work, can I get a map without tag on the bottem right? HOT 4
- Fx_Map(Idea) HOT 1
- Provide a way to export and import custom styles HOT 4
- Buildings are only partially rendered HOT 3
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 prettymapp.