Questions tagged [cartocss]

27 questions
0
votes
1 answer

Overlaying shape over letters in CartoCSS

I'm curious about styling options available in cartoCSS. I am wondering if it is possible to add shapes over specific letters of a maplabel (maybe this would be some type of vector overlay?) but I haven't found an example that seems to do this. The…
DiamondJoe12
  • 1,879
  • 7
  • 33
  • 81
0
votes
1 answer

Position road label below road in CartoCSS

I would like to force road label to be on south side (below) east-west roads. After implementing text-dy: -20, the results are not consistent. Is there an another setting I could use to force this label placement on…
UncleJune
  • 45
  • 9
0
votes
0 answers

How do I use OSM custom tags in Mapbox style

Here's a brief description of what I'd like to do (and I'm very, very new to this but seem to have hit a wall): Display a map of color-coded buildings based on a custom tag (miamioh_lds). What I've tried: in Mapbox Studio Classic starting with the…
coopermj
  • 531
  • 4
  • 16
0
votes
1 answer

CartoCSS: style a layer based on proximity to another layer

I am trying to replicate a google maps style in CartoCSS with Map box studio classic. A default google map has a light brown shading for the industrial area surrounding an airport (as in the screenshot) Google Maps San Francisco Airport - the target…
CharlieSmith
  • 311
  • 4
  • 12
0
votes
1 answer

Unique styling for Admin Level 4 boundaries per country

MapBox data places United States states' admin level on the same level as the division of countries within Europe and elsewhere (level 4). For my purposes, it is useful to display distinct boundaries for states in the US, while it is not useful at…
cmal
  • 1,751
  • 5
  • 18
  • 29
0
votes
2 answers

setting transparent background in tile mill so that base map is the background and when toggling layers

Does anyone know how to make the background of a map transparent totally ,transparent in tile mill.I tried removing the background color rule in the carto css map section but that did not work,instead it just leaves a plain white background.I tried…
Zidane
  • 1,696
  • 3
  • 21
  • 35
0
votes
1 answer

cartodb: invalid value when using [value] in torque css

I am trying out CartoDB visualization with Torque. In my css file I have: Map…
Khue Vu
  • 3,112
  • 4
  • 37
  • 40
0
votes
1 answer

How do I make the class 'path' show up at higher zoom levels using carto CSS in MapBox Studio?

I am working styling a map in MapBox studio. I am trying to make the road class path show up at a zoom level less than 14. As soon as I go to level 13 or less the paths all disappear. Does anyone know how to make the paths show up at levels 12…
Stephen Johnson
  • 5,293
  • 1
  • 23
  • 37
0
votes
1 answer

CartoCSS markers

I want to put markers (circle) on my map render defined in cartocss tilemill. But on zoom levels 4-5-6 I have problem that render displays markers without city name, because there is no enough space for city name. Is there an option that forces to…
darek
  • 21
  • 1
  • 4
0
votes
3 answers

How to serve styled vector map data via CartoCSS

I've got an example data set of lines and points, representing peoples' journey to work and where they feel at risk from road accidents. Now, the data have attributes such as Place (Home, Work, Danger) and the severity of accidents they fear in…
RobinLovelace
  • 4,799
  • 6
  • 29
  • 40
0
votes
1 answer

How to do ^= match with CartoCSS?

Looking at the following DBF database, how would I go about targeting the "hospital" type? In CSS3 you can do something like *[attr^='hospital']. I don't know how to do this with CartoCSS, however. The best I can do is:…
Wildhoney
  • 4,969
  • 33
  • 38
-1
votes
1 answer

tilemill creates jagged edges for worldmap

Trying to create a custom world map texture with tilemill to load into leafletjs. I have downloaded a free .tiff file from natural earth data and loaded it into tilemill. When i want to export however, i notice alot of jagged edges mainly around…
Jurgen Welschen
  • 871
  • 1
  • 13
  • 21
1
2