well compared to what I posted below its a bit more complex...
this.options.directions.service.route(request, function(response,
status) {
if (status == google.maps.DirectionsStatus.OK) {
this.options.directions.renderer.setDirections(response);
}
}.bind(this));
Anyways I got it almost working :)
Few more problems are left.
Prob 1: When i try and get the directions for a second time it does
some fun stuff (http://421entertainment.com/google_map/prob1.png)
Notice the straight line part of it. I have a feeling its partially
caused by my second problem, but i could be wrong :)
Prob 2. Might have noticed the first searches polyline still there in
the image (http://421entertainment.com/google_map/prob1.png).
Im trying to clear it by
"this.options.directions.polyline.setMap(null);" but it dopes not seem
to be working. (line 1352 in the js file)
I havnt done much looking on this one yet so its not that much of a
problem (since I havnt given up, yet...)
http://421entertainment.com/google_map/
On a good note, Ive got my icons showing up
On Jul 30, 10:09 am, "[email protected]" <[email protected]>
wrote:
> On Jul 30, 9:51 am, tkensiski <[email protected]> wrote:
>
> > Yes it helps, was hoping for more of a simpler way. But this works I
> > suppose...
>
> You can simplify it if you want. I thought it was pretty simple.
>
> -- Larry
>
>
>
> > Thanks :)
>
> > On Jul 30, 9:24 am, "[email protected]" <[email protected]>
> > wrote:
>
> > > On Jul 30, 9:07 am, tkensiski <[email protected]> wrote:
>
> > > > Hey,
>
> > > > I know this has been covered but was wondering if there was any update
> > > > on this issue...
>
> > > > Ive found the following, but it breaks the clicking of the directions
> > > > and it setting the point on the map. Which my clients seem to
> > > > like.http://groups.google.com/group/google-maps-js-api-v3/browse_thread/th...
>
> > > Does this help?http://www.geocodezip.com/v3_directions_custom_iconsC.html
>
> > > -- Larry
>
> > > > Basically I've got a custom set of icons and I need to change the
> > > > default icons out. In v2 I did some voodoo magic where I cycled
> > > > through the icons and changed them out one by one. However it doesn't
> > > > work anymore.
>
> > > > Here's what I'm working onhttp://421entertainment.com/google_map/-Hide
> > > > quoted text -
>
> > - Show quoted text -
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.