On Jan 4, 1:05 pm, "[email protected]" <[email protected]>
wrote:
> On Jan 4, 12:02 pm, mooney <[email protected]>
> wrote:
>
> > thanks for the help Larry! gmarkers was something i was working on but
> > is now removed.
>
> > As you can see from my updated code I'm only trying to add a little
> > html to show the latlng data in the info window. i've tried using the
> > GMap2 script i as you requested but i just can't get the window to
> > open. is it because i'm not writing my setInfoWindow function
> > correctly?
>
> Do you know how to see your javascript errors?
>
> IE tells me:
> Line: 106
> Error: Expected '}'
> this line:
> {"photo_id": 488, "photo_title": "Lagos de Montebello, M鸩co",
> "photo_url": "http://www.panoramio.com/photo/488";, "photo_file_url":
> "http://mw2.google.com/mw-panoramio/photos/medium/488.jpg";,
> "longitude": -91.677904, "latitude": 16.111297, "width": 500,
> "height": 345, "upload_date": "31 August 2005", "owner_id": 7,
> "owner_name": "Eduardo Manch󮢬 "owner_url": "http://www.panoramio.com/
> user/7"}

This is a character encoding problem in your json data.  You need to
set the correct char set in the header (or change the character
encoding for the page).

  -- Larry

>
> Has a problem with the owner_name (no close "), which explains why
> data is undefined (the next error).
>
> Line: 22
> Error: 'data' is undefined
>
>   -- Larry
>
>
>
> > i tried searching other sites and found this link but i
> > don't see a GMap2 script:
>
> >http://www.ignitespatial.com/NationalParks.html
>
> > unfortunately i only have experience using the info window doing a
> > map.addOverlay.
>
> > -paul
>
> > On Jan 4, 1:15 am, "[email protected]" <[email protected]>
> > wrote:
>
> > > On Jan 3, 11:12 pm, "[email protected]" <[email protected]>
> > > wrote:
>
> > > > On Jan 3, 8:41 pm, mooney <[email protected]> wrote:
> > > > > i want to add an infowindow to individual markers. i've tried doing:
>
> > > > > GEvent.addListener(marker, 'click', function() {
> > > > >         marker.openInfoWindowHtml(html);
> > > > >       });
>
> > > > > this works with map.addOverlay but does not seem to work with
> > > > > clusterer.js and google map api.
>
> > > > > here is my test link:
>
> > > > >http://www.bigeasylifeinsurance.com/m/prospects.php
>
> > > > > i'm using the example from
>
> > > > >http://google-maps-utility-library-v3.googlecode.com/svn/trunk/marker...
>
> > > > > any help would be great!
>
> > > > what is GMarker.initialize()?
> > > > I don;t see it listed in the 
> > > > documentation:http://code.google.com/intl/it-IT/apis/maps/documentation/javascript/...
>
> > > For that matter, what is gmarkers?  The error I get in Chrome if I try
> > > to run myclick is:
> > > Uncaught ReferenceError: gmarkers is not defined
>
> > >   -- Larry
>
> > > > function myclick(i) {
> > > >         gmarkers[i].initialize(map);
> > > >         GEvent.trigger(gmarkers[i], "click");
> > > >           }
>
> > > > The issue with using a click listener on a marker that is being
> > > > managed by the clusterer is that it may not be added to the map yet.
> > > > If it isn't added to the map (visible), it is missing pieces needed to
> > > > open an infowindow on it.
>
> > > > The easiest solution is to use GMap2.openInfoWindowHtml rather than
> > > > GMarker.openInfoWIndowHtml.
> > > > (this has come up many times before, I would think a search would give
> > > > you some examples...)
>
> > > >   -- Larry- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

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