Improve the mapbox-gl support detection for older browsers

This commit is contained in:
kara Diaby 2020-04-07 18:20:53 +02:00
parent 56e9834389
commit d18bc1c421
4 changed files with 93 additions and 191 deletions

View file

@ -1,7 +1,4 @@
- if champ.to_s.present?
- 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
= react_component("MapReader", { geoData: champ.to_render_data } )
.geo-areas
= render partial: 'shared/champs/carte/geo_areas', locals: { champ: champ, error: false }