On Mar 15, 8:49 pm, JuKKi <[email protected]> wrote:
> huh? it opens perfectly for me and i asked some friends to check it
> out and its working fine for them! wth :S
Don't know why, but now I see the map.
Your problem is your map click handler.
It returns either an overlay or a point, not both. When I click on a
marker (which is an overlay), the value of point is null, and the
routine fails on:
startMarker = new GMarker(point, {icon:redIcon});
you need to add if (point) {} to your routine and only use the point
value if it exists...
FYI - your html is invalid:
http://validator.w3.org/check?uri=http://jukki.comli.com/t.html&charset=(detect+automatically)&doctype=Inline&group=0
The first thing in the the document should be the DOCTYPE declaration,
followed by the <html> tag.
It isn't causing the .lat is undefined problem, but it will cause
others in some browsers.
-- Larry
>
> On Mar 16, 4:41 am, "[email protected]" <[email protected]>
> wrote:
>
> > On Mar 15, 7:18 pm, JuKKi <[email protected]> wrote:
>
> > > Im having some trouble with an exception being thrown when i click on
> > > the markers of my map.
>
> > > maps.gstatic.com/intl/en_ALL/mapfiles/208a/maps2.api/main.js:1221
> > > Uncaught TypeError: Cannot read property 'lat' of undefined
>
> > > Nothing happens in the browser when the exception is thrown, but when
> > > i load the page in JWebBrowser these exceptions are preventing the
> > > page from functioning properly.
>
> > > Any idea on what might be causing it and how to solve it?
> > > the link to my map is:http://jukki.comli.com/t.html
>
> > That link doesn't show me a map, it redirects me to this
> > page:http://www.000webhost.com/admin-review
>
> > Which implies your site is infected with malware.
>
> > -- Larry
--
You received this message because you are subscribed to the Google Groups
"Google Maps API" 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.