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

151
Views
How do you get the place name from a mapbox gl js returned queryRenderedFeatures?

Sample Code

  const features = map.queryRenderedFeatures(
        [point1,point2],
        {layers: ['national-park']}
    );
  console.log(features)

Lets say my bounding box is around long/lat [-155.4694, 19.8230], //Mauna Kea

My queryRenderedFeatures returns four results which is correct because my bounding box contain 4 national-parks. However I cannot find the place name in the geojson even though all of the national-park names are showing correctly on the map. Example place name would be Mauna Kea which is a national park.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You haven't provided quite enough detail, but I'm guessing the reason is that the names of the national parks are in a separate layer, perhaps national-park-labels or similar.

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!