google_map 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +12 -22
- data/google_map.gemspec +2 -2
- data/lib/google_map/version.rb +1 -1
- metadata +5 -5
data/README.md
CHANGED
@@ -4,9 +4,9 @@ A RubyGem that and makes generating google maps easy as pie.
|
|
4
4
|
|
5
5
|
INSTALL
|
6
6
|
-------
|
7
|
-
|
7
|
+
In your `Gemfile`, add the following dependency:
|
8
|
+
gem 'google_map'
|
8
9
|
Run:
|
9
|
-
$ gem install google_map
|
10
10
|
$ bundle install
|
11
11
|
|
12
12
|
CONFIGURATION
|
@@ -23,9 +23,7 @@ CONFIGURATION
|
|
23
23
|
MAP CONTROLS
|
24
24
|
------------
|
25
25
|
|
26
|
-
maps_controller.rb
|
27
|
-
--------------------------
|
28
|
-
|
26
|
+
`maps_controller.rb`
|
29
27
|
class MapsController < ApplicationController
|
30
28
|
def show
|
31
29
|
@map = GoogleMap::Map.new
|
@@ -60,9 +58,7 @@ maps_controller.rb
|
|
60
58
|
MAP CENTERING AND ZOOM
|
61
59
|
----------------------
|
62
60
|
|
63
|
-
maps_controller.rb
|
64
|
-
------------------
|
65
|
-
|
61
|
+
`maps_controller.rb`
|
66
62
|
class MapsController < ApplicationController
|
67
63
|
def show
|
68
64
|
@map = GoogleMap::Map.new
|
@@ -74,8 +70,7 @@ maps_controller.rb
|
|
74
70
|
MAP CENTERING USING BOUNDS
|
75
71
|
--------------------------
|
76
72
|
|
77
|
-
maps_controller.rb
|
78
|
-
--------------------------
|
73
|
+
`maps_controller.rb`
|
79
74
|
class MapsController < ApplicationController
|
80
75
|
def show
|
81
76
|
@map = GoogleMap::Map.new
|
@@ -87,8 +82,7 @@ maps_controller.rb
|
|
87
82
|
SIMPLE MARKER USAGE
|
88
83
|
-------------------
|
89
84
|
|
90
|
-
maps_controller.rb
|
91
|
-
--------------------------
|
85
|
+
`maps_controller.rb`
|
92
86
|
class MapsController < ApplicationController
|
93
87
|
def show
|
94
88
|
@map = GoogleMap::Map.new
|
@@ -99,8 +93,7 @@ maps_controller.rb
|
|
99
93
|
end
|
100
94
|
end
|
101
95
|
|
102
|
-
maps/show.html.erb
|
103
|
-
-------------------------
|
96
|
+
`maps/show.html.erb`
|
104
97
|
<%= @map.to_html %>
|
105
98
|
<div style="width: 500px; height: 500px;">
|
106
99
|
<%= @map.div %>
|
@@ -111,11 +104,11 @@ Advanced Marker Usage
|
|
111
104
|
---------------------
|
112
105
|
|
113
106
|
Available icon classes:
|
107
|
+
|
114
108
|
* GoogleMap::LetterIcon.new(@map, 'A') # letter must be uppercase
|
115
109
|
* GoogleMap::SmallIcon.new(@map, 'yellow')
|
116
110
|
|
117
|
-
maps_controller.rb
|
118
|
-
--------------------------
|
111
|
+
`maps_controller.rb`
|
119
112
|
class MapsController < ApplicationController
|
120
113
|
def show
|
121
114
|
@map = GoogleMap::Map.new
|
@@ -132,8 +125,7 @@ maps_controller.rb
|
|
132
125
|
end
|
133
126
|
end
|
134
127
|
|
135
|
-
maps/show.html.erb
|
136
|
-
-------------------------
|
128
|
+
`maps/show.html.erb`
|
137
129
|
<%= @map.to_html %>
|
138
130
|
<div style="width: 500px; height: 500px;">
|
139
131
|
<%= @map.div %>
|
@@ -143,8 +135,7 @@ maps/show.html.erb
|
|
143
135
|
PLOTTING POLYLINE ROUTES
|
144
136
|
------------------------
|
145
137
|
|
146
|
-
maps_controller.rb
|
147
|
-
------------------
|
138
|
+
`maps_controller.rb`
|
148
139
|
class MapsController < ApplicationController
|
149
140
|
def show
|
150
141
|
@map = GoogleMap::Map.new
|
@@ -165,8 +156,7 @@ maps_controller.rb
|
|
165
156
|
end
|
166
157
|
end
|
167
158
|
|
168
|
-
maps/show.html.erb
|
169
|
-
-------------------------
|
159
|
+
`maps/show.html.erb`
|
170
160
|
<%= @map.to_html %>
|
171
161
|
<div style="width: 500px; height: 500px;">
|
172
162
|
<%= @map.div %>
|
data/google_map.gemspec
CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.authors = ["Jeff Dutil"]
|
10
10
|
s.email = ["JDutil@BurlingtonWebApps.com"]
|
11
11
|
s.homepage = "https://github.com/jdutil/google_map"
|
12
|
-
s.summary = %q{Extends geokit and gives convenient helpers for adding google maps to your
|
13
|
-
s.description = %q{Extends geokit and gives convenient helpers for adding google maps to your
|
12
|
+
s.summary = %q{Extends geokit and gives convenient helpers for adding google maps to your application.}
|
13
|
+
s.description = %q{Extends geokit and gives convenient helpers for adding google maps to your application.}
|
14
14
|
|
15
15
|
s.rubyforge_project = "google_map"
|
16
16
|
|
data/lib/google_map/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google_map
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jeff Dutil
|
@@ -19,7 +19,7 @@ date: 2011-03-11 00:00:00 -05:00
|
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
22
|
-
description: Extends geokit and gives convenient helpers for adding google maps to your
|
22
|
+
description: Extends geokit and gives convenient helpers for adding google maps to your application.
|
23
23
|
email:
|
24
24
|
- JDutil@BurlingtonWebApps.com
|
25
25
|
executables: []
|
@@ -84,7 +84,7 @@ rubyforge_project: google_map
|
|
84
84
|
rubygems_version: 1.5.0
|
85
85
|
signing_key:
|
86
86
|
specification_version: 3
|
87
|
-
summary: Extends geokit and gives convenient helpers for adding google maps to your
|
87
|
+
summary: Extends geokit and gives convenient helpers for adding google maps to your application.
|
88
88
|
test_files:
|
89
89
|
- test/google_map_test.rb
|
90
90
|
- test/test_helper.rb
|