TileMill hangs if line-dasharray is set to 0

tilusnet's Avatar

tilusnet

22 Mar, 2012 10:57 PM

I was trying to set line-dasharray to its default value (manual says 'none'), so I did

 line-dasharray:none;

but nothing happened.

Then I set

 line-dasharray:0;

and the tilemill-tile process kicks CPU usage to 100% and rendering no longer happens until restart.
I can reproduce it every time.

Using Ubuntu 11.10, 64-bit.

  1. Support Staff 2 Posted by ian villeda on 22 Mar, 2012 11:11 PM

    ian villeda's Avatar

    hi tilusnet,

    the manual says 'none' because for a solid line, a dash array is null. to get rid of you dash array, simply delete the selector.

    line-dash-array accepts two or more integers: at least one defining the length of the line segment, and one defining the length of the break between line segments.

    to see line-dash-array in action, try something like

    line-dash-array: 4,6;

  2. 3 Posted by tilusnet on 23 Mar, 2012 10:31 AM

    tilusnet's Avatar

    hi Ian,

    Finally I simulated a revert to the default 'solid' line by setting

    line-dasharray:1,0;
    

    I cannot delete the 'parent' selector because it is needed by other subsequent blocks.

    So to summarise my points here:

    1. there's no way to revert line-dasharray to its default value programmatically, unless simulated with the example above
    2. tilemill crashes if you provide unexpectedly formatted values, e.g. "0"

    In any case I am okay with my workaround, if you want take my points as suggestions for improvements.

    Thanks.

  3. Support Staff 4 Posted by Tom MacWright on 09 Apr, 2012 04:27 PM

    Tom MacWright's Avatar
  4. Tom MacWright closed this discussion on 09 Apr, 2012 04:27 PM.

Comments are currently closed for this discussion. You can start a new one.

Recent Discussions

25 May, 2013 09:23 PM
13 Apr, 2013 08:52 PM
25 May, 2013 08:35 PM
17 May, 2013 05:14 AM