On Nov 18, 8:32 am, "[email protected]" <[email protected]> wrote:
> Hello folks,
>
> I have an issue with the red location marker not responding properly.  It
> would seem that when you click the map, the 'Get directions' bubble is
> supposed to disappear, however, when you click the red location marker,
> this bubble should reappear. I am rather new to this and did not originate
> the code. I assume there is a get directions method that should be called
> by the Marker method, but I am not sure wich is which.
>
> Here is my 
> link.http://www.destinationoakland.com/parksandtrails/parks/addisonoaks/Pa...
>
> Any insight is much appreciated.

This is your code that opens the infowindow:
var map;
function
initializeMap_ctl00_m_g_786c8c42_3989_4b47_816c_3368a94ca35a() {
  if (GBrowserIsCompatible())
  {
    map = new
GMap2(document.getElementById("map_canvas_ctl00_m_g_786c8c42_3989_4b47_816c_3368a94ca35a"));
    map.setCenter(new GLatLng(42.800, -83.1682), 13);
    map.setUIToDefault();

    var marker = new GMarker(new GLatLng(42.800,-83.1682));

    var html="\x3cb>Address:\x3c/b>\x3cbr>1480 W Romeo Road<br/>
Leonord, MI 48367\x3cbr>\x3ca target='_blank' href='http:\/\/
maps.google.com\/maps?saddr=&daddr=1480+W+Romeo+Road%2c+Leonord%2c+MI
+48367'>Get Directions\x3c/a>";

    map.openInfoWindow(map.getCenter(), html);

    map.addOverlay(marker);
  }
}

You need to add a click listener to the marker to open the infowindow
when it is clicked.
There are several ways to do that, however, since it looks like you
are using some kind of plugin, you probably should figure out how to
convince that to do it for you.

  -- Larry

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