You will generally get more success if you provide a link to an actual map.
Not code.


I also wonder if you need to read up on what a geocoder is. A geocoder
turns a textual address into a coordinate. A reverse geocoder takes a
coordinate and turns it into a probable address.

The gmaps geocoder can do both. Not sure what using the geocoder has to do
with "user's location."


On Fri, Feb 3, 2012 at 4:27 PM, Sebastian <[email protected]> wrote:

> Could anyone take a look at this please?
>
> On Jan 29, 5:05 pm, Sebastian <[email protected]> wrote:
> > I'mhavingaconflict,betweenDirections&userGeoCodeDetection.
> >
> > If I do this:
> >
> > var MapCenter = new google.maps.LatLng(-33.8665433, 151.1956316);
> >
> > function initialize(lat,lng) {
> >
> > geocoder = new google.maps.Geocoder();
> > // var MapCenter = new google.maps.LatLng(lat,lng);
> > geocodeThis(MapCenter);
> >
> > thedirectionswork fine, but the GeoCoder doesn't get theuser's
> > location.
> >
> > And if I do it like this:
> >
> > // var MapCenter = new google.maps.LatLng(-33.8665433, 151.1956316);
> >
> > function initialize(lat,lng) {
> >
> > geocoder = new google.maps.Geocoder();
> > var MapCenter = new google.maps.LatLng(lat,lng);
> > geocodeThis(MapCenter);
> >
> > the GeoCoder gets theuserlocation, but thedirectionsdon't givedirections.
> >
> > Here is my full code:http://pastebin.com/HxTCYJSU
>
> --
> 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.
>
>

-- 
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.

Reply via email to