ok you were right, after deleting the marked i forgot to delete the closing
bracket of the if.
now the map does initialize but i still can place my marker only on the land
what am i doing wrong ?

the side note are already gone, i am working on a local version, but thanks
anyhow


On Mon, May 23, 2011 at 5:07 PM, Gregory Short <[email protected]> wrote:

> Then you probably "did it wrong." :)
>
> You removed all of this?
>
> >       if (!response || response.Status.code != 200)
>> >       {
>> >        alert("point doesn't exist on land", "Earth-Points");
>> >       }
>> >       else
>> >       {
>>
>
> As well as the closing } on the else statement? If that's what you did and
> you're getting errors, check the error console in your browser. If you're
> still stuck, give us a link to an example that isn't working. That is, show
> us your attempt at making it work. :)
>
> On a side note: check the error console no matter what. You're trying to
> load a couple resources that are generating 404's, namely
> ..earthpoints/dragzoom_packed.js, and /images/button-bg.gif
>
> -G
>
> On May 23, 2011, at 6:56 PM, a jay wrote:
>
> 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.
>
>
>  --
> 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.

Reply via email to