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

learn more… | top users | synonyms

0
votes
0answers
3 views

CartoDB toggle buttons only work when items are filtered out by date?

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
22 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
20 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 ...
0
votes
1answer
24 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 ...
6
votes
1answer
112 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
13 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
27 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
24 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
35 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
84 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
29 views

Distance between waterway labels in CartoCSS

How can I manage distance between waterway labels (names of rivers) in cartoCSS?
1
vote
1answer
40 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
107 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
32 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
36 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
48 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
99 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
87 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
76 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
25 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
58 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
203 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
74 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
40 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
110 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
206 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
68 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
509 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
157 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
67 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
266 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
43 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
92 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
159 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
43 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
179 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 ...
5
votes
2answers
157 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
117 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
42 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
132 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
87 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
484 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
41 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
225 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
84 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
278 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
144 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
52 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
172 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, ...