Works perfectly! thank you for your help & patience

James

On Jan 11, 12:40 pm, Andrew Leach <[email protected]>
wrote:
> On Jan 11, 11:46 am, James <[email protected]> wrote:
>
> >http://edgwarelocalcars.co.uk/quote3test.html
> > Managed to actually get a map to load whilst having a functioning
> > form, but then after trying to add some directions code it all went
> > wrong!
>
> You already have the directions code in quote3.html; you just need to
> add a map.
>
> Add a map_canvas div to the body as you did in quote3test.html. Add a
> new global variable called map into the list of global variables at
> the top of the script.
>
> Alter quote3.html to change line 15
>   gDir = new GDirections();
> into
>   map = new GMap2(document.getElementById("map_canvas"));
>   map.setCenter(new GLatLng(51.5,-0.2),12); // change these if
> necessary
>   gDir = new GDirections(map);
>
> which will give you a map into which GDirections can put the route.
-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-api?hl=en.


Reply via email to