开发者

How to make places in Google Maps to be objects like maps.google.com with Google Maps API in Android?

开发者 https://www.devze.com 2023-03-26 19:25 出处:网络
When using maps.google.com, places like parks,bus stations, restaurants are objects and we can mouse-hover to display the p开发者_开发知识库lace\'s detail. See image : http://i.stack.imgur.com/xfRDo.p

When using maps.google.com, places like parks,bus stations, restaurants are objects and we can mouse-hover to display the p开发者_开发知识库lace's detail. See image : http://i.stack.imgur.com/xfRDo.png

But we can't do that with only Google Maps API. See image : http://i.stack.imgur.com/SU9uC.png

Thank in advance !

ps1 : The default Maps application in Andoird also has this feature.


You are welcome to use an Overlay, or override onTouchEvent() in a custom subclass of MapView, to find out when the user taps the screen. You are welcome to use a Projection to determine the latitude and longitude of where the user tapped. You are welcome to pass that data to some Web service that can tell you what is at that location. And you are welcome to display those results in some form (e.g., Toast).

However, none of that is built into the Google Maps SDK add-on for Android.

0

精彩评论

暂无评论...
验证码 换一张
取 消