Android Question Expanding scope of Google Maps 2.50

Intelemarketing

Active Member
Licensed User
Longtime User
Thanks to so much help from so many, I have the basic Google Maps project running ( https://www.b4x.com/android/forum/threads/google-maps.63930/ )
(May I once again thank you all sincerely.)

THE NEXT STEP
What is missing are the other buttons you normally get with traditional Google maps

Map - Satellite - Terrain - FullScreen - StreetView - 2D - 3D - Rotation

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) ?

Thank you
 

Attachments

  • GoogleLibs1.JPG
    GoogleLibs1.JPG
    19.7 KB · Views: 109

Intelemarketing

Active Member
Licensed User
Longtime User
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)
 

Attachments

  • googlemap2.JPG
    googlemap2.JPG
    78.7 KB · Views: 118
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
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.

You can see all the available options here: https://developers.google.com/maps/documentation/android-sdk/controls
If anything is not implemented in the library then it should be simple to access it with JavaObject.
 
Upvote 0

Intelemarketing

Active Member
Licensed User
Longtime User
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

Appreciate help so far
Thanks Erel
 
Upvote 0

Intelemarketing

Active Member
Licensed User
Longtime User
STREET VIEW WHEN YOU ARE DESPERATE TO HAVE A STREET VIEW


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.
 
Last edited:
Upvote 0

Intelemarketing

Active Member
Licensed User
Longtime User
Hi Manfred
I am experienced in VB6 - just starting to learn B4X - no previous experience with Java, Javascript or Android
Thanks for the information
 
Upvote 0

TILogistic

Expert
Licensed User
Longtime User
See B4A StreetView :

 
Upvote 0

Intelemarketing

Active Member
Licensed User
Longtime User
Have also found these snippets which show how to Check if Street View is available

Then display StreetView

Essentially these snippets are using HttpJob to achieve the result

I presume we create a button to achieve the result
 
Upvote 0

TILogistic

Expert
Licensed User
Longtime User
Have also found these snippets which show how to Check if Street View is available

Then display StreetView

Essentially these snippets are using HttpJob to achieve the result

I presume we create a button to achieve the result

It is a good solution for the B4X cross platform.

But

Remember that the GoogleMap web Key APIs are limited to StreetView.

 
Last edited:
Upvote 0

TILogistic

Expert
Licensed User
Longtime User
See B4A StreetView :

Google Play Services resource !!!
 
Upvote 0

Intelemarketing

Active Member
Licensed User
Longtime User
I see what you mean Oparra! This is what I need.

What I don't understand about it is that that Warwound talks about downloading 2 APK files. What do I do with these please ?
http://b4a.martinpearman.co.uk/googlemapsextras/streetview_example_1.apk.
http://b4a.martinpearman.co.uk/googlemapsextras/streetview_example_2.apk.

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.

This is it: https://www.b4x.com/android/forum/t...maps-visibility-problem-solved.53416/#content
 
Last edited:
Upvote 0

TILogistic

Expert
Licensed User
Longtime User
Sample test
What I don't understand about it is that that Warwound talks about downloading 2 APK files. What do I do with these please ?
http://b4a.martinpearman.co.uk/googlemapsextras/streetview_example_1.apk.
http://b4a.martinpearman.co.uk/googlemapsextras/streetview_example_2.apk.

Version update see tutorial googlemap:
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

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.

This is it: https://www.b4x.com/android/forum/t...maps-visibility-problem-solved.53416/#content
 
Last edited:
Upvote 0

TILogistic

Expert
Licensed User
Longtime User
very nice:

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.

This is it: https://www.b4x.com/android/forum/t...maps-visibility-problem-solved.53416/#content
 
Upvote 0

Intelemarketing

Active Member
Licensed User
Longtime User
Thanks Oparra

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.

Cheers
George
 
Upvote 0
Top