The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [cartocss]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
81 views

Creating bubble graphs in Carto using UK local authorities and Regions as the “Admin Region”

The data I have is a list of projects for which I have the following geographic information: postcode longitude and latitude local authority region (or country, eg Wales) as well as other details ...
1
vote
1answer
78 views

CARTO Builder: show categorical data by no. of casualties

I have a categorical Carto map that shows the different types of industrial accidents, but I also want to differentiate the points based on the number of deaths i.e. the higher number of deaths, the ...
0
votes
1answer
64 views

How to automatically separate two pins when a map is scaled in Carto

I am building a map on Carto, i am mapping activities at building level in a city. Sometimes two activities occur in the same building, when the map is zoomed in (at building level) you can clearly ...
1
vote
1answer
121 views

Draw transparent land with Mapnik/CartoCSS?

I've tried to put a transparent background, but then, the seas are transparent too, and i don't want that. I just want transparent land, and blue seas ...
1
vote
1answer
191 views

how to combine chloropleth, bubble and cluster designs in CARTO?

To be concrete, I have a map of election results by precinct. As I do not have shapefiles for the precincts, I geocoded the polling places, but many precincts share polling places. I have the ...
1
vote
1answer
67 views

Buttons that toggle different column visualizations?

I have a census data table in Carto and I want the end user to be able to toggle through several different demographic visualizations via buttons on the map. For example one button shows median age, ...
0
votes
1answer
59 views

Migrating symbols from ArcGIS Server to CartoDB

We decided to migrate to CartoDB after many years of using ArcGIS Server. We already handled data migration and now we are looking for an easy to export our symbol rules defined in a MXD to CartoCSS. ...
1
vote
1answer
180 views

make Carto torque points change over time start from begin date and disappear at end date

First time use the torque function... I have variables: IDnumber,start_date, end_date, size, longitude, latitude. Anyone know how to make carto torque points change depends on different dates? I want ...
0
votes
1answer
170 views

Combine cluster and categorical mapping on Cartodb

I came across this map that shows clusters but when you zoom in, the they split into points reflecting categorical data. How do I replicate this on cartodb?
0
votes
1answer
218 views

Filling Colors for Some Countries in Carto

I imported the "world borders" from the data set library in Carto. I want to fill/highlight some countries (say United States, Africa and Europe) with the same color but not all countries. How can I ...
0
votes
1answer
171 views

Cartodb Torque map

I cannot figure out how to use the torque map: A typical row of my data, which is named torquedata3, looks like : [nodenumber, lat,long,time,value]. I have multiple rows at the same time with each ...
2
votes
2answers
190 views

Change Carto basemap font size?

I'm using the CartoDB static Maps API. I need to change the font size of the street names. E.g. in the image below the street name "Stanhope Road" needs to be bigger. Here's what my Json config ...
1
vote
1answer
892 views

Switching from “layer selector” to buttons to toggle between layers in CartoDB

As of now, we have a map that you can toggle between layers using the "layer selector". We want to instead have buttons on the map that, by clicking on one, you can switch between layers. In our's, ...
1
vote
1answer
192 views

How to modify mapnik's buffer-size by kosmtik's localconfig.json/.js?

I want to override mapnik's buffer-size in kosmtik. How to override it in localconfig.json/.js?
0
votes
1answer
49 views

Retaining custom CSS parts when editing using CartoDB GUI?

I have set a bunch of zoom-level settings in a cartdb map layer, i change opacity, line thickness, etc. however, when i go into the web GUI and do something simple like change the colour of a line, ...
1
vote
2answers
391 views

Creating weighted lines on map in CartoDB

I am trying to illustrate global trade flows within CartoDb. Flows are visualized by a line connecting two lat/long points on a map. The size of the flow would be represented by the width of the line. ...
2
votes
1answer
86 views

What is the :: notation in CartoCSS?

I've been designing some tilesets in Mapbox Studio Classic and I keep seeing the :: notation in styles that Mapbox has created. What does that mean? Are there only specific values that can be put ...
1
vote
0answers
437 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, ...
0
votes
1answer
188 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
73 views

CartoDB - random points being added to map

I'm working on a tool that allows users to draw geometries on a Leaflet map, which are then sent to CartoDB. However, I've noticed an odd behavior... after a polygon has been added, a varying number ...
1
vote
1answer
171 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
472 views

Creating conditional style using CartoCSS on a CartoDB view

I’m generating a view using the query like this in CartoDB SELECT table1.cartodb_id, table2.data_count, table2.event, table1.the_geom_webmercator FROM table1 JOIN table2 ON table1....
0
votes
1answer
570 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
387 views

Transform scale of polygon pattern fills with Carto/Mapnik

In CartoCSS you can specify an SVG pattern fill for a polygon as so: #layer { polygon-pattern-file: url(images/fill.svg); } However, the size of the fill is too big at small scales and too small ...
2
votes
1answer
83 views

Why are point-files cut at tiles-borders?

I'm placing a SVG in Tilemill via a point with lat and long. So far that works great but when the tile the point is located in ends, the image is not rendered. Is this a bug? Can I do something ...
0
votes
1answer
323 views

Show one label per shape in CartoCSS

I'm working in Mapbox Studio (Classic) and want to prevent labels from rendering more than once. I'm using text-repeat-distance to prevent labels from showing more than once: #Admin_level3_Boundary {...
1
vote
1answer
102 views

What's the meaning of marker-fill-opacity: 0.1*[value]?

I'm using heatmaps in CartoDB and I would like to modify CartoCSS to reflect the value of a column. I have noticed this line in CartoCSS: marker-fill-opacity: 0.1*[value]; I don't understand ...
1
vote
1answer
185 views

Can you use variables in URI field in cartodb CSS?

I am wanting to use a different marker-file based on a value returned via SQL in cartodb. I am wanting todo something like marker-file: url('[icon]'); Where the value in [icon] is a full URL to a ...
3
votes
2answers
3k views

How to generate 512x512 map tiles (2x resolution for retina displays)

I'm looking for a method to produce 512x512 pixels map tiles using CartoCSS and Mapnik, for example exactly as CardoDB does for its base maps (here below a 256x256 map tile vs its correspondent ...
2
votes
1answer
193 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
214 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
225 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 z-...
0
votes
1answer
325 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
265 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
94 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, ...
2
votes
2answers
375 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
1answer
527 views

Using CartoCSS to have polygon change shape or symbol upon different zoom levels?

I'm working with some small area parcel data. When zoomed in it is important to see the actual polygon shape. But when zoomed out, something like a simple point marker that scales would be better, ...
4
votes
1answer
985 views

Rendering tm2 projects? [closed]

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 ...
3
votes
1answer
1k 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 ...
1
vote
1answer
90 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 ...
2
votes
1answer
62 views

Is it possible to create browser-specific CartoCSS?

I can't think of many practical uses for this, so it probably isn't implemented, but I have an edge-case desire for it so I thought I'd ask. Basically I'm creating a Torque animation in CartoDB of ...
-1
votes
1answer
213 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
vote
1answer
514 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
170 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 ...
11
votes
1answer
525 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
80 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 ...
1
vote
1answer
665 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 ...
1
vote
1answer
266 views

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

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
536 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
284 views

Distance between waterway labels in CartoCSS

How can I manage distance between waterway labels (names of rivers) in cartoCSS?