angular-leaflet-rails 0.1.0.2 → 0.1.0.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2dbd98dbdb5bd6d2f60c447e83171a961fbcaaa0
|
4
|
+
data.tar.gz: 48d8a8dea0ca7ce2fd8ac50615c9082724417cc4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cb868ebfb1000e9ad8a117c3ef571f01d642a2891d8cbc7db202892913762cfee4c1c8907249c723e091d2f4b15a003de063e3913a2e19d08ffe51ea40be3fe
|
7
|
+
data.tar.gz: 0dcc291e9ff174086bb3096df6a4866b7aa9717cb4e2e541d74335b4000064852aaacd27344aa033d02050a64741bdff58b4ea00998b136a31e4c6979d7c06c6
|
@@ -58,7 +58,9 @@ leafletDirective.directive("leaflet", ["$http", "$log", function ($http, $log) {
|
|
58
58
|
});
|
59
59
|
|
60
60
|
scope.$watch("center", function (center, oldValue) {
|
61
|
-
|
61
|
+
if(center.lat && center.lng && center.zoom){
|
62
|
+
map.setView([center.lat, center.lng], center.zoom);
|
63
|
+
}
|
62
64
|
}, true);
|
63
65
|
}
|
64
66
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: angular-leaflet-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tymon Tobolski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-05-
|
11
|
+
date: 2013-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: angular-rails
|