2020-05-14 11:21:33 +02:00
|
|
|
- preview = !champ.persisted?
|
2020-09-02 12:56:45 +02:00
|
|
|
- url = champs_carte_features_path(preview ? 'preview' : champ)
|
|
|
|
= react_component("MapEditor", { featureCollection: champ.to_feature_collection, url: url, preview: preview, options: champ.render_options }, class: "carte-#{champ.id}")
|
2020-05-05 15:09:29 +02:00
|
|
|
|
2018-10-17 12:07:12 +02:00
|
|
|
.geo-areas
|
2020-06-09 17:19:59 +02:00
|
|
|
= render partial: 'shared/champs/carte/geo_areas', locals: { champ: champ, editing: true }
|