Hi everyone, I'm trying to place a Marker only inside a custom
Panorama and not on a Map. I haven't find a solution that will work...
Should I treat the panorama as a substitute for a Map object?
My code:
var panorama = new google.maps.StreetViewPanorama(
document.getElementById('pano_canvas'),
{panoProvider: getCustomPanorama}
);
var Marker = new google.maps.Marker({
position: new google.maps.LatLng(47.397555,8.547701),
map: panorama,
});
panorama.setPano('p1');
function getCustomPanorama(pano,zoom,tileX,tileY) {
switch(pano) {
case 'p1':
return {
location: {
pano: 'p1',
latLng: new google.maps.LatLng(47.397535,8.547701),
},
copyright: 'Imagery \xA9 2010 Luca and Aliz.'
,
links: [{
'heading': 80,
'pano': 'p2',
'roadColor': 'yellow',
'roadOpacity': 0.8
}
],
tiles: {
tileSize: new google.maps.Size(512, 256),
worldSize: new google.maps.Size(6144, 3072),
originHeading: 80,
getTileUrl: function(id, zoom, x, y) {
return 'p1/z' + zoom + 'x' + x + 'y' + y + '.png';
}
}
};
break;
....
default:
return null;
}
}
--
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.