[Google Maps API v3] Re: how to debug errors that are thrown within Maps javascript?

2010-12-13 Thread stu
or directions arrays can help - after a while you get a bit of an idea what some of those obscure variables are, and the errors can point you a little more in the right direction) It *is* a bit of a learning curve initially though. ...stu On Dec 13, 5:53 pm, eartha5 wrote: > Hi folks, > > I

[Google Maps API v3] Re: Passing array from php generated html to JS file

2010-12-08 Thread stu
at is what you wanted. ...stu On Dec 9, 5:25 am, Futsutsuka wrote: > Hi there, > > need you help. > I have a blog . > I have a gmap.js file that creates a google map with markermanager > code inside. And I have a markermanager_packed.js from google > library. > Both a

[Google Maps API v3] Re: Multiple Route requests not working

2010-10-20 Thread stu
Sorry! - I confused myself and probably you by talking about setTimeout in this context - I was thinking about the use of setTimeout to slow the rate of directionsRequests or geocoding so as not to fall foul of the request limits. Rossko is right that you have to wait for the result before you use

[Google Maps API v3] Re: Multiple Route requests not working

2010-10-19 Thread stu
ou think is long enough to ensure a request is fullfilled. But I notice that (here in NZ) network traffic sometimes seems to slow things to over the timeout suggestions I've seen (300 - 500 ms), and I am now using 1 second as my delay, but still occasionally results appear to take longer than

[Google Maps API v3] Re: Multiple Route requests not working

2010-10-18 Thread stu
been returned. A quick look at your code seems to confirm that you are not doing a 'wait for result' before generating the next request. That might be enough to get you on the right track. ...stu On Oct 18, 4:23 pm, Daniel wrote: > Hello there, > > I am currently having a problem w

[Google Maps API v3] Re: using .setRouteIndex to render alternate path

2010-09-21 Thread stu
one of the routes. To get your basic polyline path for route number 2: directionsResult.routes[1].overview_path Does that help? ...stu On Sep 21, 2:52 pm, bmcf wrote: > I should have made it clear that I am not using the .setPanel method > on the DirectionsRenderer, I am trying to handl

[Google Maps API v3] Re: Extending Polyline

2010-09-18 Thread stu
Just read your post in the v2 group and now I see what you were referrring to on Bills example page. My previous reply is not relevant - sorry about that. ...stu On Sep 18, 1:11 am, venom00 wrote: > Hello, is it possible to extend polyline so I can choose the color of > each segment of th

[Google Maps API v3] Re: Extending Polyline

2010-09-18 Thread stu
legs, steps and path points, and drawing the segments as separate polylines with whatever colour you want. If its a polyline of your own, you can get the path points from the MVCArray, and redraw each segment as above. Not sure if thats what you want, but hope it helps. ...stu On Sep 18, 1:11 am

[Google Maps API v3] Ways to move a polygon on the map?

2010-09-10 Thread stu
I've been looking at the differences between Polygons and Circle overlays and how/when to use them. One thing that came up in my experiments is that it is very easy to bind a Circle overlay to a marker and then drag the marker to move the circle, but I can't see a similar way to drag and move a Po

[Google Maps API v3] Re: DirectionsRenderer.setDirections does nothing with a DirectionsResult I've pulled out of my database

2010-08-31 Thread stu
back into a polyline MVCarray and recreate the line exactly as the DirectionsResult described it at the time you did the DirectionsService on it. ...stu On Aug 30, 7:33 pm, Stewart wrote: > Hi All - > > I'm building a webapp where I want to store a stringified > DirectionsResul

[Google Maps API v3] Re: Is it possible to determine if a third point is on a route between two other points? (urban areas)

2010-08-22 Thread stu
now can't remember where. Hope thats useful ...stu On Aug 22, 7:45 pm, Gil wrote: > Hi, > Thanks for your help. > I think I have some lack in understanding the meaning of route. > If I have start point and end point in a curved street, and I'm > calling directions service,

[Google Maps API v3] Error / inconsistency in API v3 Services documentation? (what is step_point?)

2010-08-20 Thread stu
as a side note, shouldn't this code also run through all the legs in the route, since there may be more than one leg? (ie it works in this case because only one leg is returned in the result) ...stu function showSteps(directionResult) { // For each step, place a marker, and add the text to th

[Google Maps API v3] Re: Custom start and end in directions panel

2010-08-17 Thread stu
le to modify fairly easily to do what you want. ...stu On Aug 17, 4:18 am, hzs wrote: > I am creating a map using a custom image overlay map type.  In my map, > entrances to buildings are marked and I'm getting directions from a > specific entrance of a building to another using