git://git.onelab.eu
/
unfold.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updated maps
[unfold.git]
/
plugins
/
googlemap
/
__init__.py
diff --git
a/plugins/googlemap/__init__.py
b/plugins/googlemap/__init__.py
index
583b8dd
..
8005de2
100644
(file)
--- a/
plugins/googlemap/__init__.py
+++ b/
plugins/googlemap/__init__.py
@@
-8,12
+8,10
@@
class GoogleMap (Plugin):
# googlemap_key : mandatory googlemap API v3 key
# latitude,longitude, zoom : the starting point
# apparently at some point there has been support for a boolean 'checkboxes' input arg but seems dropped
# googlemap_key : mandatory googlemap API v3 key
# latitude,longitude, zoom : the starting point
# apparently at some point there has been support for a boolean 'checkboxes' input arg but seems dropped
- def __init__ (self, query,
query_all, googlemap_api_key=None, latitude=43., longitude=7., zoom=4
, **settings):
+ def __init__ (self, query,
googlemap_api_key=None, latitude=50., longitude=50, zoom=3
, **settings):
Plugin.__init__ (self, **settings)
self.query=query
Plugin.__init__ (self, **settings)
self.query=query
- self.query_all = query_all
self.googlemap_api_key=googlemap_api_key
self.googlemap_api_key=googlemap_api_key
- self.query_all_uuid = query_all.query_uuid if query_all else None
self.latitude=latitude
self.longitude=longitude
self.zoom=zoom
self.latitude=latitude
self.longitude=longitude
self.zoom=zoom
@@
-35,7
+33,7
@@
class GoogleMap (Plugin):
"/js/googlemap.js",
"/js/markerclusterer.js",
"js/manifold.js", "js/manifold-query.js",
"/js/googlemap.js",
"/js/markerclusterer.js",
"js/manifold.js", "js/manifold-query.js",
- "js/spin
.
presets.js", "js/spin.min.js", "js/jquery.spin.js",
+ "js/spin
-
presets.js", "js/spin.min.js", "js/jquery.spin.js",
"js/unfold-helper.js",
],
'css_files' : [ "css/googlemap.css",
"js/unfold-helper.js",
],
'css_files' : [ "css/googlemap.css",
@@
-45,7
+43,7
@@
class GoogleMap (Plugin):
# the list of things passed to the js plugin
def json_settings_list (self):
# the list of things passed to the js plugin
def json_settings_list (self):
- return [ 'plugin_uuid', 'query_uuid',
'query_all_uuid',
+ return [ 'plugin_uuid', 'query_uuid',
'init_key',
'latitude', 'longitude', 'zoom',
]
'init_key',
'latitude', 'longitude', 'zoom',
]