Improve the mapbox-gl support detection for older browsers
This commit is contained in:
parent
56e9834389
commit
d18bc1c421
4 changed files with 93 additions and 191 deletions
|
@ -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 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue