I think it has to do with index.swf file. What does this file do? It seems as if when I replace the index.html file and the index.swf file on a simple flex project or new project things work fine. However, one where I have a complex project that has already been started if I overwrite that index.swf file it won't work at all 😞 Any thoughts on this???
See highlighted missing items in index.html. The html that you provided is not what I provided as part of the download.
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 VGurnee, IL
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); } }
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.