gmaps4rails 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,13 +1,13 @@
|
|
1
1
|
xml.instruct! :xml, :version=>"1.0"
|
2
2
|
xml.kml do
|
3
3
|
xml.Document do
|
4
|
-
if @objects.first.respond_to?('gmaps4rails_marker')
|
4
|
+
#if @objects.first.respond_to?('gmaps4rails_marker')
|
5
5
|
xml.Style('id' => 'specmarker') do
|
6
6
|
xml.IconStyle do
|
7
7
|
xml.Icon "<href>" + @objects.first.gmaps4rails_marker + "</href>"
|
8
8
|
end
|
9
9
|
end
|
10
|
-
end
|
10
|
+
#end
|
11
11
|
|
12
12
|
# <Style id="highlightPlacemark">
|
13
13
|
# <IconStyle>
|
@@ -17,7 +17,7 @@ xml.kml do
|
|
17
17
|
# </IconStyle>
|
18
18
|
# </Style>
|
19
19
|
|
20
|
-
if @objects.respond_to?('gmaps4rails_info')
|
20
|
+
if @objects.first.respond_to?('gmaps4rails_info')
|
21
21
|
@objects.each do |object|
|
22
22
|
|
23
23
|
xml.Placemark do
|
@@ -50,8 +50,8 @@ module Gmaps4rails
|
|
50
50
|
#parse result if result received properly
|
51
51
|
if resp.inspect.include?('HTTPOK 200 OK')
|
52
52
|
fields = resp.body.split(',')
|
53
|
-
self.
|
54
|
-
self.
|
53
|
+
self.gmaps4rails_latitude = fields[2]
|
54
|
+
self.gmaps4rails_longitude = fields[3]
|
55
55
|
#saves a boolean to remind the status
|
56
56
|
self.gmaps = true
|
57
57
|
else
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gmaps4rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Benjamin Roth
|