gmapsjs 0.1.10 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,6 +10,7 @@ var GMaps = (function($) {
10
10
  this.div = $(options.div)[0];
11
11
  this.controls = [];
12
12
  this.overlays = [];
13
+ this.layers = [];
13
14
  this.markers = [];
14
15
  this.polylines = [];
15
16
  this.routes = [];
@@ -680,6 +681,29 @@ var GMaps = (function($) {
680
681
  return polygon;
681
682
  };
682
683
 
684
+ this.getFromFusionTables = function(options) {
685
+ var fusion_tables_options = {
686
+ query: options.query,
687
+ styles: options.styles,
688
+ suppressInfoWindows: true
689
+ };
690
+
691
+ var layer = new google.maps.FusionTablesLayer(fusion_tables_options);
692
+
693
+ layer.setMap(this.map);
694
+
695
+ for (var e in options.events) {
696
+ google.maps.event.addListener(layer, 'click', function(ev){
697
+ options.events[e].apply(this, [ev]);
698
+ return false;
699
+ });
700
+ }
701
+
702
+ this.layers.push(layer);
703
+
704
+ return layer;
705
+ };
706
+
683
707
  // Services
684
708
  var travelMode, unitSystem;
685
709
  this.getRoutes = function(options) {
@@ -1,3 +1,3 @@
1
1
  module GmapsJS
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.11"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gmapsjs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-05-27 00:00:00.000000000Z
13
+ date: 2012-05-28 00:00:00.000000000Z
14
14
  dependencies: []
15
15
  description: ! 'gmaps.js allows you to use the potential of Google Maps in a simple
16
16
  way.