CartoCSS is a CSS-like language used in TileMill and Mapbox Studio Classic to style features.

learn more… | top users | synonyms

0
votes
2answers
127 views

How to chose which line goes on top of the other line

I am trying to do something very simple, but apparently impossible. Overlay two lines with different size and color signing same route different direction. Like this one: ...
2
votes
1answer
132 views

TileMill: How to mask layer without loosing background

I have a large geotiff with elevation gradient which I want to use to colour my map. However the coastal line of the geotiff doesn't excacly match my shapefile so I want to mask it. The problem is ...
1
vote
1answer
34 views

CartoDB – How can I place labels from one layer on top of an overlapping layer?

I have two overlapping polygon layers and I'd like to display the labels from the bottom layer on top of both layers so they're easily visible. Is there a way to do this with CartoCSS? Some sort of ...
1
vote
1answer
146 views

Custom icons for Torque Categories in CartoDB

We’re developing a project with CartoDB and we want to show the elements clustering by zone and showing the most used one (Mode). We're doing this with Torque Categories, and it works! :) The ...
1
vote
1answer
43 views

How to turn off caching of fill patterns in TileMill?

I'm using CartoCSS in TileMill and png files on disk for filling polygon symbols with patterns. polygon-pattern-file: url('sprites/yard.png'); The display is ok the first time, but when I change the ...
1
vote
1answer
409 views

How do I make my Cartodb info windows wider?

According to my read of andrewxhill (more readable version) I should be able to change the info window size by adding CSS, like so: <div class="cartodb-popup header with-image" ...
0
votes
1answer
17 views

Create Choropleth Style Map in CartoDB programmatically

I am trying to create a choropleth map for a school project I am working on. Based off user input, I will create a csv file that I will then upload to CartoDB using their Import API. By setting the ...
0
votes
1answer
38 views

Creating a runtime visualization with CartoDb

I am trying to create a runtime visualization for a CartoDB map and I am quite the trouble with doing it. I have gone over the documentation and cannot get the code to work correctly at all unless it ...
0
votes
1answer
21 views

Can I have two variables in CartoCSS?

Within CartoDB my CartoCSS looks something like #table_copy_1 [ lease_rate <= 55.15] { marker-width: 35.0; marker-fill: #081B47 } Can I add another variable (size) so that the display ...
0
votes
1answer
51 views

Tilemill/openstreetmap-carto, how to remove unwanted road lines

I am using Tilemill and the openstreetmap-carto style. The latest versions of each. I was curious to why these Center-lines are showing up in my highways and roads, and I am unable to get rid of them. ...
0
votes
1answer
55 views

CSS Styling Torque in CartoDB

I am trying to make a map that would show the total load of a bus. I have plotted the route and set up the time constraints. The ellipse is moving and seems to work fine, but when I try to style the ...
0
votes
1answer
251 views

How to I cluster by features in CartoDB?

I have a set of points for a number of buildings in NYC. I would like to group those points into clusters per their respective neighborhood (ex: Chelsea, Upper East Side etc.). Each of my points have ...
0
votes
1answer
147 views

Dynamic rendering on a layer with a long SQL query

I have a question on dynamic rendering with the cartodb APIs. These APIs are new for me. Data is a big layer stored in cartoDB (about 30 000 polygons). In my application the default rendering of ...
0
votes
1answer
60 views

CartoDB Density View

Is the Density View for CartoDB no longer working? I have looked at three datasets on multiple accounts, and none of them are working correctly. They show only 1 bucket color, no matter the density. ...
0
votes
1answer
74 views

Styling based on hex color codes within table?

I have a table of polygons named 'testtable'. Within it is a column 'color', which has hex codes. I want to style the polygons based on the hexcode values.. is this possible? I was trying something ...
-1
votes
1answer
63 views

Marker line in CartoCSS

I'm trying to symbolize a line layer in CartoDB using CartoCSS. I need my line to be a series of diagonal lines, something like this -> ///////////// In QGIS I would do this as a marker line with a ...
-1
votes
1answer
159 views

Tilemill + metro.teczno.com

I downloaded the Milan shape files from metro.teczno.com and I imported these into tilemill. Exist any cartocss file to define all layers created by shape file? Or need to be created from scratch ?
14
votes
0answers
766 views

Converting from SLD to Carto CSS?

I have a bunch of layers and corresponding SLD's running a WMS service. I was exploring the possibility of shifting to a TileMill's tile based TMS service. For this, I would like if it were possible ...
2
votes
0answers
80 views

CartoCSS : Style a road using a road_label rule

