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 +4 -4
- data/README.md +9 -0
- data/app/osmaps/controllers/main_controller.rb +1 -1
- data/app/osmaps/controllers/polygon_controller.rb +3 -3
- data/lib/volt/osmaps/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20adbabb577db87c9664d4021186ecb815421f37
|
4
|
+
data.tar.gz: d370e20015e6977d6ff7bec2b76edc4eba9d784d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/lib/volt/osmaps/version.rb
CHANGED