1 from unfold.plugin import Plugin
3 class GoogleMap (Plugin):
5 # set checkboxes if a final column with checkboxes is desired
6 # pass columns as the initial set of columns
7 # if None then this is taken from the query's fields
8 def __init__ (self, query, **settings):
9 Plugin.__init__ (self, **settings)
12 def template_file (self):
13 return "googlemap.html"
15 def template_env (self, request):
19 def requirements (self):
21 'js_files' : [ "https://maps.googleapis.com/maps/api/js?sensor=false",
23 "/js/markerclusterer.js",
24 "js/manifold.js", "js/manifold-query.js",
25 "js/spin.presets.js", "js/spin.min.js", "js/jquery.spin.js",
26 "js/unfold-helper.js",
28 'css_files' : [ "css/googlemap.css",
33 # the list of things passed to the js plugin
34 def json_settings_list (self): return ['plugin_uuid','query_uuid']