On Aug 1, 5:55 am, auldsalt <[email protected]> wrote:
> Hi,
>
> I am trying to create image icons that act like the standard google
> icons with info windows. I am able to make the custom icons appear but
> I am having difficulty connecting the info windows. The code works
> with standard google icons so I am led to believe that there is some
> error related to how the custom icons are referenced. Any and all
> suggestions would be greatly appreciated.
>
> https://s3.amazonaws.com/MassCEC/maptest.html

      var point = new GLatLng(42.304372,-70.922143);

// this line creates a marker with an infowindow, but doesn't display
it
      var marker = createTabbedMarker(point, ["Tab 1 contents", "Tab 2
contents","Tab 3 contents","Tab 4 contents"],
["Overview","Scale","Process","Experience"]);

// this line creates another marker with your custom icon and adds it
to the map, but it
// doesn't have an infowindow.
      map.addOverlay(new GMarker(point, markerOptions));

You need to change the createTabbedMarker function to use your custom
marker, then add the marker it returns to the map with addOverlay

  -- Larry

>
> Thanks,
> Tyler

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