Select to view content in your preferred language

Google Street View widget error in SFV 2.0

3121
14
08-17-2010 11:26 AM
SreeS
by
Emerging Contributor
I was using Google Street View in SFV 1.3 I made some changes to it to use it in SFV 2.0.

But im getting the error shown in the jpg after I activate the GSV and click on map.

When I traced, I found that the problem is with geometry projection:

geometryService.project([ mapPoint as Geometry ], outSR) ;
0 Kudos
14 Replies
RobertScheitlin__GISP
MVP Emeritus
Phillip,

my code already does that is indicated in the code below:

private function widgetClosedHandler(event:Event):void
   {
    map.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
    map.panEnabled = true;
    map.cursorManager.removeCursor(map.cursorManager.currentCursorID);
    setMapNavigation(null, null);
   }
0 Kudos
by Anonymous User
Not applicable
Original User: philipp37

Robert,

Thanks!  When I implemented your code the cursor symbol just would not disappear after closing the widget.  I had to reiterate that line of code you had indicated to make it work for me - probably not the most elegant method but it seems to work so far:

private function widgetClosedHandler(event:Event):void
   {
    map.removeEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler);
    map.panEnabled = true;
    map.cursorManager.removeCursor(map.cursorManager.currentCursorID);   
    setMapNavigation(null, null);
    map.cursorManager.removeCursor(map.cursorManager.currentCursorID);   
   }
0 Kudos
BrendanCunningham
Emerging Contributor
Thank you Robert and Philipp,
My errors have disappeared too, and the Street View widget is now working perfectly.
Thanks for your help (as ever).
Brendan
0 Kudos
by Anonymous User
Not applicable
Original User: philipp37

How would one remove the google cursor when the widget is minimized??  Right now it does this when the widget is closed but it makes sense to me to duplicate that function for when the widget is minimized..

Thank you!!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Phillip,

   You would just add a minimized event handler to the widget template and have the remove cursor code there.
0 Kudos