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

learn more… | top users | synonyms

0
votes
0answers
8 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: ...
-1
votes
0answers
14 views

How to use longitude and latitude coordinates to make a mobile network coverage map using mapbox [duplicate]

I am new to mapping and currently I am trying to make a map showing coverage of a network provider here in my country. The map I am trying to achieve should look similar to that at ...
0
votes
0answers
31 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 ...
1
vote
1answer
20 views

TileMill : set minzoom to layers?

i found in this post: CartoCSS layer visibility a solution to set a layer not visible for some zoom levels. But in https://github.com/gravitystorm/openstreetmap-carto it seems that a minzoom ...
0
votes
1answer
30 views

Adding a border on hover to a CartoDB map

I have created a map of pedestrian collisions in Toronto in CartoDB. I would like the border of each neighbourhood to be outlined in a dark colour on hover. Is it possible to modify the CSS to achieve ...
1
vote
1answer
16 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 ...
0
votes
1answer
30 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
36 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
0answers
9 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
59 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, ...
1
vote
2answers
55 views

Mapbox Natural earth map disappears on zooms 0 & 1

As the title says, I'm currently using mapbox to create a little atlas app the issue is whenever I zoom out to anything lower than zoom level 2, the map dissappears with the map background being the ...
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
22 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 ...
2
votes
1answer
156 views

How to render tm2 projects

What are the options for rendering tm2 projects? As far as I know the open source Mapbox tm2 projects have proprietary data sources (like OSM Bright 2), thus they are of little use, but some other ...
1
vote
1answer
129 views

osm2pgsql vs imposm rendering performance

Is there any difference in rendering performance between using a osm2pgsql vs imposm imported PostGIS DB in Mapnik? Or asking it differently, is there any downside of using imposm if I only want to ...
0
votes
0answers
30 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
15 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
10 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.
1
vote
1answer
58 views

CartoDB toggle buttons not working with my data?

We are taking CartoDB data for this Canadian election map -- http://cdb.io/1TabLyz -- to create a version that adds toggle buttons to filter by political party. However, the buttons only work ...
-1
votes
1answer
58 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 ...
0
votes
1answer
79 views

How to alter labels in Mapbox Streets in Mapbox Studio

I am creating vector tiles in Mapbox Studio v5 based off of the MapBox Streets layer. I want to alter the labels that appear over buildings, parks, schools, churches etc. but I cannot find the code ...
1
vote
1answer
71 views

CartoCSS: building polygon by tag

I'm using MapBox Studio to create a personalized map for slums. In OSM we have many polygons representing buildings and I need to style them according to their "building" tag. For example, the ...
8
votes
1answer
192 views

What is the future of CartoCSS (i.e. does it have one)? [closed]

MapBox recently announced that they would be moving away from CartoCSS towards a completely visual interface. Apparently the new style sheets that underlay that UI will be JSON based, so despite the ...
1
vote
0answers
22 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
1answer
146 views

CartoDB Torque: show severity by size of marker?

I have a dataset containing the cost of damage caused by individual floods over the past 100 years. I'd like to use TORQUE to display these events on a map over time, with their severity shown by the ...
0
votes
0answers
61 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 -> ...
1
vote
1answer
69 views

What OSM information to use for low zoom levels to get a style similar to MapQuest

I am building an outdoor map of Europe. Everything looks pretty nice when zoomed in. But when I am zoomed out, my map looks pretty boring. Most parts are white. In low zoom levels I display polygons ...
1
vote
1answer
151 views

External font in CartoCSS

I want to use a non CartoDB-installed typeface (one from typography.com) for the place labels (closer than 14z) on the map at http://outgoingnyc.com. So far if I try to do it in the css, it fails ...
0
votes
1answer
64 views

Distance between waterway labels in CartoCSS

How can I manage distance between waterway labels (names of rivers) in cartoCSS?
1
vote
1answer
88 views

Torque map: dates by year; year in slider text

