volt-osmaps 0.1.5 → 0.1.7

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: 5172d71483306b4b43330eae6db44286c051221a
4
- data.tar.gz: 303016bdb6da60edd5be61f484a6924f8979d3da
3
+ metadata.gz: 20adbabb577db87c9664d4021186ecb815421f37
4
+ data.tar.gz: d370e20015e6977d6ff7bec2b76edc4eba9d784d
5
5
  SHA512:
6
- metadata.gz: 78a4e37ab30534bbc3b74e84a7e8bb8931cea53778875b2ac1948dbad38363941e6b64a8a206c96b65fe937b427f2649a4a9a59026d5cf3569eb6a92e3a7ddd1
7
- data.tar.gz: cd58a559f1ba0f2b6fac19adead8667253a607a9ea79eb1d0f69ddb51c3512bb3939e9847d820428c3edfc6fcb11a7c2f14d328db6a124e2b20beb17f2ce3669
6
+ metadata.gz: ad31607c04110c34e51b314f6352b01620721e1b59dd5b98c622c5e09ed85cdc131ab0d2656c00edae967b2e3cd81739c62ec700b54bc828354c5a2f7313157f
7
+ data.tar.gz: a32592eb4387d2218fee83ca790a92b9a5b4ba3616af6d373f3a91cdddecf5e9f5be4820ddb88301963f68dbb0b5b4a58dc8d24443cf60eb126a28b01703d4af
data/README.md CHANGED
@@ -46,6 +46,15 @@ An array of lat,long coordinates will draw a polygon layer on the map. For examp
46
46
 
47
47
  <:osmaps:polygon LatLongArray="[[51.509, -0.08],[51.503, -0.06],[51.51, -0.047]]" />
48
48
 
49
+
50
+ ## TODO
51
+
52
+ * make scale as option
53
+ * custom icon for markers
54
+ * paths
55
+ * circle
56
+ * app test
57
+
49
58
  ## Contributing
50
59
 
51
60
  1. Fork it ( http://github.com/[my-github-username]/volt-osmaps/fork )
@@ -8,9 +8,9 @@ module Osmaps
8
8
  zoom = opts[:zoom] || 15
9
9
  `var map = L.map('osmaps').setView([latitude, longitude], 15).addLayer(osm);`
10
10
  if opts[:title]
11
+ title = opts[:title]
11
12
  `L.marker([ latitude, longitude]).addTo(map).bindPopup(title);`
12
13
  end
13
- `L.control.scale( {imperial: false} )`
14
14
  return nil
15
15
  end
16
16
 
@@ -3,10 +3,10 @@ module Osmaps
3
3
  def index
4
4
  end
5
5
 
6
- def polygon(LatLongArray, opts = {})
7
- `L.polygon(LatLongArray).addTo(map);`
6
+ def polygon(latLongArray, opts = {})
7
+ `L.polygon(latLongArray).addTo(map);`
8
8
  return nil
9
9
  end
10
-
10
+
11
11
  end
12
12
  end
@@ -1,5 +1,5 @@
1
1
  module Volt
2
2
  module Osmaps
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: volt-osmaps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - heri