CartoCSS is a CSS-like language used in TileMill to style features.

learn more… | top users | synonyms

1
vote
1answer
25 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
44 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
21 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
24 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
1answer
24 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
60 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
0answers
55 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
60 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
19 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
39 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
77 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
53 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
0answers
35 views

CartoDB map won't render at all with cartodb.js or display markers with embed

I've tried to load a visualization I've made using cartodb.js and it simply doesn't appear at all. If I look in the network call response, there's this rather cryptic error: ...
1
vote
1answer
53 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
122 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
44 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: ...
1
vote
1answer
279 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
100 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
0answers
46 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
141 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
37 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
0answers
51 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 ...
0
votes
1answer
95 views

how do i change my map's styling in mapbox using mapbox.js?

i really searched for it high and low but couldn't find it!! I am using mapbox.js for this. i am working on the project which requires to change the styling of map, eg: area,land and water colors on ...
0
votes
1answer
39 views

Reduce building size in tilemill

I am designing a map of very densely populated area in Tilemill. I am using OSM building data. Due to having a lot of buildings it is very difficult to differentiate one building to another. Is there ...
0
votes
1answer
111 views

Add MapBox sourced hillshade to MapBox Studio project

I am working on a MapBox studio project that was originally the pre-styled 'OSM Bright 2'. I have since made lots of edits and would now like to add some subtle hillshading. I can see hillshading is ...
4
votes
2answers
108 views

How to use external CartoCSS/mss within JavaScript?

I am using CartoCSS to style features in a run-time CartoDB layer (as opposed to a pre-made visualization) but it gets messy doing this within JavaScript: sublayers: [{ cartocss: '#initvisitedfws ...
0
votes
1answer
61 views

How to place the label on the map once in TileMill?

I am trying to create a basemap in tilemill. Very new to this software. When I add the label styling for the roads, it adds the name several times. Is there a way to have it only place the label on ...
0
votes
0answers
35 views

Points of interest

I am using OSM Bright carto template for rendering my own OpenStreetMap data. When I imported data with osm2pgsql I specified sytle openstreetmap-carto. Points of interest (amenities) are in ...
0
votes
1answer
90 views

Pattern styled polygons in Tilemill

I'm just learning CartoCSS with Tilemill. I've got a really simple requirement for styling a polygon but cannot find any hint nowhere. What is the code for styling simple polygon fills e.g. can be ...
0
votes
1answer
67 views

Rule -torque-frame-count not allowed for Map

I'm simply trying to recreate a map I've already made successfully but with an updated table. I added the table to CartoDB, selected "Map View," and then selected "Torque Cat." Aside from doing those ...
0
votes
0answers
5 views

TorqueCat Line 4 Error

I am getting errors when trying to use TorqueCat. I've attached pictures of what the errors say. Anyone else having this issue? Is CartoDB updating the site right now or something? I'm not sure what ...
1
vote
1answer
344 views

Cant get infoWindow to show in CartoDB dynamic layer

Heres my very simple code. <title>Leaflet multilayer example | CartoDB.js</title> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <meta ...
3
votes
1answer
31 views

Min distance for markers in CartoCSS

I used shields in CartoCss to show the subway stations on my map. When I started to develop the map for mobile devices, I noticed that svg images in shields were destorted hugely and I decided to use ...
-1
votes
2answers
138 views

Error while building OSMBright

Error while building OSMBright when i run the make.py the following error is coming Traceback (most recent call last): File "./make.py", line 123, in <module> build() File ...
1
vote
1answer
66 views

How to filter a Cluster Map at run time

I think I am a bit confused with CartoDB when doing maps at runtime. Let's say I have a Cluster Map that includes all my data. However, I want to filter by a field. I thought one could simply set ...
1
vote
2answers
197 views

Marker with text overlap in Tilemill

I am trying to create markers with text-labels inside in Tilemill. As I don't want close markers to overlap I have the marker-allow-overlap:false; Now, this does not affect the text labels of the ...
1
vote
1answer
124 views

How are OSM tags mapped to fields in Mapbox Streets vector tiles?

I recently started experimenting with Mapbox Studio and have encountered some discrepancies between feature tags in OSM and the corresponding feature fields in the vector tiles from Mapbox Streets. ...
1
vote
3answers
38 views

Tilemill didn't render streets correctly, some parts are missing

can someone please explain me what's happend in the picture below or how i can debug what's going wrong? I downloaded some .osm.pbf files imported the files via osm2pgsql into a postgis database and ...
3
votes
1answer
135 views

Double transformation of marker in Carto CSS

I need to show on the map the direction of the road traffic with arrows. For this purpose I use markers for Carto CSS in TileMill. If the road has in OSM tag oneway="yes" or oneway="1", all is ok, ...
1
vote
1answer
95 views

Trying to Offset Overlapping Transit Lines/Routes - Is There a Way?

I am trying to create a bus route map in Los Angeles. I realize that it is shooting for the moon (perhaps it is impossible to do well) since there are so many overlapping routes, but I think I've gone ...
0
votes
1answer
221 views

Highlight polygon on hover and click in TileMill

I have created a MapBox.js map with several layers of polygons each with hover/click interactivity to show attributes about each polygon. I want the polygons to become highlighted upon a user ...
1
vote
1answer
43 views

What do cartocss attachments along filters mean?

I'm exploring openstreetmap-carto style and I wonder what does such syntax mean: [natural = 'water']::natural, [landuse = 'reservoir']::landuse, [waterway = 'riverbank']::waterway Is this ...
1
vote
0answers
26 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
0answers
62 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
1answer
79 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
224 views

TIleMill multiple design feature of the label road

Does TileMill have possibility to design features/labels in my case based on more than one command? I have this carto CSS code #mainroad_label[type='primary'][zoom>13], { text-name:'[name]'; ...
1
vote
1answer
119 views

Custom style a particular road using CartoCSS/TileMill/OSM

For a particular city, I want to make the label for its main street labeled as prominently as Motorways. i.e. although this road would normally only be labeled from about zoom level 15 and up, I would ...
2
votes
2answers
128 views

Conditional styling and expressions using modulus

I'm trying to style a contour shapefile in TileMill with all contour lines divisible by 100 bolder than others. Can I use expressions in defining a condition? The following example of course does not ...
2
votes
2answers
240 views

Rotating labels in cartocss with controlling the rotation basepoint

I am trying to rotate multiple text labels in cartodb/cartocss. I am offseting each label so that they appear to be stacked using text-dx and text-dy. Using text-horizontal-alignment: left; and ...
1
vote
1answer
57 views

Sunlight Layer into CartoDB

I have a list of tweets on a torque map made with CartoDB. I want to add an additional layer that shows the sunlight around the world at certain times, similar to the Twitter #sunrise map found here ...