Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

108
Views
filtrar una capa de características para varios valores de una propiedad específica mapbox gl js

Me gustaría filtrar una capa de características para varios valores de una propiedad específica, algo así como

 "filter":["==","COUNTY",[array of filter values]]
about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Hay tres maneras de hacer esto:

con match

 "filter" : [ "match", ["get", "COUNTY"], ["County1", "County2", ... ], true, false ]

con in :

 "filter" : [ "in", ["get", "COUNTY"], ["literal", ["County1", "County2", ... ]] ]

Con any :

 "filter" : [ "any", ["==", ["get", "COUNTY"], "County1"], ["==", ["get", "COUNTY"], "County2"], ... ]
about 4 years ago · Juan Pablo Isaza Report

0

Prueba este:

 "filter" : [ "match", ["get", "COUNTY"], ["County1", "County2",...], true, false ]

Puede leer más sobre Mapbox GJ JS Expression en esta página: https://docs.mapbox.com/mapbox-gl-js/style-spec/expressions/#match

A veces, puede realizar las ediciones en Mapbox Studio y verificar el código subyacente para reutilizarlo en JS más adelante. Captura de pantalla: https://ibb.co/z5D8rh3

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!