remove possibility to create carte with parcelle agricole
This commit is contained in:
parent
1a7b219478
commit
c2916e9d05
2 changed files with 0 additions and 12 deletions
|
@ -47,14 +47,6 @@ class Champs::CarteController < ApplicationController
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if @champ.parcelles_agricoles?
|
|
||||||
parcelles_agricoles = ApiCartoService.generate_rpg(coordinates)
|
|
||||||
geo_areas += parcelles_agricoles.map do |parcelle_agricole|
|
|
||||||
parcelle_agricole[:source] = GeoArea.sources.fetch(:parcelle_agricole)
|
|
||||||
parcelle_agricole
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
selection_utilisateur = ApiCartoService.generate_selection_utilisateur(coordinates)
|
selection_utilisateur = ApiCartoService.generate_selection_utilisateur(coordinates)
|
||||||
selection_utilisateur[:source] = GeoArea.sources.fetch(:selection_utilisateur)
|
selection_utilisateur[:source] = GeoArea.sources.fetch(:selection_utilisateur)
|
||||||
geo_areas << selection_utilisateur
|
geo_areas << selection_utilisateur
|
||||||
|
|
|
@ -144,10 +144,6 @@ const TypeDeChamp = sortableElement(
|
||||||
label="Cadastres"
|
label="Cadastres"
|
||||||
handler={updateHandlers.cadastres}
|
handler={updateHandlers.cadastres}
|
||||||
/>
|
/>
|
||||||
<TypeDeChampCarteOption
|
|
||||||
label="Parcelles Agricoles"
|
|
||||||
handler={updateHandlers.parcelles_agricoles}
|
|
||||||
/>
|
|
||||||
</TypeDeChampCarteOptions>
|
</TypeDeChampCarteOptions>
|
||||||
<TypeDeChampRepetitionOptions
|
<TypeDeChampRepetitionOptions
|
||||||
isVisible={isRepetition}
|
isVisible={isRepetition}
|
||||||
|
|
Loading…
Reference in a new issue