This repository has been archived by the owner on Jan 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 130
Question about class and nested selectors #304
Milestone
Comments
yohanboniface
added a commit
to hotosm/HDM-CartoCSS
that referenced
this issue
Sep 24, 2013
Workaround for mapbox/carto#304
Closing here, I think I've just hit #20 actually. |
For the record (interesting lines are poi-point and poi-poly):
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I ran yesterday in a very very slow rendering of the HOT style in Tilemill, which, after some investigation, turns to be related to the syntax of the poi.mss file. This syntax was an attempt to factorize the cartocss code, but it appears to have a very bad impact on performances.
So, if we narrow the code to a sample, it looks like this:
What I think I'm doing here is targeting
When I look at the Mapnik output generated by Carto, I see that I'm clearly missing some behaviour. It appears that both selectors are finally, partly, joined:
And I must say that I don't understand why.
I'm expecting this syntax to be just a DRYer version of the following:
And thus, according to what I think I'm doing, I would expect a Mapnik XML more like this:
But it's not :)
So I guess I'm doing something wrong, but what? :)
Thanks in advance!
(Oh, and so the actual poi.mss turn to 292753 lines of XML, which is the reason of the slow rendering of zoom 10 ;) )
The text was updated successfully, but these errors were encountered: