angular-leaflet-rails 0.1.0 → 0.1.0.1

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: e8700dc973f07864d75fb305b5674daafc0894c0
4
- data.tar.gz: 1a1a848a1da0b15f8d5a9002e3e55e0939a34508
3
+ metadata.gz: 06b70b6fcd0d05403b3655ee5d37495145a7afbb
4
+ data.tar.gz: b49142f05f11414cdace61acfc1294635237a0b3
5
5
  SHA512:
6
- metadata.gz: 78f383c44ce9da940aa2ecab083e45490aafcc1c90a855cae3724b452f8076e8fd5058940e38ed80d20f95af30e55a8386a46362ec55096c245dbea1e733a308
7
- data.tar.gz: d230e3cfb9e23def7aa995bbb033be718c4a2facd261c78a7e6e7b1812ac2221c5837be2877709bcf7d2d71d9066b6f49408dc55f75cd0a7c373c7144c961b86
6
+ metadata.gz: 59bc3bd6bc3437368af756638aed52df3a6f6077d6f8fca51efcfdd1687ce24853ab78f70a409a91b980bb9628b9ff63aefbeec5721bfd1fe1dbd0b590e63e3f
7
+ data.tar.gz: fff2df32759ed392c30da617088369e85196fb61fa2d231da60621f99ed5245cc74cddd04812e82af3aed7ab292aadcf7062eab99778990ba52047e128767bac
data/README.md CHANGED
@@ -13,7 +13,7 @@ gem "angular-leaflet-rails"
13
13
  Add the following directive to your Javascript manifest file (application.js):
14
14
 
15
15
  ```js
16
- //= require angular-ui
16
+ //= require angular-leaflet
17
17
  ```
18
18
 
19
19
 
@@ -1,5 +1,5 @@
1
1
  module AngularLeaflet
2
2
  module Rails
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.0.1"
4
4
  end
5
5
  end
@@ -22,6 +22,11 @@ leafletDirective.directive("leaflet", ["$http", "$log", function ($http, $log) {
22
22
  scope.map = map;
23
23
  }
24
24
 
25
+ // Set maxZoom from attrs
26
+ if (attrs.maxzoom){
27
+ scope.maxZoom = parseInt(attrs.maxzoom)
28
+ }
29
+
25
30
  // Set initial view
26
31
  map.setView([0, 0], 1);
27
32
 
metadata CHANGED
@@ -1,7 +1,7 @@
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.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tymon Tobolski