i have done that but when i do that my map doesn't initialize. and nothing shows.
On Mon, May 23, 2011 at 3:38 PM, Gregory Short <[email protected]> wrote: > Remove the portion that checks for the non-200 status code, and just use > the else { } portion instead. > > Be aware, though, that then you're not checking for the non-200 status, and > also be aware that non-200 never meant that the point doesn't exist on land > in the first place. It just means that "something went wrong in the > process," since it's not any more specific than "Is it not OK." > > -G > > On May 23, 2011, at 5:30 PM, a jay wrote: > > > Hi guys, i have a simple application that generates Lat and Long from the > point the marker is placed on > > application can be seen here: > > www.earth-points.com/oldsite/index.html > > > > trying to place the marker over the sea results in an error "point > doesn't exist on land" > > i would like to change that and enable the user to select a point located > at sea > > > > i am using a SHowAddress function, and i know that's where my issue is > with, but i need some help in resolving it. > > > > function showAddress(response) > > { > > if (!response || response.Status.code != 200) > > { > > alert("point doesn't exist on land", "Earth-Points"); > > } > > else > > { > > var place = response.Placemark[0]; > > var point = new > GLatLng(place.Point.coordinates[1],place.Point.coordinates[0]); > > var marker = new GMarker(point ,{draggable: true}); > > > > > > -- > > You received this message because you are subscribed to the Google Groups > "Google Maps API V2" 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. > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps API V2" 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. > > -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
