kshama21 / storelocator

Automatically exported from code.google.com/p/storelocator
0 stars 0 forks source link

directions after geolocation do not work #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Load the map with geolocation on.
2. Click a store and then 'Get Directions'

What is the expected output? What do you see instead?

It should show directions from the geolocation result. Instead it shows nothing.

What version of the product are you using? On what operating system?

Please provide any additional information below.

My quick solution:

add a location attribute to View, and populate it when geocoding succeeds. Then 
in panel.js:

  this.geolocationListener_ = google.maps.event.addListener(sl, 'load', function() {
      updateList;
      if (that.directionsFrom_ == null && that.view.location != null) {
          that.directionsFrom_ = that.view.location;
          $('input', that.locationSearch_).val(that.view.location.lat() + ', ' + that.view.location.lng())
      }
  });

Original issue reported on code.google.com by chris.se...@gmail.com on 9 Apr 2013 at 6:59

GoogleCodeExporter commented 9 years ago
Hi, I'm trying to reuse your code here but keep getting an error. "sl" is 
undefined. What is the sl for? thanks!

Original comment by JasonETa...@gmail.com on 9 Sep 2013 at 1:41