On Aug 17, 12:01 am, hobbes3 <[email protected]> wrote:
> Currently I have an array called localMarker that stores both the
> marker and the "respective" information window.
>
> So localMarker looks something like this:
>
> localMarker[0] = {marker object, information window object}
> localMarker[1] = {marker object, information window object}
> ...
>
> Anyways I use the term "respective" because the marker and the
> information windows are linked in a way that the information window
> shows the coordinates and the formatted address of the marker.
> Currently my code properly displays the correct text in the
> information window.
>
> One last thing I have in the information window is an <a> link with an
> onClick = "deleteMarker". So basically when you click the link I want
> it to delete both the marker and the respective information window
> from the map.
>
> So here is the question: how do I pass the object of the information
> window and the respective marker from the information window text?
>
> (I know that I could alternatively assign the deleteMarker to
> something else like clicking the marker, but I already have a function
> for clicking the marker: it open/closes the information window)
>
> Also sorry I can't post links, I'm under a corporate firewall and I
> can't simply transfer the file to an online host since the site
> requires a SQL database as well. I can post a copy of the JS script.

Bummer...

>
> Here are some lines to notice:
> Line 27: the piece of string that has the "Delete this marker" for the
> information window content
> Line 503: listener for clicking the map
> Line 531: creating a single marker and its respective information
> window
> Line 622: "marking up" the plain text for the information window (I
> keep the plain text for AJAX)

The groups interface mangles code...

http://groups.google.com/group/Google-Maps-API/web/why-including-a-link-is-critical


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