Revert "Revert "feat/4893 - migrate the mapReader to mapbox-gl with react""
This reverts commit 3e21b78142
.
This commit is contained in:
parent
f96ee322a0
commit
fe0b3c2215
8 changed files with 402 additions and 6 deletions
|
@ -1,4 +1,7 @@
|
|||
- if champ.to_s.present?
|
||||
.carte{ data: { geo: geo_data(champ) } }
|
||||
- if supported_browser?
|
||||
= react_component("MapReader", { geoData: champ.to_render_data } )
|
||||
- else
|
||||
%p La carte n'est pas compatible avec votre navigateur. Afin de l'afficher, nous vous conseillons d'utiliser Chrome, Firefox ou Safari
|
||||
.geo-areas
|
||||
= render partial: 'shared/champs/carte/geo_areas', locals: { champ: champ, error: false }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue