Merge pull request #4264 from Keirua/fix/parcelles-agricoles
remove possibility to create carte with parcelle agricole
This commit is contained in:
commit
e47925e18e
2 changed files with 0 additions and 12 deletions
|
@ -47,14 +47,6 @@ class Champs::CarteController < ApplicationController
|
|||
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[:source] = GeoArea.sources.fetch(:selection_utilisateur)
|
||||
geo_areas << selection_utilisateur
|
||||
|
|
|
@ -144,10 +144,6 @@ const TypeDeChamp = sortableElement(
|
|||
label="Cadastres"
|
||||
handler={updateHandlers.cadastres}
|
||||
/>
|
||||
<TypeDeChampCarteOption
|
||||
label="Parcelles Agricoles"
|
||||
handler={updateHandlers.parcelles_agricoles}
|
||||
/>
|
||||
</TypeDeChampCarteOptions>
|
||||
<TypeDeChampRepetitionOptions
|
||||
isVisible={isRepetition}
|
||||
|
|
Loading…
Reference in a new issue