google地图与zope 3的集成
keas.googlemap的Python项目详细描述
Zope 3 Google Map Integration
内容
Introduction
keas.googlemap包提供了一种简单的方法来将google 映射到Zope3应用程序中。的一些特点 keas.googlemap是:
- Look up geocodes (latitude and longitude coordinates) for any query string
- Manage Google Map API keys for multiple domains
- Sort geocodes by distance using the haversine function
- Python representation of a google map that will render all the necessary javascript to display the map, including geocode markers.
Demo
通过运行 演示。要运行演示,请键入以下命令:
从zope subversion存储库下载源代码:
$ svn co svn://svn.zope.org/repos/main/keas.googlemap/trunk keas.googlemap $ cd keas.googlemap
运行bootstrap.py和buildout脚本:
$ python bootstrap.py $ ./bin/buildout
启动演示服务器:
$ ./bin/demo fg
你现在应该可以去http://localhost:8080看谷歌地图了 可以选择谷歌地图的显示方式。
Live Demo
如果你懒得亲自尝试演示,你也可以看到它 运行于http://demo.carduner.net/keas.googlemap/
CHANGES
Version 0.6.0 (2009-07-26)
- 功能:更新文本到最新包。
Version 0.5.1 (2008-11-07)
错误:修复非拉丁地理代码查询的错误。
功能:您现在可以执行以下操作:
<script tal:replace="provider:keas.googlemap.browser.interfaces.IJavaScript" />
并神奇地获得所有必要的javascript viewlet来使用 谷歌地图。
特征:marker现在有一个popuponload属性,可以设置为true 当页面加载时显示标记的信息窗口,而不是仅当 单击标记。请注意,只有一个标记的popuponload==true。
Version 0.5.0 (2008-07-28)
- 初始版本
- 查找地理代码(纬度和经度坐标)中的任何 查询字符串
- 管理多个域的Google Map API密钥
- 使用haversine函数按距离对地理代码进行排序
- 一个google地图的python表示,它将呈现所有 显示地图所需的javascript,包括地理代码 标记。