0

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: #poi[zoom>=10][CATEGORY="Health care"], but many of those "health care" related entities are in fact pharmacies, which I don't want to put a marker on.

bmaupin
  • 14,427
  • 5
  • 89
  • 94
Wildhoney
  • 4,969
  • 33
  • 38

1 Answers1

0

You can use a regular expression selector for this purpose, like #points[attr =~ "$hospital"].

A better long-term solution (since regular expression selectors tend to create many filter combinations) is to do this in Imposm in pre-processing.

tmcw
  • 11,536
  • 3
  • 36
  • 45