How do I add these please ? (I could add buttons to deal with Map - Satellite - Terrain, possibly FullScreen - but StreetView and Rotation I am not sure, but I really need them)
Rotation I have found can be achieved by using hand Gestures in some cases - but you need to get to StreetView first
I have attached the Libraries used with the project - Is it a limitation of the GoogleMaps Library (Version 2.50) ?
I have found another project which uses jGoogleMaps Library - this example is in a B4J Project - It should be noted that while you have a StreetView Button, the actual StreetView does not work properly, with no coherent image shown.
However, for some reason the B4A Project zipped up with the example, used GoogleMap Library 2.5 (Which has minimal Buttons)
jGoogleMaps is not related to B4A. It is based on a completely different SDK.
Make sure that CompassEnabled is checked in the designer. The compass appears automatically when the map is rotated.
There are other relevant settings in the designer.
I have followed up on the link above and have more of an understanding about the controls on the Map.
eg, Here are some that may be relevant
gmap.GetUiSettings.CompassEnabled = True
gmap.GetUiSettings.ZoomControlsEnabled = True
gmap.GetUiSettings.TiltGesturesEnabled = True
What is still missing is the StreetView control (the picture of the little man you can drag on to the map) - and The Map - Satellite Buttons
There are references to this in Java but not easily initiated in B4A
What is still missing is the StreetView control (the picture of the little man you can drag on to the map) - and The Map - Satellite Buttons
There are references to this in Java but not easily initiated in B4A
Simply create an HTML Page and display it through a button control (first touch the spot on the map where you want to see in StreetView Mode, so that you can lock in the co-ordinates of the location).
Definitely not the ideal, purest solution to what should be something available, but will work using the "McGyver" Approach.
Out of interest I have been able to display an HTML Page, under B4A, which shows a Google Map and does everything I want - but all the button controls are tiny.
If you are using B4A v5.80+ then please follow this tutorial: https://www.b4x.com/android/forum/threads/google-maps.63930/#post-404386 GoogleMaps library requires v2.50 or above. GoogleMaps library allows you to add Google maps to your application. This library requires Android 3+ and will...
This code check's easy and fast if Google Street View is available. You need the latitude and longitude. You can here get a API Key. Here you can more read about this. Sub isStreetViewAvailable(lat As Float, lon As Float) Dim j As HttpJob j.Initialize("", Me)...
With this Code you can get the picture of a Google Street View Position. Here you can check if is available. Sub getStreetViewPicture(width As Int, height As Int ,lat As Float, lon As Float) Dim j As HttpJob j.Initialize("", Me)...
www.b4x.com
Essentially these snippets are using HttpJob to achieve the result
I presume we create a button to achieve the result
This code check's easy and fast if Google Street View is available. You need the latitude and longitude. You can here get a API Key. Here you can more read about this. Sub isStreetViewAvailable(lat As Float, lon As Float) Dim j As HttpJob j.Initialize("", Me)...
With this Code you can get the picture of a Google Street View Position. Here you can check if is available. Sub getStreetViewPicture(width As Int, height As Int ,lat As Float, lon As Float) Dim j As HttpJob j.Initialize("", Me)...
www.b4x.com
Essentially these snippets are using HttpJob to achieve the result
I presume we create a button to achieve the result
If you are using B4A v5.80+ then please follow this tutorial: https://www.b4x.com/android/forum/threads/google-maps.63930/#post-404386 GoogleMaps library requires v2.50 or above. GoogleMaps library allows you to add Google maps to your application. This library requires Android 3+ and will...
If you are using B4A v5.80+ then please follow this tutorial: https://www.b4x.com/android/forum/threads/google-maps.63930/#post-404386 GoogleMaps library requires v2.50 or above. GoogleMaps library allows you to add Google maps to your application. This library requires Android 3+ and will...
The other thing I do not follow is this - where do I get this from ? Then where do I put it ?
#AdditionalRes: C:\Users\martin\Programming\adt-bundle-windows-x86_64-20131030\sdk\extras\google\google_play_services\libproject\google-play-services_lib\res, com.google.android.gms
I found another project, which shows the Streetview in the top half of the screen and the road map on the bottom half of the screen - It also had a wedge which pointed to the current location on the road map. - it is exactly what I want.
The other thing I do not follow is this - where do I get this from ? Then where do I put it ?
#AdditionalRes: C:\Users\martin\Programming\adt-bundle-windows-x86_64-20131030\sdk\extras\google\google_play_services\libproject\google-play-services_lib\res, com.google.android.gms
Installation instructions: - Register your app in Google developer console: https://console.developers.google.com You need to enable Google Maps Android API. Then click on Credentials -> Create Credentials -> API Key -> Android Key. You should get a key that looks like...
www.b4x.com
very good:
I found another project, which shows the Streetview in the top half of the screen and the road map on the bottom half of the screen - It also had a wedge which pointed to the current location on the road map. - it is exactly what I want.
Hello, With this class, you can create floating windows, move them with the finger, dock them, stick them to an edge, maximize them, customize their action bar... You fill them as you fill a panel. This class needs the Reflection library. v1.1: The class has been splitted in two...
www.b4x.com
I found another project, which shows the Streetview in the top half of the screen and the road map on the bottom half of the screen - It also had a wedge which pointed to the current location on the road map. - it is exactly what I want.
I appreciate your time and patience, and apologize for not knowing some of the basics.
Hopefully, one day I will be able to contribute to the forum in the most generous and positive way that you do.
In the meantime I will study your valuable recommendations.