Questions tagged [cartocss]

27 questions
3
votes
1 answer

How to avoid multiple label in zoomin in tilemill

Now i am working on tilemill ,and i am facing a problem in a tilemill when i am styling zoomin a road layer that time display road layer label multiple times.How can avoid these multiple road labels name in tilemill
Vaishali Shinde
  • 552
  • 4
  • 12
2
votes
1 answer

Is it possible to conditionally color countries in Mapbox Studio based on data?

I am attempting to create a choropleth using the actual polygons included in any one of the base Mapbox maps. Specifically, I have a geojson structure with a data specific property in the properties object and I'd like to have a different color land…
iros
  • 1,055
  • 1
  • 7
  • 8
2
votes
0 answers

Show admin labels for only one country via CartoCSS in Mapbox Studio

I'd like to show admin labels for only one country on a map of Latin America. I'm new to CartoCSS and can't figure it out. I tried inspecting the labels and couldn't discern any hierarchy in the OSM ids that might help.
gwezerek
  • 105
  • 1
  • 7
1
vote
1 answer

Leaflet adding a custom background image to a worldmap

I am trying to create a worldmap on my website along with help of the leaflet js library. I have created a custom image of the world using my preferred colors for land and mountain ranges: My leaflet map is currently looking like this: Can anyone…
Jurgen Welschen
  • 871
  • 1
  • 13
  • 21
1
vote
0 answers

Mapbox uploading background image

I'm trying to change the background of my map and put an image instead of it. I'm currently using map box studio so when I'm choosing a local path (c\deskstop\toto.png), it is working on the software, so if I choose to upload my whole map style,…
Facksqwud
  • 41
  • 1
  • 3
1
vote
1 answer

Mapbox Studio transparent water

I have a problem with Mapbox Studio. I'd like to make water layer appear transparent and land area in some color. When I remove or modify the Map {} background to be transparent, all the change to transparent except water which remains to the color…
user2771538
  • 103
  • 1
  • 10
1
vote
0 answers

Is it possible to apply a conditional to the map background in Mapbox Studio?

I'm trying to do the following, but it seems like conditionals are completely bypassed within the Map block: @invert: 'No'; Map { [@invert = "No"] { background-color: green; } [@invert = "Yes"] { background-color: red; …
cdubbs
  • 97
  • 12
1
vote
1 answer

How to limit geodata to cities and railways in Mapnik?

I have successfully set up a working mapnik tile server under Ubuntu 14.04 using the OSMBright style. For testing purposes, I downloaded and imported the geodata for Luxembourg. The file was only 16MB in size and the import only took a minute. Next,…
Rob
  • 11,492
  • 14
  • 59
  • 94
1
vote
1 answer

Tilemill / CartoCSS boolean condition

In TileMill / CartoCSS is there a option to have an boolean "OR"? I did try regex, but was without success. I would like to simplify this CSS: @ciPolyBackground: #F79320; @ciPolyOpacity: 0.5; #countries { [ne_10m_adm = "BOL"] { polygon-fill:…
dinnouti
  • 1,707
  • 2
  • 15
  • 21
0
votes
0 answers

Issue with comma separated values (Carto)

I'm using the official Carto library to parse CartoCSS: cartocss = "#views { line-color: #7B00B4; line-width: 1; line-opacity: 0.7; line-dasharray: 4,2; }"; shader = new carto.RendererJS().render(cartocss), style = shader.layers[0].getStyle({…
eozzy
  • 66,048
  • 104
  • 272
  • 428
0
votes
1 answer

Cartojs4 - markers with multivalues donut chart

I would like to create a marker as we can see in the Carto SalesQuest product. I made a cluster map from my CARTOjs 4 following this article provided by CARTO https://carto.com/blog/inside/tile-aggregation/ I can play with CARTOCSS to style my…
CGlog
  • 5
  • 3
0
votes
1 answer

Styling Carto.com map with SnazzyMaps

According to the carto.com documentation it's possible (at least to some extent) to modify the styles of the map, but what if we have a requirement to use a style from snazzymaps.com? Is it possible to integrate both services together? Is there an…
WeMakeSoftware
  • 9,039
  • 5
  • 34
  • 52
0
votes
1 answer

Torque.js visualize CartDB Named Map with private dataset

I'm trying to visualize a private dataset in our CartoDB account based on a named map. The named map is created and exists (tested with https://{username}/api/v1/map/named?api_key={api-key}). The config.json was like: { "version": "0.0.1", …
user7927754
0
votes
0 answers

Combine zoom level selector with others in Tilemill CSS

What i'd like to do is, select all the roads that are type motoroway between zoom levels then define how they style for each zoom level within that range. Which led me to; #roads[type=‘motorway’][zoom>=12][zoom<=17] but it throws a invalid code…
mapping dom
  • 1,737
  • 4
  • 27
  • 50
0
votes
0 answers

TileMill - nice style for osm data in OS Windows

can you tell me what is the simpliest way to add style for my shape extracts from mapzen and give me some hint how do that in windows, becouse the majoritz of tutorials are for linux or mac oc. I need also help to choose the correct shape files from…
Denis Stephanov
  • 4,563
  • 24
  • 78
  • 174
1
2