I'm not the first. :) I found it rummaging through the code of a normal Google map at their site. I didn't know it wasn't known or I'd posted it the first time I saw it. I just tested it & it worked!
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 -~----------~----~----~----~------~----~------~--~---
