$this.data('markerCluster', null);
$this.data('markers', []);
- var myLatlng = new google.maps.LatLng(34.397, 150.644);
+ console.log ("lat=" + options.latitude + " long=" + options.longitude + " and zoom=" + options.zoom);
+ var myLatlng = new google.maps.LatLng(options.latitude, options.longitude);
var myOptions = {
- zoom: 2,
+ zoom: options.zoom,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
# set checkboxes if a final column with checkboxes is desired
# pass columns as the initial set of columns
# if None then this is taken from the query's fields
- def __init__ (self, query, **settings):
+ # latitude,longitude, zoom : the starting point
+ def __init__ (self, query, latitude=43., longitude=7., zoom=4, **settings):
Plugin.__init__ (self, **settings)
self.query=query
+ self.latitude=latitude
+ self.longitude=longitude
+ self.zoom=zoom
def template_file (self):
return "googlemap.html"
return reqs
# the list of things passed to the js plugin
- def json_settings_list (self): return ['plugin_uuid','query_uuid']
+ def json_settings_list (self): return ['plugin_uuid','query_uuid', 'latitude', 'longitude', 'zoom', ]
# tab's sons preferably turn this off
togglable=False,
query=main_query,
+ # center on Paris
+ latitude=49.,
+ longitude=2.2,
+ zoom=3,
),
Raw (
# SensLabMap (
]),
Hazelnut (
page=page,
- title='not in tabs',
+ title='a hazelnut not in tabs',
domid='standalone',
# this is the query at the core of the slice list
query=main_query,