[OSM-dev] Questions on modifying openstreetmap-carto

ika-chan! (OpenStreetMap) mapper+dev at minoa.li
Wed Aug 26 07:50:35 UTC 2020


Hello again,

I am starting to get the basics of adding new fields to project.mml, but I now wish to update “amenity-points” so that bus stops use the network name from the “stop_area”, like they do in France. At the moment I can manage:

    tags->'network' AS network,

… which calls up the network tag from the node only. How do I make it to read from the “stop_area” relation too?

Apologies for being very specific: I am very new to anything beyond simple recolours.

— ika-chan!

> On 25 Aug 2020, at 21:44, Andy Townsend <ajt1047 at gmail.com> wrote:
> 
> On 25/08/2020 19:52, Mateusz Konieczny via dev wrote:
>> Yes, I always used normal text editor.
>> 
> Same here.  There are projects such as https://wiki.openstreetmap.org/wiki/TileMill which were / are designed to automate map reloading after changes, but when I last used TileMill (a long time ago) there were signnificant problems using TileMill with an OSM Carto-derived style (not least - there are so many tabs that they disappeared off the screen).  I tend to just reload when I want to rerender.  When changing my own OSM Carto-derived map style I use https://github.com/SomeoneElseOSM/SomeoneElse-style/blob/master/update_render.sh and https://github.com/SomeoneElseOSM/SomeoneElse-style/blob/master/update_carto.sh to reload data (the first if a lua script has changed and the database needs to be reloaded; the second if only a style file has changed and the style just needs to be recompiled).
> 
> 
>> If you want to see how changes are done
>> I would recommend looking at pull requests
>> and commit history.
>> 
> I tried to summarise "Adding a change to OSM Carto" at https://www.openstreetmap.org/user/SomeoneElse/diary/43041 ; some of that won't be relevant but some of it might still be - things like testing the effect of a colour change.
> 
> If you haven't seen it already, please do read https://ircama.github.io/osm-carto-tutorials/git-workflow/ and the related tutorials there - they're excellent!
> 
> Best Regards,
> 
> Andy
> 
> 
> 
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/dev




More information about the dev mailing list