mR_fr0g
mR_fr0g

Reputation: 8722

Adding business information to an overlay in a MapView

On the Google maps web interface if you zoom in enough you can see businesses that are clickable. When you click the business you get the a speach bubble with a brief description of the business.

Even on the native android Google map you can tap businesses and get a link to the business information.

My question is that within a MapView is it possible to add my own overlay that when tapped loads the business info of a pre existant business? Is it possible to associate my overlay with a business in some way. I imagine that I could do this if I duplicated the html found on the google map in some way into my overlay, but I was hoping to avoid this.

Upvotes: 0

Views: 342

Answers (2)

IZI_Shadow_IZI
IZI_Shadow_IZI

Reputation: 1931

In the past I have used this. https://github.com/jgilfelt/android-mapviewballoons Not sure how to pull info though.

Upvotes: 2

CommonsWare
CommonsWare

Reputation: 1007286

My question is that within a MapView is it possible to add my own overlay that when tapped loads the business info of a pre existant business?

Assuming you find a source for the data, sure.

I imagine that I could do this if I duplicated the html found on the google map in some way into my overlay, but I was hoping to avoid this.

I highly doubt that will work.

First, you must find a Web service or something that has the data you seek. Then, you need to license that data. Then, you need to figure out how you want to render that data on the map overlay. The first two of those steps are the tricky ones.

Upvotes: 0

Related Questions