简体   繁体   中英

Android google maps, how to add a link in Marker

Like many web google map. I want to have a link in the maker. Right now I can use googleMap.setInfoWindowAdapter(new InfoWindowAdapter() .... to have html string, which I can change text font and size, but after I click the link in the mark, nothing happen. Should I block the default setOnMarkerClickListener? Thanks. I can not upload image. please refer this link's map http://www.canadiantire.ca/en/store-locator.html

Sorry, what you want is not possible. While you can detect a click on the whole info window, the widgets you put in the info window will not respond to touch events. That is because what is actually shown is a bitmap of what the widgets look like, not the widgets themselves.

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