On Sep 2, 10:48 am, "unm...@sadakmap" <[email protected]> wrote:
> We are running into this as well - I find that not specifying an icon
> helps fix this - not a great workaround but enough to continue with
> our development.
> i.e. try changing
> new GMarker(parkingPointClosest,{title:mapinfo[0],icon:icons
> ["Parking"]});
> to
> new GMarker(parkingPointClosest,{title:mapinfo[0]});

I don't see a link to _your_ map.  Is it the same one?

The map that the OP posted the link to seems to be missing properties
of the icons that are required to open an infoWindow on an icon (not
sure why it ever worked):
http://code.google.com/apis/maps/documentation/reference.html#GIcon.infoWindowAnchor

Property Type Description
image  String The foreground image URL of the icon.
shadow  String The shadow image URL of the icon.
iconSize  GSize The pixel size of the foreground image of the icon.
shadowSize  GSize The pixel size of the shadow image.
iconAnchor  GPoint The pixel coordinate relative to the top left
corner of the icon image at which this icon is anchored to the map.

infoWindowAnchor  GPoint The pixel coordinate relative to the top left
corner of the icon image at which the info window is anchored to this
icon.

from Mike Williams' tutorial:
http://econym.org.uk/gmap/custom.htm

Required parameters
They're not actually mandatory. There are certain strange
circumstances in which you might want to omit almost any parameter,
but you should think carefully before omitting any of these
parameters:
iconSize : without it your marker will have zero size and be
invisible
iconAnchor : without it your marker won't appear in the correct place
infoWindowAnchor : without it marker.openInfoWindow() will fail
transparent : without it your marker won't be clickable in MSIE if
there's an info window shadow nearby
imageMap : without it your marker won't be clickable in Firefox if
there's an info window shadow nearby

   -- Larry


>
> -Unmesh.
>
> On Aug 25, 9:07 pm, Ken <[email protected]> wrote:
>
>
>
> > Hi all,
>
> > Within the last week or so, openInfoWindowHtml stopped working for us,
> > and despite some significant time trying to fix it, it still does not
> > work.  Advice is sought!
>
> > Here's the error message, which appears to be in the Google JavaScript
> > file:
> > Error: c is undefined
> > Source 
> > File:http://maps.gstatic.com/intl/en_us/mapfiles/164e/maps2.api/main.js
> > Line: 179
>
> > Our site:http://www.cornell.edu/maps/interactive.cfm
>
> > How to see the problem: Check the option for virtual tour nodes, click
> > on one of the camera icons (try one on Beebe Lake to avoid clicking a
> > building).
>
> > Here's our JavaScript:http://www.cornell.edu/maps/cu-maps.js
>
> > We have tried specifying version 2, 2.x, 2.s, and 3 but the results
> > remain the same, although the error messages differ slightly (the
> > variable name changes).
>
> > The problem code line is this:
> > GEvent.addListener(markersTour[ID], "click", function() {markersTour
> > [ID].openInfoWindowHtml(btext);});
>
> > If we change the function to a simple alert it works. If we change the
> > btext variable to contain simple HTML, it still breaks. If we change
> > the event from click to mouseover it still breaks.
>
> > This used to work just as written. Any ideas on why working code
> > suddenly broke, or suggestions to work around the problem?
>
> > -Ken- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to