autumn_rails 0.0.4.1 → 0.0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb96928f48b767a18c3c6c87d4b66d631663edd1
4
- data.tar.gz: 0df431a7086273d7d4146fa502446b98327f4d79
3
+ metadata.gz: 38cce2ba74fef58156ffc81eb9896ae98bcf2aab
4
+ data.tar.gz: 77607fa9f4447b10baba952ba275d8c75f7548fb
5
5
  SHA512:
6
- metadata.gz: 3929fe1c03fecb7da9f927d3e64c187b09fc08f53f59b754cb240c3a224912406842085d708d2bf51cde3ca08fd94136be3e215c531f161c4948355d4201a59c
7
- data.tar.gz: fba47941efbbd6949554c0916dc0576325f4e069d30bfddecab5bb50ca0fba2da2f309a1cb66312097f6d306f5c4622854e1f330f85fad30277539a111024898
6
+ metadata.gz: 60b008b005363136841aa139379ecc454d36f0025dd52cb8a05f08711188dea710addcd67f668ff7bab21e55a04e30b7f4e9099df1d9d31113480f3d94640def
7
+ data.tar.gz: 63c45dbcf66f59152841e5c99cdae488428b70b54bbaec52ebf17112996a28f12ba938759aa43cb546c53d4283dc8df5d76c2e174a8d8d6468880dddd9abea91
@@ -1,4 +1,4 @@
1
- /*! autumn - v0.0.4.1 - 2014-09-10
1
+ /*! autumn - v0.0.4.2 - 2014-09-17
2
2
  * https://github.com/guyisra/autumn
3
3
  * Copyright (c) 2014 Guy Israeli; Licensed MIT */
4
4
 
@@ -45,6 +45,7 @@
45
45
  var map = L.map(this.element.id,this.options).setView(this.options.center, 17);
46
46
  this._map = map;
47
47
  this.layer = new L.featureGroup(); // TODO this better...
48
+ this.locationLayer = new L.layerGroup();
48
49
  L.tileLayer(this.options.tiles_url, { attribution: this.options.attribution, maxZoom: this.options.maxZoom
49
50
  }).addTo(map);
50
51
  },
@@ -109,6 +110,12 @@
109
110
  case 'fitMarkers':
110
111
  a._map.fitBounds(a.layer.getBounds(), {maxZoom: 16});
111
112
  return this;
113
+ case 'addCircle':
114
+ var circle = L.circle(options.coordinates, options.radius);
115
+ a._map.removeLayer(a.locationLayer);
116
+ a.locationLayer = new L.layerGroup();
117
+ circle.addTo(a.locationLayer);
118
+ a.locationLayer.addTo(a._map);
112
119
  }
113
120
 
114
121
  };
@@ -1,3 +1,3 @@
1
1
  module AutumnRails
2
- VERSION = "0.0.4.1"
2
+ VERSION = "0.0.4.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autumn_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4.1
4
+ version: 0.0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guy Israeli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-10 00:00:00.000000000 Z
11
+ date: 2014-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler