Migrate the map editor to mapbox-gl with react component

This commit is contained in:
kara Diaby 2020-04-16 17:39:41 +02:00
parent 92edbd1724
commit 9aea1fffee
17 changed files with 5424 additions and 19 deletions

View file

@ -4,5 +4,8 @@
partial: 'shared/champs/carte/geo_areas',
locals: { champ: @champ, error: @error }) %>
<%= fire_event('carte:update', { selector: @selector, data: @champ.to_render_data }.to_json) %>
<%= fire_event('map:update', { featureCollection: @champ.to_feature_collection }.to_json) %>
<% if feature_enabled?(:new_map_editor) %>
<%= fire_event('map:update', { featureCollection: @champ.to_feature_collection }.to_json) %>
<% else %>
<%= fire_event('carte:update', { selector: @selector, data: @champ.to_render_data }.to_json) %>
<% end %>