Skip to first unread message

john Eastwell

unread,
Jan 28, 2015, 5:11:52 AM1/28/15
to mitappinv...@googlegroups.com

I have made a simple app which uses the list picker to select a Google map; this works fine but I cannot see how to then go to the Google street view on the selected map.

SteveJG

unread,
Jan 28, 2015, 8:25:31 AM1/28/15
to mitappinv...@googlegroups.com
"The list picker is used to select a Google map."  OK, how do you do that John?    Are you capturing a regular Google Map or a Static Map?     Are you using the WebViewer or the ActivityStarter.
If you use a static map and call up a url, I do not believe streetview is an option, however if you are using a regular Google Map you should be able to use Google's controls on the screen.
Do you have Google's StreetView app installed on your device?   I think that needs to be installed as a separate app to use streetview on a device  https://play.google.com/store/apps/details?id=com.google.android.street&hl=en  

This might be some other problem.  Since we on the forum can not see your blocks or exactly how you are invoking the map, could you post a screen capture (jpg or png) of your relevant blocks calling for the map or possibly a  capture of the Google screen you can view?     That will help us to better understand what you got so far and where you might need to go.


Regards,
Steve

john Eastwell

unread,
Jan 28, 2015, 10:57:15 AM1/28/15
to mitappinv...@googlegroups.com
Steve

I do have Google maps installed on the device.

I am using the Activity Starter, the relevant blocks are attached. 

SteveJG

unread,
Jan 28, 2015, 11:13:26 AM1/28/15
to mitappinv...@googlegroups.com
OK ... you do have Google Maps installed; that is great but do you have Google Maps StreetView?

However, what you are doing is using Google Static Maps (I can tell from your coding :)  )... ;static' maps work differently from the basic Google Maps.  Static maps allow you to use :

The Google Static Maps API to create maps in several formats, listed below:

  • roadmap (default) specifies a standard roadmap image, as is normally shown on the Google Maps website. If no maptype value is specified, the Static Maps API serves roadmap tiles by default.
  • satellite specifies a satellite image.
  • terrain specifies a physical relief map image, showing terrain and vegetation.
  • hybrid specifies a hybrid of the satellite and roadmap image, showing a transparent layer of major streets and place names on the satellite image.
Notice the options do not include StreetView.

You may be able to get a StreetView image by using this info in the Activity.Starter URI:  https://developers.google.com/maps/documentation/streetview/    using the StreetView API  .

Try some things.   Let us know the results of your experiments and if you find a solution that works, please post it here.     I think you probably can do this (I have not tried it but expect there is enough info in the Google developers info to get it working with AI2).

Regards,
Steve












Taifun

unread,
Jan 28, 2015, 11:30:02 AM1/28/15
to mitappinv...@googlegroups.com
see here https://support.google.com/gmm/answer/2841694?hl=en

Access Street View

  1. Open the Google Maps app Google Maps app logo image.
  2. Search for a place.
  3. Touch the info sheet at the bottom of the screen and select Street View.

Taifun

Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by Taifun.         

john Eastwell

unread,
Jan 28, 2015, 11:43:55 AM1/28/15
to mitappinv...@googlegroups.com
Taifun

Many thanks that was the solution, I hadn't realised that on the android google map I could access streetview in that way.


SteveJG

unread,
Jan 28, 2015, 11:47:53 AM1/28/15
to mitappinv...@googlegroups.com
Here is what you need to do John:

It is extremely simple to get a Street view image. and you can do it with AI2 WebViewer.









Regards,
Steve
Reply all
Reply to author
Forward
0 new messages