Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Help on selecting buildings #2767

Closed
enriquebk opened this issue Oct 23, 2015 · 1 comment
Closed

Help on selecting buildings #2767

enriquebk opened this issue Oct 23, 2015 · 1 comment
Labels

Comments

@enriquebk
Copy link

Hi, we wanted to know if there is a way to highlight a building on the map. Basically we are working on an iPad app and we want to allow the users to select buildings by pressing over them. Our idea is to highlight a building when is selected, Let's say something like this:

screen shot 2015-10-21 at 9 54 43 am

We notice that mapbox can show the building boundaries but we couldn't figured out a way to interact with them.

We will really appreciate any help on this.

Thanks!

@1ec5
Copy link
Contributor

1ec5 commented Oct 23, 2015

This is currently possible in GL JS but not the iOS SDK. #352 will add an API for detecting that a building is under the tapped coordinate and get its coordinates. (Also, in #837 we’re working towards the ability to change the style dynamically at runtime, which could be useful.) In the meantime, to do this, you’ll need to load the data from a source like OpenStreetMap manually.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants