Looking into this I was surprised to find Streetview imagery in that location, but it is there. Looking through your code and doing some testing I found two issues:
- You are setting the map type to streetside before setting the location of the map. This causes the map to try and switch into streetview with the current map view which may not have streetview imagery.
- This is the bigger issue, you are passing in the panorama info directly in as a map option, it is actually an option of the
streetsideOptions
within the map options.
Here is a quick fix for the onSuccessOfStreetViewMap
function:
function onSuccessOfStreetViewMap(panoramaInfo) {
map.setOptions({ streetsideOptions: { panoramaInfo: panoramaInfo}, zoom: 18 });
map.setMapType(Microsoft.Maps.MapTypeId.streetside);
}