Using the Google Maps JavaScript API to add a 'place-card' to an embedded map?

北慕城南 提交于 2019-12-05 02:56:08

问题


Does anyone know how to enable the 'place-card' on an embedded Google Map using the Google Maps JavaScript API?

When I use the Google Maps Embed API a 'place-card' will be present in the top left corner of the map. This 'place-card' includes the address, a 'Directions' link, and a 'View larger map' link.

I would prefer to use the Google Maps JavaScript API to embed my map but when I create a map using this API the place-card is missing and the 'view larger map' link is replaced with a subtle Google logo in the bottom left corner.

I have scoured the Google Docs and I just can't seem to figure out a way to enable this place-card. Is this possible or do I have to revert back to using the Google Maps Embed API?

I figure making a custom control to replicate the 'place-card' would be a waste of my time.

来源:https://stackoverflow.com/questions/32264122/using-the-google-maps-javascript-api-to-add-a-place-card-to-an-embedded-map

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!