On Feb 12, 2:34 am, Jonathan <[email protected]> wrote: > I'm aware of GDirections and I suppose I could have two text input > fields with two geocoding functions (or somehow accomplish this with > one function?) but I'm not sure how to make the map zoom to include > both points.
First off, I think you're posting in the wrong group. GDirections and KML support are in v2 of the JavaScript Maps API; this discussion group is for v3. The v2 group can be found at http://groups.google.com/group/Google-Maps-API But regardless, you're on the right track here, you basically want to geocode both addresses (whether you do it in one function or two depends on how you architect your page interactions). That'll give you 2 GLatLng objects; to get the correct zoom level to show them both, you'll add them both to a GLatLngBounds and pass that to GMap2.getBoundsZoomLevel(). Hopefully that's enough to get you started. If you need more help, please follow up in the v2 group - thanks! String -- 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.
