如何在 drupal 7 中以 hook_form 的形式获取 google 地图 link

How to get google map link as a form in hook_form in drupal 7

我想显示一张 link 到 google 的地图,作为 hook_form 的一部分。这个 link 应该根据传递的纬度和经度生成。我如何在 drupal 7 中执行此操作?请指导我,因为我是 drupal 的新手..

谢谢

对于简单的外部 link 你可以使用

http://www.google.com/maps/place/lat,lng

例如

http://www.google.com/maps/place/49.46800006494457,17.11514008755796

用于 iframe

 <iframe src="http://www.google.com/maps/place/49.46800006494457,17.11514008755796" width="200" height="200"></iframe>