从Chrome扩展加载Places API库
Load Places API library from Chrome Extension
我正在编写一个Chrome扩展,将谷歌地图自动完成添加到谷歌日历的新活动位置输入中。我试图在扩展上下文中加载库,但它阻止了说[blocked] The page at domain.com ran insecure content from anotherdomain.com
。
当然,我已经在manfest.json的"permissions"键中添加了http://anotherdomain.com
。为了加载实际的place库,我只是从http://maps.googleapis.com/maps/api/js?libraries=places&sensor=true
下载了它,因为我不知道如何将它直接添加到扩展中。
到目前为止,这似乎是不可能的,所以我只使用了JSON API和jQuery UI的自动完成。以下是我琐碎的实现https://gist.github.com/3623683
相关文章:
- 在自动完成中使用Google Maps Places API;API不工作
- 从Chrome扩展加载Places API库
- 带有新API密钥的Google Places Library OVER_QUERY_LMIT
- Google Places API显示雷达搜索中的位置图标/图像
- 如何使用Google Places Javascript API搜索附近的位置(自动从浏览器获取坐标)
- 如何使用地点ID从Google Places JS API检索地点详细信息
- 在Google Places API中为每个位置类型单独标记
- 将Google Places API与Rails应用程序集成
- 当至少有20个搜索结果时,只呈现10个搜索结果?使用Google Places API
- 如何使用带有搜索按钮的Google Places API
- 如何使用Google Places API获取邮政编码
- “;位置搜索框”;在Google Places API中
- Ajax and Google Places API getting json
- Google Places API,结果的附加标记(手动添加)
- 使用 Google Places API 自定义 NearBuy Places
- Google Places API - 雷达按名称搜索
- Google Maps Places API: TypeError: autocomplete is undefined
- 在 Google Places API 上获取“未捕获的类型错误:无法读取 null 的属性'值'”
- Google Places API - 地址和电话号码
- 谷歌地图Api附近搜索-为什么Google.Maps.places.RankBy.DISTANCE返回的结果更少