I would like to put the year in the slider text and for the data to be scrolled through via year. Apparently it was working until three weeks ago, and now doesn't. In particular the slider now ...
0
votes
0answers
180 views

Large road labels and roads on high zoom level

I am making small maps to print on small paper cards with the street people live in and the surroundings. The paper card has the dimensions of a printed photo, around 10x15cm. First, I made a ...
0
votes
1answer
41 views

How to restrict the number of symbols in feature name in CartoCSS?

I make a tourist map with CartoCSS in TileMill. There are several zooms and I would like to show markers of the objects on 15 zoom and their labels (names) on 16 or 17 zoom. If the number of symbols ...
0
votes
0answers
51 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 ...
1
vote
1answer
83 views

CartoCSS: Filter by json field

In a MapBox Studio project of mine, I have field values that are stored as JSON values. My features all have attributes like: id 48545756 meta {} relations [] tags ...
0
votes
1answer
216 views

CartoDB: How to I cluster by features? Is it even possible?

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 ...
1
vote
1answer
127 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
3answers
103 views

Is there a way to add a 'home extent' to a cartodb map?

Within the zoom bar, is there a way to include a home extent button that the user could click to zoom to the same extent as the initial extent of the map?
0
votes
1answer
31 views

Where can I find the SQL queries for use with OpenStreetMap-Carto?

I found the OpenStreetMap-carto stylesheets (.mssfiles) here. I also found an issue discussing a problem with a SQL query here. Does anyone know where I can find the SQL scripts to build the layers ...
0
votes
0answers
78 views

CartoCSS problem with zoom levels - polygons are turned off

Can someone help me where could be a problem with CartoCSS rule below? I'm not able to see "school" polygons at z11-13 though rule seems to be written correctly:>>> [zoom>=11][zoom<=15]. Polygons ...
0
votes
1answer
564 views

CartoDB adding custom legend to sublayer

Here's what I'm trying to do: I have a map with selectors that load data from the same table (using SQL) based on what you selected. This all works great (code below). What I want is for a legend to ...
0
votes
1answer
113 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 ...
1
vote
2answers
211 views

Bring marker on same layer to front in CartoDB

I'm using a category map showing markers based on the value of one column. They can be one of two values. One is for customer location and the other for store location. I'd like to have it so that ...
1
vote
1answer
323 views

Marker icons overlapping street names in Tilemill

I'm new to CartoCSS and I'm trying to properly add subway markers on a map using Tilemill and OSM data. My problem is that some street names stay behind my marker icons : I have add ...
0
votes
2answers
108 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
850 views

Including chart based on fields in CartoDB infowindow?

I would like to make graphs, pie charts, etc based on fields in my table within my infowindows. Is there a way to accomplish this?
1
vote
1answer
223 views

CartoCSS Expression for shield-name

Is there any way to use a regular expression to filter a string when using CartoCSS expressions? I have geojson of some ways and route relations I obtained using Overpass Turbo. When creating a new ...
1
vote
1answer
108 views

Flow direction CartoCSS

I'm working on a TileMill project essentially displaying freight routes. The original shapefile contains a origin city and a destination city (and a path between both cities). When I apply a ...
0
votes
1answer
548 views

Is there a way to customize the zoom button and legend in cartodb js?

I am following this tutorial, http://docs.cartodb.com/tutorials/toggle_map_view.html, and have been successful in developing an application with similar functionality, currently I am working on ...
0
votes
1answer
47 views

MapBox Studio - Reverse Character Strings

I am working on a project in MapBox studio where I had to flip all the labels 180° that were on lines. Since its not possible to use text-orientation for labels on lines, I flipped the font file 180 ...
1
vote
1answer
132 views

CartoCSS: labels along inside of polygon boundary

I'm using CartoCSS to render maps that include large polygons (like national parks). At higher zoom levels I want labels along the inside of the polygon boundaries, like in OpenStreetMap: I ...