-
Notifications
You must be signed in to change notification settings - Fork 268
Allow combine_below on each layer
#838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I've had a play around with this and it seems to work as expected. Adding some extra logging at the start of ProcessObjects, and with which looks right to me - or am I missing something? (Silly question - have you tried doing a Otherwise this is great - only suggestion I'd make is renaming |
Oh no, it's not a silly question at all!! It's my first C++ project, I didn't know I had to start with a
I wanted to keep I will finish the corrections, tests, and documentation tomorrow. |
687f63d to
553d329
Compare
|
Hi Richard, |
combine_below on each layercombine_below on each layer
It's not a global thing, it's just that tilemaker's Makefile doesn't know how to spot changes in header files. It annoys me too but I don't know enough about Makefiles to fix it unfortunately. Changes look great - thanks. I'll have a proper test and then merge this. |
|
Merged as #850 - thanks! |




Context
The fact that
combine_belowis defined in thesettingspart ofconfig.jsonis not very flexible, and not consistent withcombine_pointsandcombine_polygons_belowproperties, defined in each layer.Solution
Following #837 I tried to copy the logic of
combinePointsandcombinePolygonsBelowlayer properties to create a new propertycombineLinesBelowthat will store the value read in each layer definition inconfig.json.But it is not working 😥
tile_worker.cppis able to read the oldld.combinePolygonsBelowproperty but is not able to read the newld.combineLinesBelowproperty.shared_data.cppandshared_data.hseems fine to me, I just copied the logic ofcombinePolygonsBelow, I really can't see what I've missed.ProcessObjects()works fine if I force a value for its new boolean propertycombineLines, but inProcessLayer()the new Layer propertyld.combineLinesBelowvalue is always 0.Could you help me correct this? Thanks!