Thanks Pil & Andrew. Problem is the location info (Green Meldrim etc)
is placed there w/ php:
$popup = $listing['title'].'<br />'.$listing
['listing_address1'].'<br />'.$map_city.', '.$map_state.' '.$listing
['listing_zip'].'<br />'.$map_country;
if($listing['latitude'] != '0.0000000000' AND $listing
['longitude'] != '0.0000000000') {
$map->addMarkerByCoords($listing['longitude'], $listing
['latitude'], $listing['title'],$popup);
} else {
if($map->addMarkerByAddress($listing
['listing_address1'],$map_city,$map_state,$map_country,$listing
['listing_zip'],$listing['title'],$popup)) {
This code is directly beneath what I posted above. It calls in the
listing title, street address, city, state, zip & coordinates. I
thought there might be a snip resembling this one used to remove a
maptype:
map.removeMapType(G_PHYSICAL_MAP); But to as you say null the call
for my default marker & then allow inserting mine. The php above made
the html code you were referring to above to change. Sorry for double
posting. I'll ask the guys at phpmydirectory. I've got a hunch there
is a way & it's simple. Just never been there or done that yet.
Thanks, Gene
On Sep 20, 10:04 am, "Pil (Trustworthy from Experience)"
<[email protected]> wrote:
> BTW: This is valuable information
>
> > myLayer = new GLayer("com.google.webcams");
>
> It indicates that the webcams layer is available now. Seems you are
> the first one who knows that.
> Thanks for sharing.
> :-)
>
> On Sep 20, 3:01 pm,streetview99<[email protected]> wrote:
>
>
>
> > I use a directory program & all the map files are encrypted except we
> > do have one way to modify the default Google map on one php page. The
> > first Google map on this page I'm trying to change the marker icon to
> > custom icon >http://www.easysavannah.com/green-meldrim-house-museum-34.html
>
> > The small snippet that allows me to make changes is here (I've already
> > made some additions to my map):
>
> > $map->addScript('
> > map.addControl(new GOverviewMapControl());
> > myLayer = new GLayer("org.wikipedia.en");
> > map.addOverlay(myLayer);
> > myLayer = new GLayer("com.youtube.all");
> > map.addOverlay(myLayer);
> > myLayer = new GLayer("com.google.webcams");
> > map.addOverlay(myLayer);
> > map.enableScrollWheelZoom();
> > map.enableDoubleClickZoom();
> > map.addMapType(G_SATELLITE_3D_MAP);
> > var pano_layer = new PanoramioLayer(map);
> > pano_layer.enable();
> > ');
>
> > I have this code that I've added but it doesn't override the default
> > javascript:
>
> > var newIcon = new GIcon();
> > newIcon.image = "http://maps.google.com/mapfiles/ms/micons/bar.png";
> > newIcon.shadow = "http://maps.google.com/mapfiles/ms/micons/
> > bar.shadow.png";
> > newIcon.iconSize = new GSize(20, 34);
> > newIcon.shadowSize = new GSize(37, 34);
> > newIcon.iconAnchor = new GPoint(9, 34);
> > newIcon.infoWindowAnchor = new GPoint(9, 2);
> > newIcon.infoShadowAnchor = new GPoint(18, 25);
>
> > 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- 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
-~----------~----~----~----~------~----~------~--~---