autumn_rails 0.0.4.1 → 0.0.4.2
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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/jquery.autumn.js +8 -1
- data/lib/autumn_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38cce2ba74fef58156ffc81eb9896ae98bcf2aab
|
4
|
+
data.tar.gz: 77607fa9f4447b10baba952ba275d8c75f7548fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60b008b005363136841aa139379ecc454d36f0025dd52cb8a05f08711188dea710addcd67f668ff7bab21e55a04e30b7f4e9099df1d9d31113480f3d94640def
|
7
|
+
data.tar.gz: 63c45dbcf66f59152841e5c99cdae488428b70b54bbaec52ebf17112996a28f12ba938759aa43cb546c53d4283dc8df5d76c2e174a8d8d6468880dddd9abea91
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! autumn - v0.0.4.
|
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
|
};
|
data/lib/autumn_rails/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|