Select to view content in your preferred language

Google Street View Widget for the Flexviewer

8280
82
01-11-2011 02:25 AM
andrewj_ca
Frequent Contributor
I wanted to get some feedback on my street view widget for the Flexviewer 2.*, Check it out here:

http://www.arcgis.com/home/item.html?id=f069d8a3aa304e29a432b48e5f64ca74
Tags (2)
0 Kudos
82 Replies
MarcLEMAIRE
Occasional Contributor
See highlighted missing items in index.html.  The html that you provided is not what I provided as part of the download.


Hello

I have the same problems. When i compile, the widget works, i can see the StreetView Window but it doesn't work with the compiled code. thank you for your help

Marc
0 Kudos
MichelleCahal1
Occasional Contributor
Hi, I'm just checking to see if there's been a 3.1 update to this widget?  Thanks!
0 Kudos
EricVenden
Frequent Contributor
Michelle,
I have not seen an update on this widget for a good deal of time on the ESRI site...(the widget we have been updating as the FV releases change "was" titled:  FrStreetView)

I have attached the compiled widget that works for 3.1 viewer (at least for us).  Let me know if you need the uncompiled code.
Hope this helps.
Eric V
Gurnee, IL
0 Kudos
by Anonymous User
Not applicable
Michelle,
I have not seen an update on this widget for a good deal of time on the ESRI site...(the widget we have been updating as the FV releases change "was" titled:  FrStreetView)

I have attached the compiled widget that works for 3.1 viewer (at least for us).  Let me know if you need the uncompiled code.
Hope this helps.
Eric V
Gurnee, IL


This works for us as well!  I have been hoping it would get updated for 3.1.  Thank you for posting this.

Is there any information on how to configure the widget?  I would like for the widget to default to Street View Only, when we had it installed for flexviewer 3.0, we were able to add the line <defaultContent>3</defaultContent> to the configuration file, to accomplish this.  However, this does not appear to work for this iteration.

Again, thanks for this.
0 Kudos
LucBourbousson
Deactivated User
The widget works great on Viewer for flex 3.2! Unfortunately very few customizations are possible, so we'd like to get the source code if it's possible. Thank you.

Michelle,
I have not seen an update on this widget for a good deal of time on the ESRI site...(the widget we have been updating as the FV releases change "was" titled:  FrStreetView)

I have attached the compiled widget that works for 3.1 viewer (at least for us).  Let me know if you need the uncompiled code.
Hope this helps.
Eric V
Gurnee, IL
0 Kudos
TimDine
Frequent Contributor
I've used the uncompiled widget and put it into the 3.3 viewer.  Looks great.  I've found with some research though that in the v3 api of streetview they've removed the full screen button from the top right of the panorama.  Now I'm stuck with only the streetviewheight for what I can see.  Has anyone tried any work arounds or options for this?  I'm going to try a few things with it tomorrow to see what might be possible.
0 Kudos
LucBourbousson
Deactivated User
Hi Tim , do you know where to find the uncompiled version?
Thanks
0 Kudos
TimDine
Frequent Contributor
0 Kudos
TimDine
Frequent Contributor
I've gotten around the V3 google api not having a maximize button. 

I've used information from http://www.drcoen.com/2010/12/html-divs-layered-onto-google-streetview-chrome-issue/ to create a new div overlayed on top of my map (like their Hello dialog).  The div contains a maximize button which is an image.  Clicking on the image uses onclick to call the maximizeStreetView function which is a new function that changes the dimensions of the ArcGIS map and the streetview panorama. 

The other piece of key information I needed was the function to call once the panorama div is resized to refresh the panorama so it fills the whole div.  The function is google.maps.event.trigger(panorama, 'resize');

I need to build another button which will do the same thing, except call the restore function to get out of fullscreen.  The concept should be identical though.


function initialize_container()
{
 //alert('Container Initialized');
 // create container
 var obj= getSWF("agsview3");
 obj.height = getPageHeight() - streetviewHeight;
 
 var svh = streetviewHeight + "px";
 var divTag = document.createElement("div");                
 divTag.id = "pano";                
 divTag.style.width = "100%";
 divTag.style.height = svh;
 divTag.style.position = "absolute";
 divTag.style.bottom = "0px";
 divTag.style.right = "0px";
 divTag.style.left = "0px";
 divTag.innerHTML = '<div style="position: absolute; top: 20px; right: 20px; width: 100px; height: 36px; text-align: center; color: #000; z-index: 2; line-height: 36px;"><img width="20px" height="20px" src="assets/images/maximize-button.png" onclick="maximizeStreetView();" /></div>';
 document.body.appendChild(divTag);
 addEvent(window, "resize", windowResized ); 
}


function maximizeStreetView()
{
 try
 {
  var theDiv = document.getElementById("pano");
  if(theDiv!=null)
  {
   var obj= getSWF("agsview3");
   obj.height = "1";
   
   theDiv.style.display = "block";
   theDiv.style.height = "100%";
   google.maps.event.trigger(panorama, 'resize');
  } 
 }catch(err){
  alert(err);
 }

}
0 Kudos
deleted-user-yA_w_FC9FKe5
Deactivated User
Can someone upload the 3.3 compiled version of this widget please?  I know one of you masterminds have already completed this.  It would be very helpful and much appreciated by more than just me I am sure.
0 Kudos