I have a CartoDB map which has two layers. I want both to display, and I want both to be category maps — there are 3 categories in each which display as three different colors. But I want to distinguish between them by marker shape. Ideally, one layer will be a circle and the other will be a triangle or a square.
I see that I can choose "ellipse" or "arrow" as a marker-type in CartoCSS. Arrow is not useful for my purposes as it doesn't have enough space to show color. Apparently "rectangle" was supposed to exist, but hasn't been implemented for non-torque maps.
Chris from CartoDB suggested using an SVG icon, which DOES allow being filled in with the given marker-fill. I'm guessing this is because the fill for the square in the SVG file is "Undefined," and thus able to be inherited. Unfortunately, when I do this, the squares look terrible on my map because they're all pixelated. They also don't have sharp borders, even though I've provided a border in the image.
The only solution I've been able to think of thus far is to create PNG/SVG icons with the required colors, upload them and use them directly for each category. This is obviously not dynamic, but at least it would be aesthetically acceptable.
Is there some other solution I'm not thinking of? Does anyone know why the SVG seems to be rendered and then resized such that it becomes pixelated?