从GeoDjango字段创建Google Maps的模板标签。
项目描述
此应用程序提供模板标签,用于轻松从GeoDjango模型创建Google Maps。
安装
将GOOGLE_API_KEY添加到您的设置中。
将'gmaps'添加到您的INSTALLED_APPS中。
用法
{% load gmaps %} <div id="mymap"></div> {% gmap_js %} {# prints out the <script> tag calling the Google Maps API #} {% map "mymap" object.location %} {% marker someobj.location %} {# all tags accept optional parameters that will be passed to the js constructor #} {% marker someobj.location "title" "'Hello, World!'" %} {% polygon someobj.mpoly %} {% polyline someobj.mpoly %} {% endmap %}
项目详情
关闭
django-gmaps-0.0.4.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 33c8beecf4c1ff3e4ad81a2c3415ec0960d912a82c003206d96518fe5d563109 |
|
MD5 | 0f32f03829b4235473d1afd895bd9189 |
|
BLAKE2b-256 | 8b131d38a2e7ffec7d235cd36c875ffe5949a556a00367c146571a442a190c26 |