Page 4 of 8

Geolocation Tracking App

Posted: Thu Apr 11, 2013 5:30 pm
by Maryna Brodina

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?


Geolocation Tracking App

Posted: Thu Apr 11, 2013 8:55 pm
by Joe Paisley

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


Geolocation Tracking App

Posted: Fri Apr 12, 2013 12:19 pm
by Maryna Brodina

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


Geolocation Tracking App

Posted: Fri Apr 12, 2013 1:31 pm
by Joe Paisley

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


Geolocation Tracking App

Posted: Fri Apr 12, 2013 2:14 pm
by Alena Prykhodko

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


Geolocation Tracking App

Posted: Fri Apr 12, 2013 4:35 pm
by Joe Paisley

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


Geolocation Tracking App

Posted: Fri Apr 12, 2013 4:59 pm
by Kateryna Grynko

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.


Geolocation Tracking App

Posted: Fri Apr 12, 2013 5:05 pm
by Kateryna Grynko

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.


Geolocation Tracking App

Posted: Fri Apr 12, 2013 6:15 pm
by Joe Paisley

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


Geolocation Tracking App

Posted: Fri Apr 12, 2013 6:37 pm
by Joe Paisley

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