Re: Google Map Store Locator: How do I have the Users address appear a green arrow/marker upon searching?
This is from the current source code of that live page: (clear cache?)
function createMarker(point, name, address, phone, moreinfo) {
var marker = new GMarker(point);
var html = '<b>' + name + '<br/>' + address + '</b> <br/>' +
phone + '<br />' + moreinfo;
GEvent.addListener(marker, 'click', function() {
marker.openInfoWindowHtml(html);
});
return marker;
}
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;
}
On Sat, Feb 6, 2010 at 8:02 AM, Andrew Leach
<andrew.leach.1@googlemail.com> wrote:
> On Feb 6, 12:39 pm, Jason Andreoni <jandre...@gmail.com> wrote:
>> Here's the updated page from last night.
>>
>> http://www.midwivesofmaine.org/storeLocator/locator.html
>
> It's not changed from what you posted before. There's no
> createCenterMarker function.
>
> --
> You received this message because you are subscribed to the Google Groups "Google Maps API" group.
> To post to this group, send email to google-maps-api@googlegroups.com.
> To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
> 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 google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home