简体   繁体   中英

Google Maps v2: about markers

I have a map in which I have displayed some markers and I would like to identify the marker closest to my current location. How can I focus on that specific marker?

Note: I have found the closest marker based on distance, I just need to know how to display this information on the map.

It's not quite clear what you're asking for, if you've already found out which marker is closest, why don't you simply change the marker's icon? Some documentation here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM