Files
openfoodnetwork/app/views/shared/_map.html.haml
Maikel Linke 445fae4d09 Use Google's map tiles with Google Maps
We started to move to Open Street Maps (OSM) and one simple change was
to show OSM tiles on top of the current Google Maps functionality. This
hybrid use violates Google's terms and conditions though and I'm
reverting it here (basically reverting daa5b00a2).

Another branch of work was already started to use OSM without Google
functionality and it's available behind a feature toggle. We can
continue that work in our own time without a license violation. This
change is only changing the tiles, the look of the map and doesn't touch
any functionality which was always provided by Google Maps.
2021-02-16 14:30:24 +11:00

16 lines
599 B
Plaintext

- if ContentConfig.open_street_map_enabled
.map-container
%ofn-open-street-map#open-street-map
%div#open-street-map--search
%input.autocomplete-input
%ul.autocomplete-result-list
- else
.map-container
%map{"ng-controller" => "MapCtrl"}
%ui-gmap-google-map{options: "map.additional_options", center: "map.center", zoom: "map.zoom",
styles: "map.styles", draggable: "true"}
%map-search
%ui-gmap-markers{models: "OfnMap.enterprises", fit: "true",
coords: "'self'", icon: "'icon'", click: "'reveal'"}