mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-27 21:06:49 +00:00
Fixes an issue where if the js library from maps.googleapis.com failed to load in the <head>, all of our subsequent Angular would completely break. See: https://github.com/angular-ui/angular-google-maps Note: `bluebird.js` is a new dependency of `angular-google-maps.js`.
17 lines
598 B
Plaintext
17 lines
598 B
Plaintext
- content_for(:title) do
|
|
= t :label_map
|
|
|
|
- content_for :injection_data do
|
|
= inject_enterprise_shopfront_list
|
|
|
|
.map-container{"fill-vertical" => true}
|
|
%map{"ng-controller" => "MapCtrl"}
|
|
%ui-gmap-google-map{options: "map.additional_options", center: "map.center", zoom: "map.zoom", styles: "map.styles", draggable: "true"}
|
|
%map-osm-tiles
|
|
%map-search
|
|
%ui-gmap-markers{models: "OfnMap.enterprises", fit: "true",
|
|
coords: "'self'", icon: "'icon'", click: "'reveal'"}
|
|
|
|
.map-footer
|
|
%a{:href => "http://www.openstreetmap.org/copyright"} © OpenStreetMap contributors
|