Here's a code snippet -
links.push({
'heading': 45,
'description' : 'Breakwater',
'pano' : 'breakwater',
'roadColor' : '#ff0000'
});
and here's the link whee it's used -
http://greg-koppel.site88.net/maps/SB_Harbor.html
On Sep 3, 9:56 am, AdAve <[email protected]> wrote:
> Hi,
> I am looking at the
> referencehttp://code.google.com/apis/maps/documentation/javascript/reference.h...
> 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].
For more options, visit this group at
http://groups.google.com/group/google-maps-js-api-v3?hl=en.