1
vote
2answers
27 views

TileMIll FileGDB Annotations

Now that TileMill (specifically TileMill-v0.10.1-291-g31027ed) supports FileGDB https://www.mapbox.com/blog/tilemill-adds-support-for-esri-filegdb-format/ ...Is it possible to add label annotations ...
0
votes
1answer
19 views

Carto CSS variables

Does anyone know whether it's possible to use a variable within an attribute selector. For example I define my variable at the top of the file: @lowZoomMax: 9; And then reference it as follows: ...
0
votes
1answer
25 views

CartoCSS detect odd vs even for use in labeling conditional

I liked the part in the advanced label styling about randomly asigning a 0 or 1 to control label placement and then using as a conditional #labels { text-name: "[name]"; text-face-name: ...
0
votes
1answer
43 views

Labeling in TileMill with CartoCSS - Add line break between variables

I am labeling some points in TileMill using CartoCSS. The labels are a composite of two variables text-name: [NAME]+' '+[TYPE]; The rule above inserts a space between the two variables. How can I ...
0
votes
1answer
17 views

How can I assign multiple classes to a layer in TileMill?

In my TileMill project, I have my-class that is assigned to most of my layers. I also have my-other-class that I want to assign to just a few of those layers. I tried assigning 2 classes using a ...
1
vote
1answer
51 views

TileMill: How to access geojson properties with CartoCSS

When trying to display a geojson layer in TileMill, is it possible to access the 'properties' of each feature? My geojson looks like this: "type": "Feature", "geometry": { ...
0
votes
1answer
39 views

Styling/Selecting based on a hstore column in TileMill?

I have added an OpenStreetMap dump file to PostGIS using osm2pgsql --hstore (and the default osm2pgsql style file). I have added and opened up this to TileMill. Is there anyway to style the map based ...
0
votes
1answer
53 views

Targeting capital cities only in Tilemill/CartoCSS

At a specific zoom level in my Tilemill map, I want to only show capital cities, and hide all other cities. What data set could I use which will provide me with information oh whether a city is a ...
0
votes
2answers
172 views

Make new Tilemill map match default Mapbox label styles

I want to make a map in tilemill that matches the way that labels are displayed in this example, down to the countries that get labels at each zoom level, which country gets abbrev. vs. full title, ...
2
votes
1answer
83 views

Drawing 2 points at the beginning and the end of the LineString

I have LineStrings in a GeoJSON files, in example: ...
0
votes
1answer
77 views

Tilemill: set max extent for export

Is it possible to set map extent to be displayed on mapbox ? If so could you pls send mss example ? Regards, Jorge Vidinha
1
vote
1answer
96 views

CartoCSS different background colors of Map element

I tried to change the background color of a map in zoomlevels greater than 11, but Map{ background-color:@water; [zoom>11]{background-color:@water*1.05;} } had no effect. Is there an other ...
0
votes
1answer
86 views

Tilemill + metro.teczno.com

I downloaded the Milan shape files from metro.teczno.com and I imported these into tilemill. Exist any cartocss file to define all layers created by shape file? Or need to be created from scratch ?
24
votes
3answers
3k views

Is there a Carto CSS Gallery which also contains code?

I am currently exploring the usage of CartoCSS and TileMill in one of our projects. I have seen the impressive gallery available at http://www.mapbox.com/tilemill/gallery/ The gallery looks ...
3
votes
0answers
230 views

How do I convert from SLD to Carto CSS?

I have a bunch of layers and corresponding SLD's running a WMS service. I was exploring the possibility of shifting to a TileMill's tile based TMS service. For this, I would like if it were possible ...
4
votes
1answer
319 views

Refer to zoom level in TileMill expressions

Is it possible to do something like this: #ways[highway="trunk"] { line-color:#c99; line-width:@zoom/10; } Obviously that example doesn't work. Is there another way to do arithmetic expressions ...
1
vote
1answer
403 views

Where is the reference for functions available in CartoCSS

I'm playing with Tilemill and i see that for some properties, like marker-transform, i can use functions. I want to use rotate() which takes 3 arguments (i learned this by inputing just one so it ...