Migrate the map editor to mapbox-gl with react component
This commit is contained in:
parent
92edbd1724
commit
9aea1fffee
17 changed files with 5424 additions and 19 deletions
|
@ -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 %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue