Opened 13 years ago
Last modified 13 years ago
#7935 closed defect
Mapcss parser throws an error when zoom limiting a 'node:connected' selector — at Version 1
Reported by: | AndrewBuck | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | |
Keywords: | mapcss | Cc: |
Description (last modified by )
A mapcss style file that tries to limit the drawing of connected nodes to only certain zoom levels will throw a parse error (and the corresponding rendering rule will be ignored) if you try to limit the drawing of nodes shared between more than one way to only certain zoom levels. The example below parses and works as expected for the normal node clause, but the node:connected clause throws a parse error and is ignored.
node|z16-
{
symbol-shape: circle;
symbol-size: 4;
}
node:connection|z16-
{
symbol-shape: circle;
symbol-size: 8;
}
The snippet above is taken from the Styles/Surface-DataEntry paint style.
A possibly related issue (although it may be a separate bug, or a problem with the mapcss stylesheet above) is that when I remove the |z16- clause from the node:connection statement, if I then split a way in JOSM, the node where the split happened is not changed into a 'connection' node and is just left as a normal node. Disabling and re-enabling the paint style redraws the node correctly as a node:connection style node.