Skip to main content
Notice removed Draw attention by wtgeographer
Bounty Ended with geozelot's answer chosen by wtgeographer
Notice added Draw attention by wtgeographer
Bounty Started worth 50 reputation by wtgeographer
added 11 characters in body
Source Link
wtgeographer
  • 920
  • 1
  • 13
  • 31

I am trying to determine method of stying across a data range using 'get' expression and multiple criteria in Mapbox Studio using Mapbox Expressions. In the example below I want to style a marker matching symbol = 'Restaurant' AND title = 'Social Brewery and Kitchen'. Is this possible?

[
  "match",
  ["get", "title", 'Social Kitchen and Brewery'],
  ["get", "marker-symbol", 'Restaurant'],
  "#f9a951",
  "#000000" //fallback
]

I am trying to determine method of stying across a data range using 'get' expression and multiple criteria in Mapbox Studio using Mapbox Expressions. In the example below I want to style a marker matching symbol = 'Restaurant' AND title = 'Social Brewery and Kitchen'. Is this possible?

[
  "match",
  ["get", "title", 'Social Kitchen and Brewery'],
  ["get", "marker-symbol", 'Restaurant'],
  "#f9a951",
  "#000000"
]

I am trying to determine method of stying across a data range using 'get' expression and multiple criteria in Mapbox Studio using Mapbox Expressions. In the example below I want to style a marker matching symbol = 'Restaurant' AND title = 'Social Brewery and Kitchen'. Is this possible?

[
  "match",
  ["get", "title", 'Social Kitchen and Brewery'],
  ["get", "marker-symbol", 'Restaurant'],
  "#f9a951",
  "#000000" //fallback
]
Source Link
wtgeographer
  • 920
  • 1
  • 13
  • 31

Multiple Criteria in Mapbox Expressions

I am trying to determine method of stying across a data range using 'get' expression and multiple criteria in Mapbox Studio using Mapbox Expressions. In the example below I want to style a marker matching symbol = 'Restaurant' AND title = 'Social Brewery and Kitchen'. Is this possible?

[
  "match",
  ["get", "title", 'Social Kitchen and Brewery'],
  ["get", "marker-symbol", 'Restaurant'],
  "#f9a951",
  "#000000"
]