Google® Street View Widget

44707
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
DavidCaussin
New Contributor III
Hi Robert

Here is the map element text

<map  wkid="31370" initialextent="145500 164000 155450 180000"  top="90" addarcgisbasemaps="false">


Here is some Public link in this projection

http://www.gis.irisnet.be/arcgis/rest/services/basemap/Ortho2012/MapServer
http://gis.irisnet.be/arcgis/rest/services/basemap/urbisFR/MapServer


I have donloaded the ltest version and the problem is still present.

Thanks

David
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
David,

   So what I have figured out is that your basemap and esri streetmap do not line up using the same WKID. There is a 100 Meter or more shift as you are seeing using the Street View Widget. Here is a test that I performed using esri streetmap and your base map both as dynamic to eliminate the possibility of it being a cache issue. As you zoom into your base map to a particular area and pick out a street or a park feature and note where on the screen/map that is located and switch the base map to esri streetmap you will see the difference. This explains the shift you are seeing in mine and Andrews widget. Sorry to say I don't have any Idea on how to resolve this issue. I am not sure if it is your data that is shifted or esris (I have to lean towards it not being the Worlds leader in GIS Technology though).

    <map attributionvisible="false" esrilogovisible="true" openhandcursorvisible="false" scalebarvisible="true" scalebar="default" zoomslidervisible="false" wraparound180="false" addarcgisbasemaps="false" wkid="31370" top="40" initialextent="145500 164000 155450 180000" >
        <basemaps>
           <layer type="dynamic" label="Basemap" imageformat="jpg" dpi="120" icon="" url="http://gis.irisnet.be/arcgis/rest/services/basemap/urbisFR/MapServer" visible="true" />
           <layer label="Streets" type="dynamic" imageformat="jpg" dpi="120" visible="false" url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" icon="https://www.arcgis.com/sharing/rest/content/items/d8855ee4d3d74413babfb0f41203b168/info/thumbnail/tempstreets.jpg"/>
        </basemaps>
    </map>
0 Kudos
DavidCaussin
New Contributor III
Thank you Robert,

I have tried with others Maps with WKID 31370 (from other sources) and it still the same problem. The esri's layer are shifted and the the others maps are superposed....


ARfffffff....
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
David,

   Hmm... That would mean the Google and ESRI are off then as the Google street view panorama points lines up perfectly with esri basemaps.
0 Kudos
HenryUnderwood
New Contributor II
This is great!

I do have an issue, though.

Chrome 27.0.1453.116 m: pop-ups allowed for all sites under Content Settings

Widget set to closed on open, everything else as-is. When I open the widget, the popup opens normally. The man works great. I can close the popup and if I move the figure to a new location it opens back up when I release the mouse button.

However, if I close or minimize the widget and open it back up I get the popup blocker detected error. To load the widget successfully I have to refresh the page. Any idea what could be going on here?

In IE10, with a popup exception for my site, the widget behaves normally. I can open and close the widget without getting the popup blocker error message.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Henry,

   I see the issue and will start working on it.
0 Kudos
GeorgePapamihalakis
New Contributor III
Works great, thanks for your hard work.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
All,

Don't forget to rate the widget on the download link (by clicking the number of stars you want to give it).

   New version released.

Version 3.3.2 - June 20, 2013
* Fixed bug with Google Chrome when widget was closed and re-opened it would report popup blocked
  even though popups are allowed.
0 Kudos
MichaelVolz
Esteemed Contributor
Robert:

I'm going to the following link, but I do not see your latest update:

http://www.arcgis.com/home/search.html?q=google%20streetview&t=content&start=31

If this is not the correct link, what is?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Michael,

   Click on the link at the bottom of the very first post in this thread.
0 Kudos