Ok, I think I got it. So I changed this:

map.addOverlay(createMarker(center,
document.getElementById('addressInput').value));

to this:

map.addOverlay(createCenterMarker(center,
document.getElementById('addressInput').value, "", "", ""));

AND added the new function:

function createCenterMarker (point, name) {
        var marker = new GMarker(point);
        var html = '<p class="Your Address:"> <br />' + name;
        GEvent.addListener(marker, 'click', function() {
                marker.openInfoWindowHtml(html);
            });
        
            return marker;
    }

Seems to work now:

http://www.midwivesofmaine.org/storeLocator/locator.html

Thanks for your patience! =)

--Jason

On Sat, Feb 6, 2010 at 9:07 AM, Andrew Leach
<[email protected]> wrote:
> On Feb 6, 1:46 pm, Jason Andreoni <[email protected]> wrote:
>> This is from the current source code of that live page: (clear cache?)
>
> Nope: it wasn't loaded from cache. Anyway: the current version has
> your function definition for createCenterMarker, but you're not using
> it. When you create a marker for the "center" location, you are still
> calling createMarker. (That's one of the lines I suggested earlier:
> you need to change it to use the right function)
>
> Andrew
>
> --
> 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.
>
>

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