geo_contrast 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -8
- data/lib/geo_contrast/version.rb +1 -1
- data/vendor/assets/javascripts/geo_contrast.js +14 -14
- 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: e62e7699de6d7f0ea1372683c197fa1c9c898090
|
4
|
+
data.tar.gz: e70ea1b6e8fc2ece8905e205b0d308b49a95e197
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3d75e785ade8fd66a82b7382a3625b4bcc0aa723ce041c9af6598f57a0734c5a3329b2e577854fb1ff6af144e3125b85d1694c543de5759620329d2b4cb81b3
|
7
|
+
data.tar.gz: bd3f710a7b658b6434c25b7a3fab25278f58ace9fb44e8702df3a0f84676f1883cd324bee500023fbd8a90b3c523faf6194e4b1255a237233bed78cf30fffa9c
|
data/README.md
CHANGED
@@ -54,9 +54,16 @@ $('.your_class').geoContrast({format: "formatted"});
|
|
54
54
|
|
55
55
|
If you want to search just for cities, for example, you can pass a option to specify this:
|
56
56
|
```javascript
|
57
|
-
$('.your_class').geoContrast({format: "
|
57
|
+
$('.your_class').geoContrast({format: "formatted", options_gmaps: {types: ['(cities)']}});
|
58
58
|
```
|
59
59
|
|
60
|
+
The options are:
|
61
|
+
|
62
|
+
1. 'geocode' -> For addresses.
|
63
|
+
2. '(regions)' -> For administrative regions.
|
64
|
+
3. 'establishment' -> For businesses.
|
65
|
+
4. '(cities)' -> For just city names.
|
66
|
+
|
60
67
|
## ROADMAP
|
61
68
|
|
62
69
|
Here is the next things that will be (probably) implemented:
|
@@ -67,13 +74,6 @@ Here is the next things that will be (probably) implemented:
|
|
67
74
|
|
68
75
|
**...and more**
|
69
76
|
|
70
|
-
The options are:
|
71
|
-
|
72
|
-
1. 'geocode' -> For addresses.
|
73
|
-
2. '(regions)' -> For administrative regions.
|
74
|
-
3. 'establishment' -> For businesses.
|
75
|
-
4. '(cities)' -> For just city names.
|
76
|
-
|
77
77
|
## Contributing
|
78
78
|
1. Fork it ( https://github.com/codelandev/geo-contrast/fork )
|
79
79
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
data/lib/geo_contrast/version.rb
CHANGED
@@ -209,20 +209,20 @@ $(function(){
|
|
209
209
|
}
|
210
210
|
});
|
211
211
|
|
212
|
-
$(document).on('keydown','.geocontrast',function(e){
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
});
|
212
|
+
// $(document).on('keydown','.geocontrast',function(e){
|
213
|
+
// switch(e.keyCode){
|
214
|
+
// case 9:
|
215
|
+
// if (this.options.assign_through_tab){
|
216
|
+
// this.find_address(this.first_hint(), function(){
|
217
|
+
// this.sync();
|
218
|
+
// });
|
219
|
+
// }
|
220
|
+
// break;
|
221
|
+
// case 13:
|
222
|
+
// e.preventDefault();
|
223
|
+
// break;
|
224
|
+
// }
|
225
|
+
// });
|
226
226
|
|
227
227
|
$(document).on('click','.pin_geocontrast',function(){
|
228
228
|
var input = $(this).prev()[0];
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geo_contrast
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CODELAND
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|