Closed GoogleCodeExporter closed 8 years ago
Not a bug. Most likely you forgot to add <div id="panel"></div>. If this isn't
the case, pls attach an html which proves the issue.
Original comment by johansalllarsson
on 29 Aug 2011 at 5:28
Yup that was it. Is it possible to not have a directions panel? In my case I am
just drawing route for a visual indicator.
Original comment by sterling...@gmail.com
on 29 Aug 2011 at 5:31
You should be able to set panel to null, or the parameter to null/{}
$('#map_canvas').gmap('displayDirections', { ... }, null, function(result,
status) {
});
Original comment by johansalllarsson
on 29 Aug 2011 at 5:37
I get
b is null
when i set the panel to null. I tried to update the services code so it would
check for null but it seemed like the panel and route gets generated in one
call vs it being separated out. I'm still new at js so I might be wrong but atm
it errors out.
Original comment by sterling...@gmail.com
on 29 Aug 2011 at 6:12
Changed so that you should be able to go with null now:
http://jquery-ui-map.googlecode.com/svn/trunk/ui/jquery.ui.map.services.js
Original comment by johansalllarsson
on 29 Aug 2011 at 6:34
I tested this and it works great. Thank you.
On a side note, is it possible to have waypoints because I have multiple
"stops" on the map I'm building so I need to display multiple routes on one
map.
Original comment by sterling...@gmail.com
on 30 Aug 2011 at 10:41
Original issue reported on code.google.com by
sterling...@gmail.com
on 29 Aug 2011 at 4:58