Select to view content in your preferred language

Google® Street View Widget

47058
153
06-12-2013 08:02 PM
RobertScheitlin__GISP
MVP Emeritus

All,

   Here is the next installment to my long list of widgets. I never really wanted to add to the list of several Street View Widgets, but as it's predecessors have lacked updating when new version of Flex Viewer are released and me wanting to add more features, I finally decided to do one myself.

The Google Street View Widget version 3.3 for Flex Viewer 3.3 allows you to view Google Street View Panoramas in a popup window. The widget use Google Maps API Version 3 and has almost all the API options for the Street View Panorama that are available in the API configurable in the widgets xml. A lot of attention has gone into the UI (User Inferface) and UX (User Experience) of this widget and a lot of cross browser testing has been done. Tested on Safari for windows 5.1.7, Internet Explorer 9, Opera 12.15, FireFox 21.0, and Chrome 27.0.1453.110 m.

Configurable features include:

    * hidestreetviewvwidowwhenminimized - This is a true or false value and determines if the graphic on the map and the Google Street View window are hidden when the widget is minimized.
    * width - The width of the popup widow that is opened.
    * height - The height of the popup widow that is opened.
    * apikey - The Google Maps API Key that you must obtain to use this widget.
      https://developers.google.com/maps/documentation/javascript/tutorial#api_key
    * addresscontrol - is a true or false value and determines if the Google Street View Address Control is visible.
      It has an attribute of controlposition that defines where in the popup window the control is placed.
    * clicktogo - is a true or false value and determines if the Google Street View will move to the location clicked.
    * disabledoubleclickzoom - is a true or false value and determines if the Google Street View will zoom into the
      location on the panorama where the user double clicks.
    * imagedatecontrol - is a true or false value and determines if the Google Street View will display the date of the
      panorama image was taken along the bottom of the window with the copyright info.
    * linkscontrol - is a true or false value and determines if the Google Street View will display the movement arrows
      and street names on the panorama for navigation purposes.
    * pancontrol - is a true or false value and determines if the Google Street View pan Control is visible.
      It has an attribute of controlposition that defines where in the popup window the control is placed.
    * zoomcontrol - is a true or false value and determines if the Google Street View zoom Control is visible.
      It has an attribute of controlposition that defines where in the popup window the control is placed and a
      controlstyle attribute that determines the size of the control.
   
    * All text that the widget uses is configurable in the xml to allow for internationalization of the widget.

So here it is: http://www.arcgis.com/home/item.html?id=b4259b1cf73e4fa3b04e7bdf75fee29b

Tags (2)
0 Kudos
153 Replies
RobertScheitlin__GISP
MVP Emeritus

Janie,

   Firefox changed something internally in the way popups works and the widget code for detecting popup blockers is not working properly. The VERY bad news is this widget has been found by Google Maps team to be in violation with their TOS and I have take the widget out of production both for Flex and WAB.

JoshWhite
Regular Contributor III

Robert,

That seems random, how after all these years does your widget suddenly violate their TOS?

Josh White, AICP
Principal Planner

City of Arkansas City
0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Josh,

  It does not suddenly, it always has and they just caught it.

0 Kudos
BarnabyRockwell
Regular Contributor

The widget works for me in Firefox 49.0.1 if I enable popups.  It also works in all other browsers.

0 Kudos
JanieGoddard
Occasional Contributor III

Robert, Any chance of getting Firefox to put that part of the code back so our flex viewers continue to work for now anyway?

Janie

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Janie,

 Not likely at all.

0 Kudos
JanieGoddard
Occasional Contributor III

Robert,

  So does this violate Google's TOS? Google StreetView Task | ArcGIS Blog 

Janie

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Yep

0 Kudos
JoshWhite
Regular Contributor III

So, are you saying we should now discontinue use completely?  I just find it odd that this widget has been out there in some form, both in Flex and in WAB, for several years and now we suddenly (yes suddenly) cannot use it as it is a violation of the TOS?  I have a Google API key and this has proper attribution.  Its also not for commercial use.  

Josh White, AICP
Principal Planner

City of Arkansas City
0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Josh,


  The use of an API key and attribution is not enough. The violation is use of SV in conjunction with a non Google map. There is a long thread about this in the WAB space.


All I can say is the widget is not compliant and you should discontinue use.

0 Kudos