Add compatibility cadsatre layer with old API GEO

This commit is contained in:
Paul Chavard 2021-05-06 18:50:06 +02:00
parent e74dcb0056
commit 3b85ade440
11 changed files with 206 additions and 155 deletions

View file

@ -4,6 +4,6 @@
partial: 'shared/champs/carte/geo_areas',
locals: { champ: @champ, editing: true }) %>
<% if @update_cadastres %>
<%= fire_event('cadastres:update', { featureCollection: @champ.to_feature_collection }.to_json) %>
<% if @focus %>
<%= fire_event('map:feature:focus', { bbox: @champ.bounding_box }.to_json) %>
<% end %>