gmpoint 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/assets/javascripts/locations.js.coffee +1 -3
- data/app/helpers/gmpoint/gmpoint_helper.rb +1 -1
- data/gmpoint.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.6
|
@@ -22,8 +22,6 @@ window.initJsMap = ->
|
|
22
22
|
google.maps.event.addListener window.gmpoint_map, "click", (event) ->
|
23
23
|
latlng = event.latLng
|
24
24
|
window.geopoint_handle(latlng)
|
25
|
-
else
|
26
|
-
window.geopoint_search_map($("#gmpoint_location_address"))
|
27
25
|
|
28
26
|
window.geopoint_search_map = (dom) ->
|
29
27
|
addressField = $(dom)
|
@@ -32,7 +30,7 @@ window.geopoint_search_map = (dom) ->
|
|
32
30
|
if status == google.maps.GeocoderStatus.OK
|
33
31
|
loc = results[0].geometry.location
|
34
32
|
window.gmpoint_marker.setPosition(loc)
|
35
|
-
window.gmpoint_map.setCenter(window.gmpoint_marker.getPosition())
|
33
|
+
window.gmpoint_map.setCenter(window.gmpoint_marker.getPosition(), 16)
|
36
34
|
point = loc
|
37
35
|
window.geopoint_handle(point)
|
38
36
|
|
@@ -10,7 +10,7 @@ module Gmpoint::GmpointHelper
|
|
10
10
|
@address = object.location_address
|
11
11
|
@latitude = object.location_latitude
|
12
12
|
@longitude = object.location_longitude
|
13
|
-
opts = {allow: 'show', searchbox: 'show', width: 800, height: 400, latitude: "#{@latitude}", longitude: "#{@longitude}", address: "#{@address}" zoom: 13, style: "border: 1px solid #green;", searchbox_width: 400}.merge(opts)
|
13
|
+
opts = {allow: 'show', searchbox: 'show', width: 800, height: 400, latitude: "#{@latitude}", longitude: "#{@longitude}", address: "#{@address}", zoom: 13, style: "border: 1px solid #green;", searchbox_width: 400}.merge(opts)
|
14
14
|
[
|
15
15
|
content_tag(:div, :id => "geopoint_search_box_container", style: "width: #{opts[:searchbox_width]}px; margin: 0 auto; margin-bottom: 10px; display: #{opts[:searchbox]}") do
|
16
16
|
tag(:input, type: :text, placeholder: 'Search', id: "gmpoint_#{model_name}_search_box", style: "width: #{opts[:searchbox_width]}px; border:1px solid #{:color};")
|
data/gmpoint.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gmpoint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -150,7 +150,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
150
150
|
version: '0'
|
151
151
|
segments:
|
152
152
|
- 0
|
153
|
-
hash:
|
153
|
+
hash: -2646935666980869878
|
154
154
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
155
|
none: false
|
156
156
|
requirements:
|