SVG marker/point-file display issues, weird grey boxes.

pguilford's Avatar

pguilford

13 Mar, 2012 05:44 AM

Hi,

I'm trying to display svg map icons downloaded from http://www.sjjb.co.uk/mapicons/downloads.

Currently there are grey boxes appearing, seemingly, at random. Screenshot

carto is:

#porto {
marker-file: url(icons/marina.svg);
marker-allow-overlap: true;
}

please instruct...

  1. 2 Posted by pguilford on 14 Mar, 2012 05:52 PM

    pguilford's Avatar

    might this be an issue with the icon xml, or possibly the shapefile attributes?

    does anyone know of a online xml reference for beginners?

  2. 3 Posted by Matt on 19 Mar, 2012 04:11 PM

    Matt's Avatar

    Hi,

    Mapnik is sometimes finicky when it comes to rendering SVGs (https://github.com/mapnik/mapnik/issues/search?utf8=%E2%9C%93&q...). You might try loading them in a vector editor like Inkscape and re-saving them and see if that fixes anything.

    Matt

  3. Support Staff 4 Posted by Dane on 20 Mar, 2012 04:47 PM

    Dane's Avatar

    Yes, this is a Mapnik bug. I've never seen it before because it appears that those SVG icons are using some fancy display tricks. We should support these tricks, and especially these icons (whose png versions were designed specifically for OSM mapnik rendering).

    I have created a new issue upstream at the mapnik site: https://github.com/mapnik/mapnik/issues/1137.

    At my comment: https://github.com/mapnik/mapnik/issues/1137#issuecomment-4599752 you can find a modified version of this svg file that should work in TileMill.

    Closing.

  4. Dane closed this discussion on 20 Mar, 2012 04:47 PM.

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

Recent Discussions

11 Apr, 2013 01:37 PM
23 May, 2013 01:25 PM
23 May, 2013 12:34 PM
23 May, 2013 04:55 AM
23 May, 2013 09:07 AM

 

23 May, 2013 08:47 AM