Carte Editor sends FeatureCollection to the server
This commit is contained in:
parent
99c8300c10
commit
bc8217e030
8 changed files with 98 additions and 55 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue