Added region_id to the generated geojson
This commit is contained in:
parent
838d4538a6
commit
c37fc6f3cd
@ -89,7 +89,8 @@ class Event < ApplicationRecord
|
||||
{ type: 'Feature', properties: {
|
||||
id: id, name: title, start_time: start_time, end_time: end_time,
|
||||
submission_time: submission_time, decision_time: decision_time,
|
||||
place_name: place_name, address: address, city: city, region: region.name,
|
||||
place_name: place_name, address: address, city: city,
|
||||
region: region.name, region_id: region_id,
|
||||
tags: tag_list, popupContent: "<a href=\"/events/#{id}\">#{self}</a>"
|
||||
}, geometry: { type: 'Point', coordinates: [longitude, latitude] } }
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user