The parisian ring road (and probably others) usually looks a bit off (especially at low zoom levels), because in OSM it has been created as two independant 'main' roads, instead of one 'highway'. ...
2
votes
0answers
125 views

CartoCSS: Don't show border between adjacent polygons

In OSM, riverbeds are created as multiple adjacent or even overlapping polygons. When styling these polygons in CartoCSS with a border, the overlapping can be seen: I'd like to hide that line ...
1
vote
0answers
30 views

Creating Legends in CartoDB?

I'm trying to add a legend to a simple choropleth map using the ui for custom legends. But I'm not sure where to put it in my code, if it should be within the createLayer function, or outside of it, ...
1
vote
0answers
25 views

Tilemill: Render a raster only where a shape layer is underneath

I'd like to mask a raster to only those areas, where there is a shape layer underneath. To be more precise: I have a land layer and a hillshading on top and I only want my hillshading to appear on top ...
0
votes
0answers
6 views

How might I change the symbology of a certain points in a layer based on an SQL statement?

I have been playing with toggling layers in CartoDB--pressing buttons and changing the subset of the data being displayed. Now I want to do something a little different. Rather than change the entire ...
0
votes
0answers
16 views

CartoCSS: labels below road when road east-west

In styling major road text labels along paths, I am attempting to force the labels beneath the road path, especially for roads with east-west direction (i.e., horizontal). My application of text-dy ...
0
votes
0answers
12 views

CartoCSS: alpha blending with comp-op

Using CartoCSS/Tilemill, I have one layer for the land polygons and one for urban areas, as follows: #zoomed-polygons[zoom>7] { polygon-fill: white; } #urban[zoom>=4] { polygon-fill: ...
0
votes
0answers
43 views

Cartodb: Linking social data to road color scheme

I am recreating this "smelly maps" project on cartodb. I'd like to create symbology on roads (IE: color roads red,blue,green,yellow) based on the information I am receiving on social media. View ...
0
votes
0answers
19 views

Thousands separator for numeric value labels with CartoCSS

Is there any way to style labels with a thousands separator in CartoCSS without re-creating the column as a string?
0
votes
0answers
66 views

Cartodb map style changes when clearing view

I'm losing the custom settings of my map when I perform simple filtering analysis and "Create Dataset from Query". Here's what I'm doing: I've created a map where I've specified my color scheme, ...
0
votes
0answers
10 views

Raster layer underneath others

I have a TileMill project going. It's my first one ever. I have a raster layer in my map which I got from here. Unfortunately, it covers/hides all my labels. Is it possible to order layers? So that ...
0
votes
0answers
34 views

Mapbox Cartocss: Associating field values to building-fill fails to apply

I have uploaded a shapefile with buildings with a field names [height] and [color], values stored are for height 1 to 4 and for color 1 to 10. I want to color based on that colors, code starts ...
0
votes
0answers
36 views

Tilemill styling with openstreetmap data - labeling boundaries

I have UK county boundaries (boundary=ceremonial) and want to give them labels that periodically run along the boundaries on the inside of the county. Just like polygon shapes do - eg, you can give a ...
0
votes
0answers
16 views

How to allow-text-overlap for one layer in Tilemill

I have a map that displays Countour-Lines including height labels. Those labels should be treaded as "background". So f.e. a village label should appear on top of on of those labels. If I set the flag ...
0
votes
0answers
12 views

How to align text in the middle of an object with CartoCSS

How do I show up a text only once and center it in the middle of the object (in this case building) using CartoCSS? Here in the image you can see that the text "Terminal 1" shows up multiple times.
0
votes
0answers
72 views

CartoCSS: raster custom transparency color value?

In QGIS (and probably other GIS tools) you can style a raster layer such that certain pixel color value(s) will be rendered as transparent. In QGIS 2.6, this can be set in Layer Properties -> ...
0
votes
0answers
58 views

Is it possible to include '#' in CartoCSS string values (in CartoDB)?

I have a few tables in CartoDB that come from an external source. There is a name column that contains a few values with # in them. I would like to style particular features in the table, so I use ...
0
votes
0answers
422 views

Tilemill/CartoCSS: how to center label in a polygon

For some reason, labels are always placed in the bottom right of a polygon. I want them in the center of a polygon. I tried these: text-horizontal-alignment: middle; text-vertical-alignment: middle; ...
0
votes
0answers
174 views

torque cartodb heatmap at higer zoom levels

I am trying to use cartodb torque to display overtime location data using Cartodb Torque. Vizualization works great at zoom level 9, but when i zoom in further to level 13 instead of the intensity i ...