Expose selection utilisateur size on champ carte
This commit is contained in:
parent
6043e59937
commit
e873b6a9c4
3 changed files with 45 additions and 3 deletions
|
@ -62,6 +62,14 @@ class Champs::CarteChamp < Champ
|
|||
end
|
||||
end
|
||||
|
||||
def selection_utilisateur_size
|
||||
if geo_json.present?
|
||||
geo_json['coordinates'].size
|
||||
else
|
||||
0
|
||||
end
|
||||
end
|
||||
|
||||
def to_render_data
|
||||
{
|
||||
position: position,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue