magic_addresses 0.0.39.rc7 → 0.0.39.rc8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: daadc567833c8bdeb832762bbc9cb7b76c14e7e5
4
- data.tar.gz: c0955aadfb925d4a8876cee21144af4d1c763ebf
3
+ metadata.gz: 7fff6bdee6e06ae76d87c02e5e898aa68ef1f813
4
+ data.tar.gz: ade549d6cfe025d792f1be79972adf038d52a9d9
5
5
  SHA512:
6
- metadata.gz: 5b25ecfc082099dfe5c4e3ce12cba2adb748e02f47c7f930b641a6606fe4c8d57569869d67e223fdd62584434e066b7cf8842ab7d279a281afccbc9ba46d482f
7
- data.tar.gz: 9ae6a2acb1cda11df4b3022a96c48483c7f9d1c53761e3c4488c7973459c4aeb37b9fe5c57aac450a70462782057dbc312496ec107d8f200aeec316298194cc9
6
+ metadata.gz: 7467b2772ec815b7ace82fb33a52084faea1caf7db636260973d1a244fff003ae8a1d41c808efdc602d693ee74ec94d20a79ab865784e8b9129582a1463c74bd
7
+ data.tar.gz: 9d34237399d1c1d64d13aeb536254dc6460db66d5c3a25af86804753a531811d40a6749e16aa00522863a6c959577f8fdebffb127f35c66d1e4a06b69921864b
@@ -5,7 +5,7 @@ class MagicAddresses::AddressSerializer < ActiveModel::Serializer
5
5
  attributes :id, :created_at, :updated_at
6
6
 
7
7
  ## Address - Attributes
8
- attributes :name, :default, :street, :street_additional, :number, :postalcode, :city, :district, :subdistrict, :state, :country
8
+ attributes :name, :street, :street_additional, :number, :postalcode, :city, :district, :subdistrict, :state, :country
9
9
 
10
10
  ## Location
11
11
  attributes :latitude, :longitude
@@ -1,3 +1,3 @@
1
1
  module MagicAddresses
2
- VERSION = "0.0.39.rc7"
2
+ VERSION = "0.0.39.rc8"
3
3
  end
@@ -73,7 +73,16 @@ $ ->
73
73
  radius = (radius / earthRadii[unitKey]) * earthRadii['mt']
74
74
 
75
75
 
76
- if radius > 31000
76
+ if radius > 91000
77
+ console.log "zoom .. #{radius} > 91000"
78
+ map.setZoom(4)
79
+ else if radius > 71000
80
+ console.log "zoom .. #{radius} > 71000"
81
+ map.setZoom(5)
82
+ else if radius > 51000
83
+ console.log "zoom .. #{radius} > 51000"
84
+ map.setZoom(6)
85
+ else if radius > 31000
77
86
  console.log "zoom .. #{radius} > 31000"
78
87
  map.setZoom(7)
79
88
  else if radius > 21000
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magic_addresses
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.39.rc7
4
+ version: 0.0.39.rc8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Torsten Wetzel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-21 00:00:00.000000000 Z
11
+ date: 2016-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -1111,7 +1111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1111
1111
  version: 1.3.1
1112
1112
  requirements: []
1113
1113
  rubyforge_project:
1114
- rubygems_version: 2.5.0
1114
+ rubygems_version: 2.4.5
1115
1115
  signing_key:
1116
1116
  specification_version: 4
1117
1117
  summary: A really nice address plugin we offten use.