Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #270 4.3_As a retailer,I can view the map of every route #332

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions HealthyGrocery/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,17 @@ gem 'gmaps4rails', '~> 2.1.2'
gem "gon" , '5.0.4'
#handles the showen progress bar
gem 'css3-progress-bar-rails'
gem 'ruby-beautify', '~> 0.92.2'
gem 'kaminari'

group :test do
gem 'faker'
gem 'capybara'
gem 'guard-rspec'
gem 'launchy'
end

gem 'ruby-beautify', '~> 0.92.2'



# Gems used only for assets and not required
# in production environments by default.
Expand Down
135 changes: 135 additions & 0 deletions HealthyGrocery/app/assets/javascripts/google_maps_routes0.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
// Author : Karim El-Bawab
// Team: 4
// Script name: google_maps_routes0
// Function: This script is used to load google map
// on the website pages
window.google = window.google || {};
google.maps = google.maps || {};
(function () {
function getScript(src) {
document.write('<' + 'script src="' + src + '"' + ' type="text/javascript"><' + '/script>');
}
var modules = google.maps.modules = {};
google.maps.__gjsload__ = function (name, text) {
modules[name] = text;
};
google.maps.Load = function (apiLoad) {
delete google.maps.Load;
apiLoad([0.009999999776482582, [
[
["http://mt0.googleapis.com/vt?lyrs=m@262000000\u0026src=api\u0026hl=en-US\u0026", "http://mt1.googleapis.com/vt?lyrs=m@262000000\u0026src=api\u0026hl=en-US\u0026"], null, null, null, null, "m@262000000", ["https://mts0.google.com/vt?lyrs=m@262000000\u0026src=api\u0026hl=en-US\u0026", "https://mts1.google.com/vt?lyrs=m@262000000\u0026src=api\u0026hl=en-US\u0026"]
],
[
["http://khm0.googleapis.com/kh?v=149\u0026hl=en-US\u0026", "http://khm1.googleapis.com/kh?v=149\u0026hl=en-US\u0026"], null, null, null, 1, "149", ["https://khms0.google.com/kh?v=149\u0026hl=en-US\u0026", "https://khms1.google.com/kh?v=149\u0026hl=en-US\u0026"]
],
[
["http://mt0.googleapis.com/vt?lyrs=h@262000000\u0026src=api\u0026hl=en-US\u0026", "http://mt1.googleapis.com/vt?lyrs=h@262000000\u0026src=api\u0026hl=en-US\u0026"], null, null, null, null, "h@262000000", ["https://mts0.google.com/vt?lyrs=h@262000000\u0026src=api\u0026hl=en-US\u0026", "https://mts1.google.com/vt?lyrs=h@262000000\u0026src=api\u0026hl=en-US\u0026"]
],
[
["http://mt0.googleapis.com/vt?lyrs=t@132,r@262000000\u0026src=api\u0026hl=en-US\u0026", "http://mt1.googleapis.com/vt?lyrs=t@132,r@262000000\u0026src=api\u0026hl=en-US\u0026"], null, null, null, null, "t@132,r@262000000", ["https://mts0.google.com/vt?lyrs=t@132,r@262000000\u0026src=api\u0026hl=en-US\u0026", "https://mts1.google.com/vt?lyrs=t@132,r@262000000\u0026src=api\u0026hl=en-US\u0026"]
], null, null, [
["http://cbk0.googleapis.com/cbk?", "http://cbk1.googleapis.com/cbk?"]
],
[
["http://khm0.googleapis.com/kh?v=84\u0026hl=en-US\u0026", "http://khm1.googleapis.com/kh?v=84\u0026hl=en-US\u0026"], null, null, null, null, "84", ["https://khms0.google.com/kh?v=84\u0026hl=en-US\u0026", "https://khms1.google.com/kh?v=84\u0026hl=en-US\u0026"]
],
[
["http://mt0.googleapis.com/mapslt?hl=en-US\u0026", "http://mt1.googleapis.com/mapslt?hl=en-US\u0026"]
],
[
["http://mt0.googleapis.com/mapslt/ft?hl=en-US\u0026", "http://mt1.googleapis.com/mapslt/ft?hl=en-US\u0026"]
],
[
["http://mt0.googleapis.com/vt?hl=en-US\u0026", "http://mt1.googleapis.com/vt?hl=en-US\u0026"]
],
[
["http://mt0.googleapis.com/mapslt/loom?hl=en-US\u0026", "http://mt1.googleapis.com/mapslt/loom?hl=en-US\u0026"]
],
[
["https://mts0.googleapis.com/mapslt?hl=en-US\u0026", "https://mts1.googleapis.com/mapslt?hl=en-US\u0026"]
],
[
["https://mts0.googleapis.com/mapslt/ft?hl=en-US\u0026", "https://mts1.googleapis.com/mapslt/ft?hl=en-US\u0026"]
],
[
["https://mts0.googleapis.com/mapslt/loom?hl=en-US\u0026", "https://mts1.googleapis.com/mapslt/loom?hl=en-US\u0026"]
]
],
["en-US", "US", null, 0, null, null, "http://maps.gstatic.com/mapfiles/", "http://csi.gstatic.com", "https://maps.googleapis.com", "http://maps.googleapis.com"],
["http://maps.gstatic.com/intl/en_us/mapfiles/api-3/14/16", "3.14.16"],
[2477505659], 1, null, null, null, null, 0, "", ["geometry"], null, 0, "http://khm.googleapis.com/mz?v=149\u0026", null, "https://earthbuilder.googleapis.com", "https://earthbuilder.googleapis.com", null, "http://mt.googleapis.com/vt/icon", [
["http://mt0.googleapis.com/vt", "http://mt1.googleapis.com/vt"],
["https://mts0.googleapis.com/vt", "https://mts1.googleapis.com/vt"],
[null, [
[0, "m", 262000000]
],
[null, "en-US", "US", null, 18, null, null, null, null, null, null, [
[47],
[37, [
["smartmaps"]
]]
]], 0
],
[null, [
[0, "m", 262000000]
],
[null, "en-US", "US", null, 18, null, null, null, null, null, null, [
[47],
[37, [
["smartmaps"]
]]
]], 3
],
[null, [
[0, "m", 262000000]
],
[null, "en-US", "US", null, 18, null, null, null, null, null, null, [
[50],
[37, [
["smartmaps"]
]]
]], 0
],
[null, [
[0, "m", 262000000]
],
[null, "en-US", "US", null, 18, null, null, null, null, null, null, [
[50],
[37, [
["smartmaps"]
]]
]], 3
],
[null, [
[4, "t", 132],
[0, "r", 132000000]
],
[null, "en-US", "US", null, 18, null, null, null, null, null, null, [
[5],
[37, [
["smartmaps"]
]]
]], 0
],
[null, [
[4, "t", 132],
[0, "r", 132000000]
],
[null, "en-US", "US", null, 18, null, null, null, null, null, null, [
[5],
[37, [
["smartmaps"]
]]
]], 3
],
[null, null, [null, "en-US", "US", null, 18], 0],
[null, null, [null, "en-US", "US", null, 18], 3],
[null, null, [null, "en-US", "US", null, 18], 6],
[null, null, [null, "en-US", "US", null, 18], 0],
["https://mts0.google.com/vt", "https://mts1.google.com/vt"], "/maps/vt"
], 2, 500, ["http://geo0.ggpht.com/cbk?cb_client=maps_sv.uv_api_demo", "http://www.gstatic.com/landmark/tour", "http://www.gstatic.com/landmark/config", "/maps/preview/reveal?authuser=0", "/maps/preview/log204", "/gen204?tbm=map", "http://static.panoramio.com.storage.googleapis.com/photos/"]
], loadScriptTime);
};
var loadScriptTime = (new Date).getTime();
getScript("http://maps.gstatic.com/cat_js/intl/en_us/mapfiles/api-3/14/16/%7Bmain,geometry%7D.js");
})();
Loading