On Sep 20, 2:01 pm, streetview99 <[email protected]> wrote:
>
> Is there a line or 2 (or more) that I can add here that will remove
> the default icon & replace it w/ the icon of my choosing? I know I can
> remove map types. Thanks, Gene

Can't help with the PHP. What follows here refers to the HTML that
site visitors can get at. You will need to identify which lines you
need to change in order to create the suggested output:

Change this line
var marker = createMarker(point,"Green-Meldrim House & Museum","<div
id=\"gmapmarker\">Green-Meldrim House & Museum<br \/>14 West Macon
Street<br \/>Savannah, Georgia 31401<br \/><\/div>", 0,"");
to
var marker = createMarker(point,"Green-Meldrim House & Museum","<div
id=\"gmapmarker\">Green-Meldrim House & Museum<br \/>14 West Macon
Street<br \/>Savannah, Georgia 31401<br \/><\/div>", 0,"",newIcon);

and then change your createMarker function to match:
function createMarker(point, title, html, n, tooltip, myIcon) {
...
var marker = new GMarker(point,{'title': title,'icon': myIcon});

Putting the new parameter at the end of the group will mean that it's
set to null if there's a call to createMarker which doesn't use it.
That should result in the default red marker being used.

This code is untested. Make sure you can revert any changes in case it
doesn't work as expected.

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

Reply via email to