Select to view content in your preferred language

FrStreetView

3428
23
10-19-2010 08:11 AM
philippschnetzer
Frequent Contributor
Frank Roberts released his FrStreetView widget on the code gallery a few days ago.  It looks and functions great!  I have tried to change the mxml to work with my wkid (2961) but no luck yet.   Can anyone solve this issue...here is the portion of code that needs to be changed:

private function mouseClickHandler(event:MouseEvent):void
   {
   const frmapPoint:MapPoint = map.toMapFromStage(event.stageX, event.stageY);
    var latlong:MapPoint;
    var wkidString:String = frmapPoint.spatialReference.wkid.toString();
  //Alert.show("Spatial Ref for map: " + frmapPoint.spatialReference.wkid.toString());
    if ( wkidString == "102100")
    {
   latlong = WebMercatorUtil.webMercatorToGeographic(frmapPoint) as MapPoint;
     frLat = latlong.y.toFixed(6);
     frLong = latlong.x.toFixed(6);
     displayForm(frLat, frLong);
    }
    else if ( wkidString == "3857")
    {
   latlong = WebMercatorUtil.webMercatorToGeographic(frmapPoint) as MapPoint;
     frLat = latlong.y.toFixed(6);
     frLong = latlong.x.toFixed(6);
     displayForm(frLat, frLong);
    }
    else if ( wkidString == "4326")
    {
     latlong = map.toMapFromStage(event.stageX, event.stageY);
     frLat = latlong.y.toFixed(12);
     frLong = latlong.x.toFixed(12);
     displayForm(frLat, frLong);
    }
    else
    {
     //Alert.show("Non client side projection");
     var outSR:SpatialReference = new SpatialReference(4326);
     geometryService.project([frmapPoint as Geometry], outSR);
    }
    
    var graphic:Graphic = new Graphic(); 
    var mapPoint2:MapPoint = frmapPoint;
    mapPoint2.spatialReference = map.spatialReference;    
    graphic.geometry = mapPoint2;    
    graphicsLayer.clear();    
    graphicsLayer.add(graphic);


wkid=2961 is a NAD83/UTM coordinate system with units in meters.

Thanks!

Here's the link to Franks widget: http://www.arcgis.com/home/item.html?id=dc56d2ab11534d24a5559ea9dc8f5119
Tags (2)
0 Kudos
23 Replies
FrankRoberts
Frequent Contributor
Thanks for figuring that out.  I'll role it into the code when I get a free moment...

Frank
0 Kudos
JoeSimpson
Deactivated User
Hi Frank,

I'm not sure if this is an issue for anyone else, but the Google streetview has recently stopped working with the FrStreetView widget. Do you know if mapchannels changed the url for this service?

Thanks,
Joe
0 Kudos
FrankRoberts
Frequent Contributor
I just tested it from home and it works fine here.  Feel free to test at the following url and let me know if it works from there.

http://gis.cdatribe-nsn.gov/flashmaps/index.html

Frank
0 Kudos
xandermavrides
Emerging Contributor
I started getting an error 2035 when testing (binrelease) but my export  build to porduction works fine ????
0 Kudos
JoeSimpson
Deactivated User
Frank,

When testing from your flexviewer app I seem to encounter the same problem I'm having here. For the "Street View-Google Map" and "Street View Only" options, the street-view imagery is not being displayed. The Google streets appear with a grayed-out background where the imagery should be (see attached image).


Thanks,
Joe
0 Kudos
glennhazelton
Deactivated User
i am getting the same result.
the dual viewer works fine however.
i am wondering the proxy server might be impacting this.

Frank,

When testing from your flexviewer app I seem to encounter the same problem I'm having here. For the "Street View-Google Map" and "Street View Only" options, the street-view imagery is not being displayed. The Google streets appear with a grayed-out background where the imagery should be (see attached image).


Thanks,
Joe
0 Kudos
JoeSimpson
Deactivated User
The Streetview is working once again for "Street View Only" and "Street View-Google Map, both on our internal applications and with Frank's sample app.

Thanks,
-Joe
0 Kudos
ChayaBalsiger
Frequent Contributor
Hi,
I downloaded the FrStreetView Widget, compiled version 2.3, followed the instructions, but I cannot get the widget to work.  I click on the widget but nothing happens.

I added this to the config.xml file:
<widget label="Street View" left="60" top="90"
icon="assets/images/i_gsv.png"
config="widgets/FrStreetView/FrStreetView.xml"
url="widgets/FrStreetView/FrStreetView.swf"/>

and added params.wmode= "direct" & param name="wmode" value="direct" to the index.html file:
var params = {};
            params.wmode= "direct";
            params.quality = "high";
            params.bgcolor = "#ffffff";
            params.allowscriptaccess = "sameDomain";
            params.allowfullscreen = "true";

param name="movie" value="index.swf" />
                <param name="quality" value="high" />
                <param name="bgcolor" value="#ffffff" />
                <param name="allowScriptAccess" value="sameDomain" />
                <param name="allowFullScreen" value="true" />
                <param name="wmode" value="direct" />

Any suggestions?

Thanks,
Chaya
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
All,

   Here is a new Google Street View Widget:

http://forums.arcgis.com/threads/86574-Google%C2%AE-Street-View-Widget
0 Kudos
PatrickMcGarry
Occasional Contributor
Has anyone managed to get this widget working in 3.3? I have tried but can't get it to compile successfully.
0 Kudos