The link color is an individual property of each link. If you want to change the link color of the StretView links, you need to iterate through the links and change the roadColor and roadOpacity values for each link. use the links_changed event on the panorama to know when the links have been set by StreetView.
On Sat, Sep 4, 2010 at 2:56 AM, AdAve <[email protected]> wrote: > Hi, > I am looking at the reference > > http://code.google.com/apis/maps/documentation/javascript/reference.html#StreetViewLink > and it reads in the StreetViewLink object specification that you can > change the > roadColor - string - Color of the link > roadOpacity - number - Opacity of the link > > Does that mean you can change the yellow line within the street view > providing that you have the linksControl: true, in the code? > > Below is the Fenway Park example where they have links control turned > off > I changed it back to true and have been playing around with it, but I > can not > seem to figure out how to change the roadcolor and roadOpacity > help me, help me, help me, oh (to the tune of the Beatles Help!) > Thanks > > > <!DOCTYPE html> > <html> > <head> > <meta http-equiv="content-type" content="text/html; charset=utf-8"/> > <title>Google Maps JavaScript API Example: Street View Controls</ > title> > <link href="http://code.google.com/apis/maps/documentation/javascript/ > examples/standard.css" rel="stylesheet" type="text/css" /> > <script src="http://maps.google.com/maps/api/js?sensor=false" > type="text/javascript"></script> > <script type="text/javascript"> > function initialize() { > var fenway = new google.maps.LatLng(42.345573,-71.098326); > > // Note: constructed panorama objects have visible: true > // set by default. > var panoOptions = { > position: fenway, > addressControlOptions: { > position: google.maps.ControlPosition.BOTTOM, > style: { > "fontWeight": "bold", > "backgroundColor": "#191970", > "color": "#A9203E" > } > }, > linksControl: true, > navigationControlOptions: { > style: google.maps.NavigationControlStyle.SMALL > }, > enableCloseButton: false > }; > > var panorama = new google.maps.StreetViewPanorama( > document.getElementById("pano"), panoOptions); > } > </script> > </head> > <body onload="initialize()"> > <div id="pano" style="width: 400px; height: 300px"></div> > </body> > </html> > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps JavaScript API v3" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-maps-js-api-v3%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-js-api-v3?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
