Git Product home page Git Product logo

Comments (3)

chrieke avatar chrieke commented on May 22, 2024

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.

beingalink avatar beingalink commented on May 22, 2024

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.

chrieke avatar chrieke commented on May 22, 2024

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:
image

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)

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.