GoogleMapsExtras updated to version 1.80
This update adds support for the
StreetView features found in the May 2014 Google Play Services update.
More info about the May 2014 update can be found here:
https://developers.google.com/maps/documentation/android/releases#may_2014.
Google Street View provides panoramic 360-degree views from designated roads throughout its coverage area.
The coverage available through the Google Maps Android API v2 is the same as that for the Google Maps app on your Android device.
The list of currently supported cities for Street View is available at the Google Maps Help Center.
The StreetViewPanorama class models the Street View panorama in your application.
Within your UI, a panorama is represented by a StreetViewPanoramaFragment or StreetViewPanoramaView object.
I've not implemented the StreetViewPanoramaFragment object, instead i've just implemented the
StreetViewPanoramaView object.
The StreetViewPanoramaView object can not only display 'official Google StreetView', it can also display 'user contributed photospheres' hosted on
Google Views.
More info about photospheres can be found here:
https://www.google.co.uk/maps/about/contribute/photosphere/.
(The StreetViewPanoramaView can only display remote content - it cannot display local device based content).
Once you have submitted a photosphere to Google Views, it is assigned a unique string
panoid, you need the panoid in order to display the photosphere using a StreetViewPanoramaView.
A submitted photosphere will also automatically be moderated for inclusion in the official Google Maps website, if accepted for inclusion then the photosphere is discoverable and viewable to any user of the Google Maps website.
(When the Google Maps user enables StreetView using the 'pegman', photospheres appear as blue dots which the user can hover over or click on).
You can display a photosphere using a StreetViewPanoramaView regardless of whether or not the photosphere was accepted for inclusion in Google Maps.
The StreetViewPanoramaView allows full programmatic control - bearing, zoom level and tilt are all settable.
You can enable/disable touch and zoom gestures, user navigation and the display of street names too.
The StreetViewPanoramaView can be used in a b4a project alongside a GoogleMap or it can be used standalone in a project with no GoogleMap.
Note though that even if you do not use a Google Map you will still require an API key and need to make the manifest modifications required just as you must do if you do use a Google Map.
More onfo on the API key and manifest modifications can be found here:
http://www.b4x.com/android/forum/threads/google-maps-android-v2-tutorial.24415/.
I've created a couple of b4a example projects and shall upload them to the
Google Maps tutorial thread.
Version 1.80 is attached to the first post in this thread.
Martin.
[edit]The two example projects can be found here:
http://www.b4x.com/android/forum/threads/google-maps-android-v2-tutorial.24415/page-23#post-250550[/edit]