5 lines
416 B
Text
5 lines
416 B
Text
- preview = !champ.persisted?
|
|
= react_component("MapEditor", { featureCollection: champ.to_feature_collection, url: champs_carte_features_path(preview ? 'preview' : champ), preview: preview, hasCadastres: !!champ.cadastres?, ign: feature_enabled_for?(:carte_ign, champ.procedure) }, class: "carte-#{champ.id}")
|
|
|
|
.geo-areas
|
|
= render partial: 'shared/champs/carte/geo_areas', locals: { champ: champ, editing: true }
|