Directions: why doesn't this work?

86 views
Skip to first unread message

Gerry Orkin

unread,
Jan 18, 2012, 7:32:12 PM1/18/12
to google-map...@googlegroups.com
I'm new to all this. I want to display a hard-coded directions page (example at http://whothru.com/direction.html) in an iOS web view. It's adapted from the API Directions example at http://code.google.com/apis/maps/documentation/javascript/examples/directions-travel-modes.html, with the pop-up menu stuff stripped out. But nothing displays when I load it, either in iOS or in a desktop browser.

Any ideas why that is? Any help much appreciated!

Gerry

Rossko

unread,
Jan 19, 2012, 5:16:23 AM1/19/12
to Google Maps JavaScript API v3
> (example athttp://whothru.com/direction.html)

Use 'view source' in your desktop browser.
Note the complete absence of any <body> section - there is no content
to display, nor anything to start your javascript initialize()
function.

Eshwar

unread,
Jan 19, 2012, 5:25:02 AM1/19/12
to google-map...@googlegroups.com
Hi,

        Am trying my hands on V3 with Fusion Tables.Would be very thankful if some one can clarify my questions below

        1) How do i Query Fusion Table (from some Geo-tagged data) by applying a KML filter (KML will have a geographic location), so that i get data         
        points (results) that exist in the KML zone? 

        2) How do i color code different points on Google Map with Different colours to highlight the division between the data points?

        3) Whats the right tool to make Custom KML files?

Regards,
Eshwar


--
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 google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.




--

Regards,
Eshwar 
+91-95350-86592

This message (including any attachments) is intended only for the use of the individual or entity to which it is addressed and may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, you are hereby notified that any use, dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, notify us immediately by telephone and (i) destroy this message if a facsimile or (ii) delete this message immediately if this is an electronic communication. Thank you.

Barry Hunter

unread,
Jan 19, 2012, 8:33:34 AM1/19/12
to google-map...@googlegroups.com
Please start your own thread, with your question. Its not related to
the original question of this thread.

On Thu, Jan 19, 2012 at 10:25 AM, Eshwar <eshwar...@gmail.com> wrote:
<SNIP>

Gerry Orkin

unread,
Jan 19, 2012, 8:20:33 PM1/19/12
to google-map...@googlegroups.com
Ok, thanks. I've gone back to using the API example file that includes a <body> section etc. It works fine on my server (and from my iOS app). However it uses a popup menu for the user to select the TravelMode - I want to hard code the mode instead. Looking at the example file I can't see where I hard code that - what do I need to strip out and what do I need to put in there :) Any ideas?

Thanks again!

Gerry

Dave

unread,
Jan 20, 2012, 12:55:25 PM1/20/12
to google-map...@googlegroups.com
The line that has:
travelMode: google.maps.DirectionsTravelMode[selectedMode] 

Should be changed to:
travelMode: google.maps.DirectionsTravelMode.DRIVING

And then remove the <select>

Dave 

Gerry Orkin

unread,
Jan 20, 2012, 8:40:14 PM1/20/12
to google-map...@googlegroups.com
Dave thanks - with that and a bit more fiddling I've got it to work. I've left the file at whothru.com/gdirections.html for anyone else interested. 

Thanks again!

-- Sent from my iPhone. 
--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
Reply all
Reply to author
Forward
0 new messages