Carte Editor sends FeatureCollection to the server

This commit is contained in:
Paul Chavard 2020-04-14 10:24:30 +02:00
parent 99c8300c10
commit bc8217e030
8 changed files with 98 additions and 55 deletions

View file

@ -74,6 +74,7 @@ class Champs::CarteChamp < Champ
def to_feature_collection
{
type: 'FeatureCollection',
id: type_de_champ.stable_id,
bbox: bounding_box,
features: (legacy_selections_utilisateur + except_selections_utilisateur).map(&:to_feature)
}