Allow instructeurs to download a GeoJSON document for a given dossier

This commit is contained in:
Paul Chavard 2020-04-30 15:49:43 +02:00
parent ef2d9e1138
commit 843e033c38
8 changed files with 102 additions and 5 deletions

View file

@ -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