-
Notifications
You must be signed in to change notification settings - Fork 130
Regexes and zooms parsed wrongly #343
Comments
Oh, here's the project.mml for completeness:
|
don't have the bandwidth right now to look closely, but certainly seems buggy. You might try running the latest carto from github master to see if the results are the same. You can run in from the command line against an mss file. See #245 (comment) for how I set up regression tests - might help to understand. |
From a quick look this might be related to #351, which I couldn't reproduce on latest master. |
Can be reproduced in latest master. |
produces the same problem.
works. |
This basically boils down to two things:
My solution was to do a index-based sorted insert in https://github.com/mapbox/carto/blob/master/lib/carto/tree/definition.js#L59. This worked for this issue but broke other things. I'm not sure how to go on. @springmeyer Maybe you have other ideas after this analysis? A branch with a test case and 1. can be found at: https://github.com/mapbox/carto/tree/issue_343 |
@nebulon42 thanks for digging into this. I don't have other ideas at this point. |
I'm not sure how to diagnose further, and am open to suggestions. Here's my code:
So here's what goes wrong.
Replacing the regex with
[tourism="anythingelse"]
works perfectly in all cases.Here's the mapnik.xml corresponding to the third case:
The text was updated successfully, but these errors were encountered: