Select to view content in your preferred language

Google StreetView Issue - Panorama only appears when browser is resized

1316
1
05-19-2014 12:49 PM
by Anonymous User
Not applicable
So I've mostly succeeded implementing the latest example for adding the Google StreetView tool to an Esri JS API application. The address and coordinates return successfully, etc. However the actual street view, or panorama control, only appears in the DIV upon a browser re-size.

Anyone else experienced this?

Esri API v.3.1
Google Maps API v.2

Thanks!

rGibson
0 Kudos
1 Reply
JordanPorter
Deactivated User
So I've mostly succeeded implementing the latest example for adding the Google StreetView tool to an Esri JS API application. The address and coordinates return successfully, etc. However the actual street view, or panorama control, only appears in the DIV upon a browser re-size.

Anyone else experienced this?

Esri API v.3.1
Google Maps API v.2

Thanks!

rGibson


maybe you could try something like this?

var panorama = gMap.getStreetView();
google.maps.event.addListener(panorama, 'visible_changed', function(){
 google.maps.event.trigger(gMap, 'resize');
})
0 Kudos