我如何改变坐标为iframe谷歌地图打印不同的结果取决于所传递的坐标

How can I change the coordinates for the iframe google map to print different results depending on the coordinates passed

本文关键字:坐标 结果 取决于 打印 iframe 何改变 改变 谷歌地图      更新时间:2023-09-26

我已经设法创建了一个页面,用户可以点击并使用以下代码更改访问谷歌地图。

<tr>
    <td>Coordinates:</td>
    <td>
        <a href="http://maps.google.com/?q=MY%20LOCATION@{{place.place.lat}},{{place.place.lng}}">{{place.place.lat}},{{place.place.lng}}</a>
    </td>
    <br />
</tr>

另外,这是一个angularjs应用。现在我想把这个地图嵌入到我的应用程序中使用相同的概念当用户点击不同的地方来显示那个特定的地方时改变经纬度。我该怎么做呢?我已经研究了iframe,但我只能使用固定坐标。

将控制器上具有坐标属性的对象绑定到google-map center指令属性,并在有人提交搜索时更新该属性