Android App Development
iOS App Development
Flutter App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!
Deniel Kerr
Founder. Opencart
Top Partners
In the mobile applications world, one idea that is implemented in a very good way is the use of maps and the location-based applications, that help us in multiple ways in our everyday life. particularly store location.
Google provides via Google Play Services a library for using maps. Maps allow users to explore the world more clearly and let them identify locations with custom markers and much more.
To use Google Maps, set up the Google Play services SDK in your app development project.
compile ‘com.google.android.gms:play-services:6.5.87’
To access the Google Maps tools, you need an API key, which you can obtain through a Google account. The key is based on your Android app debug or release certificate. More information can be found on following links:
https://console.developers.google.com/ https://developers.google.com/maps/documentation/android-api
https://console.developers.google.com/
https://developers.google.com/maps/documentation/android-api
We need to add a feature element for OpenGL ES version 2:
add metadata for google API:
The MapFragment class extends the Fragment class and provides the life cycle management and the services for displaying aGoogleMap widget. GoogleMap is the class which shows the map. The MapFragment has the getMap() method to access this class.
MapFragment
Fragment
GoogleMap
getMap()
googleMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();
We can create markers on the map via the Marker class. This class can be highly customized. On GoogleMap we can register a listener for the markers in our map via thesetOnMarkerClickListener(OnMarkerClickListener) method. The OnMarkerClickListener class defines theonMarkerClicked(Marker) method which is called if a marker is clicked.
Marker
setOnMarkerClickListener(OnMarkerClickListener)
OnMarkerClickListener
onMarkerClicked(Marker)
Stay updated to know more about Maps in Android application !
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
It was a successful collaboration. The Mobikul team provided the client everything they needed in a timely and high-quality manner. They were very professional, reliable, and accessible during the entire process. The client also saw no room for any improvements in the vendor's performance.
Vincenzo Carrano
Administrator, Segshop
USA
India
Global
Name
Email
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.