Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Geolocation Tracking App

Could you clarify what are the exact problems with loading? Are there any JS errors in console? Also what steps to reproduce problem with "map ride" button?

Joe Paisley
Posts: 0
Joined: Thu Mar 14, 2013 8:41 pm

Geolocation Tracking App

This is what happens when I click the "Map Ride" button on the "website" page. Image
and this is what happens when I press the "map ride" button from another page besides the "website" page. Image

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Geolocation Tracking App

Hello! Go to Map-Load-Run JavaScript, there is the line codedirectionDisplay;/code - delete it.

Joe Paisley
Posts: 0
Joined: Thu Mar 14, 2013 8:41 pm

Geolocation Tracking App

That changed something, but it didn't really fix anything :/ I get this when I click "map ride" from the "website" page now. Image And this when I click it from another page such as the "camera" page. Image

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Geolocation Tracking App

Hello! In Map-Load-Run JavaScript

Check if you deleted line:
codedirectionDisplay;/code

Should be:
codevar bikeLayer, directionsDisplay, directionsService, directionsDisplay;
function initialize() {
bikeLayer = new google.maps.BicyclingLayer('directionsMap');
bikeLayer.setMap(Tiggzi('directionsMap').gmap);
directionsService = new google.maps.DirectionsService();
directionsDisplay = new google.maps.DirectionsRenderer();
}/code

Joe Paisley
Posts: 0
Joined: Thu Mar 14, 2013 8:41 pm

Geolocation Tracking App

Progress: the page loads now. But I get this error when I click "get directions" on the "map a ride" page. Image it looks familiar

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Geolocation Tracking App

Hi Joe,

JavaScript code that declares variables:
codevar bikeLayer, directionsDisplay, directionsService;/code and function codeinitialize()/codeis duplicated.
JS is in JavaScript asset and then in Run JavaScript action on Map page. You should leave only one of them. For example, you can delete Run JavaScript action.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Geolocation Tracking App

Hi Joe,

JavaScript code that declares variables:
codevar bikeLayer, directionsDisplay, directionsService;/code and function codeinitialize()/codeis duplicated.
JS is in JavaScript asset and then in Run JavaScript action on Map page. You should leave only one of them. For example, you can delete Run JavaScript action.

Joe Paisley
Posts: 0
Joined: Thu Mar 14, 2013 8:41 pm

Geolocation Tracking App

Ohh I see. Well were would be best to place it? Does it really matter?

Joe Paisley
Posts: 0
Joined: Thu Mar 14, 2013 8:41 pm

Geolocation Tracking App

I took it out of my "javascript1" file and left it in the click event for "get directions." and also put the initialize() on click event above the variables and functions. should it be on load event instead? I get this error. Image

Return to “Issues”