change coordinates to make the map to be centered in Madrid

This commit is contained in:
Julian Herrero
2018-12-12 11:00:16 +01:00
parent fcfee3a906
commit 01033e5371
2 changed files with 12 additions and 12 deletions

View File

@@ -41,30 +41,30 @@ section "Creating Budgets" do
city_group.headings.create!(name: I18n.t('seeds.budgets.groups.all_city'),
price: 1000000,
population: 1000000,
latitude: '-40.123241',
longitude: '25.123249')
latitude: '40.416775',
longitude: '-3.703790')
districts_group = budget.groups.create!(name: I18n.t('seeds.budgets.groups.districts'))
districts_group.headings.create!(name: I18n.t('seeds.geozones.north_district'),
price: rand(5..10) * 100000,
population: 350000,
latitude: '15.234521',
longitude: '-15.234234')
latitude: '40.416775',
longitude: '-3.703790')
districts_group.headings.create!(name: I18n.t('seeds.geozones.west_district'),
price: rand(5..10) * 100000,
population: 300000,
latitude: '14.125125',
longitude: '65.123124')
latitude: '40.416775',
longitude: '-3.703790')
districts_group.headings.create!(name: I18n.t('seeds.geozones.east_district'),
price: rand(5..10) * 100000,
population: 200000,
latitude: '23.234234',
longitude: '-47.134124')
latitude: '40.416775',
longitude: '-3.703790')
districts_group.headings.create!(name: I18n.t('seeds.geozones.central_district'),
price: rand(5..10) * 100000,
population: 150000,
latitude: '-26.133213',
longitude: '-10.123231')
latitude: '40.416775',
longitude: '-3.703790')
end
end

View File

@@ -78,8 +78,8 @@ FactoryBot.define do
sequence(:name) { |n| "Heading #{n}" }
price 1000000
population 1234
latitude '-25.172741'
longitude '40.127241'
latitude '40.416775'
longitude '-3.703790'
trait :drafting_budget do
association :group, factory: [:budget_group, :drafting_budget]