Allow instructeurs to download a GeoJSON document for a given dossier
This commit is contained in:
parent
ef2d9e1138
commit
843e033c38
8 changed files with 102 additions and 5 deletions
|
@ -36,7 +36,14 @@ class GeoArea < ApplicationRecord
|
|||
{
|
||||
type: 'Feature',
|
||||
geometry: geometry,
|
||||
properties: properties.merge(source: source, area: area, length: length).compact
|
||||
properties: properties.symbolize_keys.merge(
|
||||
source: source,
|
||||
area: area,
|
||||
length: length,
|
||||
id: id,
|
||||
champ_id: champ.stable_id,
|
||||
dossier_id: champ.dossier_id
|
||||
).compact
|
||||
}
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue