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

learn more… | top users | synonyms

0
votes
1answer
13 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
16 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
30 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
32 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
23 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
19 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
55 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
27 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
49 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
47 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
19 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
57 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
31 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
30 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
50 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
33 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
66 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
1answer
80 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
37 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
29 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
55 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
50 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
4 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
199 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
26 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
74 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
32 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
102 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
104 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
31 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
95 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
0answers
65 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
123 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
34 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
20 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
56 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
57 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
177 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
105 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
82 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
146 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
50 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 ...
0
votes
0answers
41 views

In TileMill/CartoCSS how do show several markers for the same point?

I'm creating a custom map using TileMill to show local walks. I want to show Points Of Interest along the path. I've exported the points from Google Maps using KML and I want to show an icon on a ...
2
votes
0answers
56 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 ...
0
votes
0answers
164 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; ...
1
vote
1answer
229 views

Draw icons and lables only for certain entities in Tilemill 2

I've recently started to use mapbox' TileMill2 to play around with vector tiles. It's pretty nice and, in comparison to Tilemill(1), much more faster. Exactly what I was searching for. Now I'm trying ...
1
vote
1answer
57 views

Styling of label on a line in Tilemill [duplicate]

I currently have a line that I want to but a label onto in Tilemill. It currently looks like this: But what I would prefer is something like this: where the line isn't rendered around (and ...
1
vote
2answers
155 views

Carto-CSS/ Mapnik XML Text background color

I want to add a background color to my labels. How do I do that with Carto-CSS in Tilemill or with Mapnik? Carto-CSS #marker_labels { text-name: "[name]"; text-face-name:@sans; text-size: 20; ...
1
vote
1answer
240 views

CartoDB - How would I customize my legend to not be white and have blocks instead of bullets?

First off, CartoDB is amazing. I am trying to modify the look of my legend to look something like the one as seen on the "Elephant Movement in a Human Landscape" example on the CartoDB website. ...
1
vote
2answers
133 views

How to style ways with CartoCSS depending on a relation property (OSM)

I'm using CartoCSS together with an OSM Postgres DB (hstore on). I want to set the line color depending on the operator tag of relations (routes). How can I do that? Update Thanks to Paul Norman for ...