{"id":706,"date":"2021-03-29T14:14:41","date_gmt":"2021-03-29T14:14:41","guid":{"rendered":"https:\/\/liainfraservices.com\/kbarticles\/?post_type=tesserakb&#038;p=706"},"modified":"2021-09-30T04:52:04","modified_gmt":"2021-09-30T04:52:04","slug":"how-to-set-the-draggable-map-view-in-android","status":"publish","type":"tesserakb","link":"https:\/\/www.liainfraservices.com\/kbarticles\/knowledgebase\/how-to-set-the-draggable-map-view-in-android\/","title":{"rendered":"How to set the Draggable Map View in Android?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">When developing a map focused customized Android<strong><span class=\"has-inline-color has-vivid-cyan-blue-color\"><a href=\"https:\/\/www.liainfraservices.com\/mobile-app-development-company-in-chennai\" target=\"_blank\" rel=\"noreferrer noopener\"> Mobile App Development Company in Chennai<\/a><\/span><\/strong>, you will want your users to select an accurate location. Mostly you can use <strong><a href=\"https:\/\/www.liainfraservices.com\/blog\/what-is-google-my-business\/\" target=\"_blank\" rel=\"noreferrer noopener\">Google Maps API<\/a><\/strong>, which is robust and accurate.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Wondering <strong><span class=\"has-inline-color has-vivid-cyan-blue-color\"><a href=\"https:\/\/www.liainfraservices.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to set the Draggable Map view in Android<\/a><\/span><\/strong>? To do so, you got to select a location on the google map using draggable markers in the Google Search API.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"314\" height=\"257\" src=\"https:\/\/liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/How-to-set-the-draggable-Map-view-in-Android-Lia-Infraservices-Mobile-app-development-company-in-Chennai.png\" alt=\"How to set the draggable Map view in Android - Lia Infraservices - Mobile app development company in Chennai\" class=\"wp-image-709\" srcset=\"https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/How-to-set-the-draggable-Map-view-in-Android-Lia-Infraservices-Mobile-app-development-company-in-Chennai.png 314w, https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/How-to-set-the-draggable-Map-view-in-Android-Lia-Infraservices-Mobile-app-development-company-in-Chennai-300x246.png 300w\" sizes=\"auto, (max-width: 314px) 100vw, 314px\" \/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><span class=\"has-inline-color has-vivid-cyan-blue-color\"><a href=\"https:\/\/www.liainfraservices.com\/blog\/how-long-does-it-take-to-build-an-android-or-ios-mobile-app-in-2021\/\" target=\"_blank\" rel=\"noreferrer noopener\">Draggable Map in Android<\/a><\/span><\/strong> is a Google Map API. Determine your starting point on the map by clicking on the &#8220;current location&#8221; or change the location by dragging the pointer from the current location to your desired location anywhere on the map.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>What is onMapReady Method?<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>onMapReady()<\/strong> <strong>method<\/strong> will automatically locate the user&#8217;s current location on the map.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Draggable Maps helps the users to select the map pointer to any accurate location they want to check. To do this &#8220;Google Search API&#8221; will be handy for the Android platform.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The onMapReady() method initializes the map and places the user on their current location of the Google map.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The most notable point here is the <strong>draggable(true) on the MarkerOptions()<\/strong> and the initialization of the <strong>startMarker<\/strong> to the map. Setting draggable to true makes the marker draggable and vice versa is true. Now with this, after the marker is shown, you can long-press the marker then drag it to your preferred location. Also, note that this is possible because if you can see on the map initialization we added a marker drag listener.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>What is the role of Google Coordinates?<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"405\" src=\"https:\/\/liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Role-of-Google-Coordinates-onMapReady-method-Lia-infraservices-Android-App-Development-company-in-Chennai..png\" alt=\"Role of Google Coordinates - onMapReady method - Lia infraservices - Android App Development company in Chennai.\n\" class=\"wp-image-710\" srcset=\"https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Role-of-Google-Coordinates-onMapReady-method-Lia-infraservices-Android-App-Development-company-in-Chennai..png 800w, https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Role-of-Google-Coordinates-onMapReady-method-Lia-infraservices-Android-App-Development-company-in-Chennai.-300x152.png 300w, https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Role-of-Google-Coordinates-onMapReady-method-Lia-infraservices-Android-App-Development-company-in-Chennai.-768x389.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">To understand the user&#8217;s exact current location, &#8220;<strong>Google Coordinates&#8221;<\/strong> will be the only choice. With the knowledge on the Google coordinates between the two points A &amp; B, you can find,<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>The distance between two points.<\/li><li>The time it takes to travel from one point to another.&nbsp;&nbsp;<\/li><\/ol>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Google Place Search API:<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Narrowing the Map further down, we call it &#8220;<strong>Google Place Search API&#8221;<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"392\" height=\"549\" src=\"https:\/\/liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Google-place-Search-API-Custom-mobile-App-Development-Company-in-Chennai.png\" alt=\"Google place Search API - Custom mobile App Development Company in Chennai\" class=\"wp-image-711\" srcset=\"https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Google-place-Search-API-Custom-mobile-App-Development-Company-in-Chennai.png 392w, https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Google-place-Search-API-Custom-mobile-App-Development-Company-in-Chennai-214x300.png 214w\" sizes=\"auto, (max-width: 392px) 100vw, 392px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Google Place Search API may not be the right choice to go only with Google Coordinates. Instead, you can drag and drop the map pointer to your desired location to gather the information you are looking for.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Steps to Set-up Draggable Google Map view API on Android?<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Follow the points,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To set up the <a href=\"https:\/\/www.liainfraservices.com\/blog\/what-is-google-my-business\/\" target=\"_blank\" rel=\"noreferrer noopener\"><span class=\"has-inline-color has-vivid-cyan-blue-color\">Draggable Google Map API<\/span><\/a> on an Android Device from Google API Console<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1. Create NewMapActivity.java from Google sample<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"673\" height=\"558\" src=\"https:\/\/liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Steps-to-Set-up-Draggable-Google-Map-view-API-on-Android-Create-NewMapActivity.java-from-Google-sample.png\" alt=\"Steps to Set-up Draggable Google Map view API on Android - Create NewMapActivity.java from Google sample\" class=\"wp-image-712\" srcset=\"https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Steps-to-Set-up-Draggable-Google-Map-view-API-on-Android-Create-NewMapActivity.java-from-Google-sample.png 673w, https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Steps-to-Set-up-Draggable-Google-Map-view-API-on-Android-Create-NewMapActivity.java-from-Google-sample-300x249.png 300w\" sizes=\"auto, (max-width: 673px) 100vw, 673px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">2. Create Application &amp; Key-in Google API to render the map.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"866\" height=\"371\" src=\"https:\/\/liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Create-Application-Key-in-Google-API-to-render-the-map..png\" alt=\"Create Application &amp; Key-in Google API to render the map.\" class=\"wp-image-713\" srcset=\"https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Create-Application-Key-in-Google-API-to-render-the-map..png 866w, https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Create-Application-Key-in-Google-API-to-render-the-map.-300x129.png 300w, https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Create-Application-Key-in-Google-API-to-render-the-map.-768x329.png 768w\" sizes=\"auto, (max-width: 866px) 100vw, 866px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">3. Enable API for &#8211; Google Maps &amp; Google Place Android API.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"309\" src=\"https:\/\/liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Enable-API-for-Google-Maps-Google-Place-Android-API-1024x309.png\" alt=\" Enable API for - Google Maps &amp; Google Place Android API\" class=\"wp-image-714\" srcset=\"https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Enable-API-for-Google-Maps-Google-Place-Android-API-1024x309.png 1024w, https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Enable-API-for-Google-Maps-Google-Place-Android-API-300x91.png 300w, https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Enable-API-for-Google-Maps-Google-Place-Android-API-768x232.png 768w, https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Enable-API-for-Google-Maps-Google-Place-Android-API.png 1040w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">4. Get API Key from Create Credentials<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"601\" height=\"356\" src=\"https:\/\/liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Get-API-Key-from-Create-Credentials.png\" alt=\"Get API Key from Create Credentials\" class=\"wp-image-715\" srcset=\"https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Get-API-Key-from-Create-Credentials.png 601w, https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Get-API-Key-from-Create-Credentials-300x178.png 300w\" sizes=\"auto, (max-width: 601px) 100vw, 601px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">5. Insert Google Maps API Key.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"682\" height=\"110\" src=\"https:\/\/liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Insert-Google-Maps-API-Key.png\" alt=\" Insert Google Maps API Key\" class=\"wp-image-716\" srcset=\"https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Insert-Google-Maps-API-Key.png 682w, https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Insert-Google-Maps-API-Key-300x48.png 300w\" sizes=\"auto, (max-width: 682px) 100vw, 682px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">6&nbsp; Run the sample to load the map Successfully.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Steps to get Google Coordinates info on the map?<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To get the google map coordinates on a particular fixed location, just drag the Google Map and place the pointer where you want to find the coordinates.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1. Create instance Google Map on &#8220;GoogleMap.OnCameraldleListener&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"586\" height=\"310\" src=\"https:\/\/liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Create-instance-Google-Map-on-GoogleMap.OnCameraldleListener.png\" alt=\"Create instance Google Map on &quot;GoogleMap.OnCameraldleListener&quot;\" class=\"wp-image-717\" srcset=\"https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Create-instance-Google-Map-on-GoogleMap.OnCameraldleListener.png 586w, https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Create-instance-Google-Map-on-GoogleMap.OnCameraldleListener-300x159.png 300w\" sizes=\"auto, (max-width: 586px) 100vw, 586px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">2. Create object &#8220;LatLng&#8221; inside &#8220;onCameraIdle() method&#8221;. Which gives current pointer longitude and latitude coordinates.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"677\" height=\"56\" src=\"https:\/\/liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Create-object-LatLng-inside-onCameraIdle-method.png\" alt=\"Create object LatLng inside onCameraIdle() method\" class=\"wp-image-718\" srcset=\"https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Create-object-LatLng-inside-onCameraIdle-method.png 677w, https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Create-object-LatLng-inside-onCameraIdle-method-300x25.png 300w\" sizes=\"auto, (max-width: 677px) 100vw, 677px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">3. Create an instance of the &#8220;Geocoder&#8221; class.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"678\" height=\"58\" src=\"https:\/\/liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Create-an-instance-of-the-Geocoder-class..png\" alt=\"Create an instance of the Geocoder class.\" class=\"wp-image-719\" srcset=\"https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Create-an-instance-of-the-Geocoder-class..png 678w, https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Create-an-instance-of-the-Geocoder-class.-300x26.png 300w\" sizes=\"auto, (max-width: 678px) 100vw, 678px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">4. Create &#8220;addressList&#8221; associated with <strong>&#8220;Geocoder instance&#8221;<\/strong> by placing coordinates.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"676\" height=\"186\" src=\"https:\/\/liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Create-addressList-associated-with-Geocoder-instance-by-placing-coordinates..png\" alt=\"Create addressList associated with Geocoder instance by placing coordinates.\" class=\"wp-image-720\" srcset=\"https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Create-addressList-associated-with-Geocoder-instance-by-placing-coordinates..png 676w, https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Create-addressList-associated-with-Geocoder-instance-by-placing-coordinates.-300x83.png 300w\" sizes=\"auto, (max-width: 676px) 100vw, 676px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">5. Get address, country and other info from addressList.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"664\" height=\"213\" src=\"https:\/\/liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Get-address-country-and-other-info-from-addressList.png\" alt=\"Get address, country and other info from addressList\" class=\"wp-image-721\" srcset=\"https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Get-address-country-and-other-info-from-addressList.png 664w, https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Get-address-country-and-other-info-from-addressList-300x96.png 300w\" sizes=\"auto, (max-width: 664px) 100vw, 664px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">6. Now get addressList and GetCountryname to be used where ever needed.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"676\" height=\"75\" src=\"https:\/\/liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Code-to-get-addressList-and-GetCountryname-to-be-used-where-ever-needed.png\" alt=\"Code to get addressList and GetCountryname to be used where ever needed\" class=\"wp-image-722\" srcset=\"https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Code-to-get-addressList-and-GetCountryname-to-be-used-where-ever-needed.png 676w, https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/Code-to-get-addressList-and-GetCountryname-to-be-used-where-ever-needed-300x33.png 300w\" sizes=\"auto, (max-width: 676px) 100vw, 676px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Now your Draggable Google Place API is configured!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>What you can do with the Draggable Map view API on Android?<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Step 1 : Search Place<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/zE6gGCIKtuHnHoC4g2pZiMFqXiug4skM_d01TfySIb_jxMRXI9xPVHVjW9PVyo_O4drKHLJ5f7sw16ACNEGtIdSgEofIkkWP7pFonv9gMuGClbZI7p9TnBSo-3iaG1EqD-Ls88Gh\" alt=\"Search address - draggable google map view - liainfraservices\n\"\/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Step 2 : Pick Address<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/z8yFGLkMWqXATI43tyXwcNtklFD5YFAxGccAc070xsMrLPCQTigfLJQFuQpTTqeIDZJN4kVr3JAfxL4vKOqFG4DTWFIhpJgAzxcOFH29I0T6ZZiESt1C18CTrRaW1K_PwNlpFqF5\" alt=\"pick-address-draggable-google-map-view-api-liainfraservices\"\/><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Step 3 : Find Distance &amp; Time Duration between points on Map<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/A_GleuOSyj9c3jYbKt00I0K6FKApeFa_jDKywPcTwTZJ2pHRYpSi8G8_SRtujYWlfjC8gUyUTB3_Q5nV2X_OgZFV77qGrO73987td8ZasOxyYnbmWkAMuCP5wHC5No7wt5JCWnVa\" alt=\"find distance and time duration between two points - draggable google map view on android - liainfraservices\"\/><\/figure><\/div>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Conclusion:<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><span class=\"has-inline-color has-vivid-cyan-blue-color\"><a href=\"https:\/\/www.liainfraservices.com\/contact\">Contact Lia Infraservices<\/a><\/span><\/strong> &#8211; The expertise in <span class=\"has-inline-color has-black-color\">Android and iOS <\/span><strong><span class=\"has-inline-color has-vivid-cyan-blue-color\"><a href=\"https:\/\/www.liainfraservices.com\/mobile-app-development-company-in-chennai\" target=\"_blank\" rel=\"noreferrer noopener\">Mobile App Development Company in Chennai<\/a><\/span><\/strong>. We create a <span class=\"has-inline-color has-black-color\">custom <a href=\"https:\/\/www.liainfraservices.com\/mobile-app-development-company-in-chennai\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>android Mobile app development company in Chennai<\/strong><\/a><\/span> that fits the global market clients specific business requirements. We create impactful mobility solutions with highly performing <strong>Android Mobile Application Development<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check out <span class=\"has-inline-color has-vivid-cyan-blue-color\"><a href=\"https:\/\/liainfraservices.com\/kbarticles\/knowledgebase\/how-we-made-a-donation-app\/\" target=\"_blank\" rel=\"noreferrer noopener\">how we made an Android &amp; iOS Mobile App<\/a><\/span>!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When developing a map focused customized Android Mobile App Development Company in Chennai, you will want your users to select an accurate location. Mostly you can use Google Maps API, which is robust and accurate. Wondering How to set the Draggable Map view in Android? To do so, you got to select a location on&#8230;<\/p>\n","protected":false},"author":1,"featured_media":707,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"tessera_post_format_link":""},"tesserakbcats":[69],"tesserakbtags":[],"class_list":["post-706","tesserakb","type-tesserakb","status-publish","format-standard","has-post-thumbnail","hentry","tesserakbcats-mobile-app-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to set the Draggable Map View in Android? - LIAINFRASERVICES<\/title>\n<meta name=\"description\" content=\"Wondering How to set the Draggable Map view in Android? Check out Lia Infraservices android app development company in Chennai for Solution.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.liainfraservices.com\/kbarticles\/knowledgebase\/how-to-set-the-draggable-map-view-in-android\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to set the Draggable Map View in Android? - LIAINFRASERVICES\" \/>\n<meta property=\"og:description\" content=\"Wondering How to set the Draggable Map view in Android? Check out Lia Infraservices android app development company in Chennai for Solution.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.liainfraservices.com\/kbarticles\/knowledgebase\/how-to-set-the-draggable-map-view-in-android\/\" \/>\n<meta property=\"og:site_name\" content=\"LIAINFRASERVICES\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-30T04:52:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/How-to-Set-Draggable-Google-Map-API-on-Android..-1-e1617617632741.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"512\" \/>\n\t<meta property=\"og:image:height\" content=\"315\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.liainfraservices.com\/kbarticles\/knowledgebase\/how-to-set-the-draggable-map-view-in-android\/\",\"url\":\"https:\/\/www.liainfraservices.com\/kbarticles\/knowledgebase\/how-to-set-the-draggable-map-view-in-android\/\",\"name\":\"How to set the Draggable Map View in Android? - LIAINFRASERVICES\",\"isPartOf\":{\"@id\":\"https:\/\/www.liainfraservices.com\/kbarticles\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.liainfraservices.com\/kbarticles\/knowledgebase\/how-to-set-the-draggable-map-view-in-android\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.liainfraservices.com\/kbarticles\/knowledgebase\/how-to-set-the-draggable-map-view-in-android\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/How-to-Set-Draggable-Google-Map-API-on-Android..-1-e1617617632741.jpg\",\"datePublished\":\"2021-03-29T14:14:41+00:00\",\"dateModified\":\"2021-09-30T04:52:04+00:00\",\"description\":\"Wondering How to set the Draggable Map view in Android? Check out Lia Infraservices android app development company in Chennai for Solution.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.liainfraservices.com\/kbarticles\/knowledgebase\/how-to-set-the-draggable-map-view-in-android\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.liainfraservices.com\/kbarticles\/knowledgebase\/how-to-set-the-draggable-map-view-in-android\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.liainfraservices.com\/kbarticles\/knowledgebase\/how-to-set-the-draggable-map-view-in-android\/#primaryimage\",\"url\":\"https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/How-to-Set-Draggable-Google-Map-API-on-Android..-1-e1617617632741.jpg\",\"contentUrl\":\"https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/How-to-Set-Draggable-Google-Map-API-on-Android..-1-e1617617632741.jpg\",\"width\":512,\"height\":315,\"caption\":\"How to Set Draggable Google Map API on Android-Lia infraservices- Top Mobile App development Company in Chennai\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.liainfraservices.com\/kbarticles\/knowledgebase\/how-to-set-the-draggable-map-view-in-android\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.liainfraservices.com\/kbarticles\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Articles\",\"item\":\"https:\/\/www.liainfraservices.com\/kbarticles\/knowledgebase\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to set the Draggable Map View in Android?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.liainfraservices.com\/kbarticles\/#website\",\"url\":\"https:\/\/www.liainfraservices.com\/kbarticles\/\",\"name\":\"LIAINFRASERVICES\",\"description\":\"committed to the values\",\"publisher\":{\"@id\":\"https:\/\/www.liainfraservices.com\/kbarticles\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.liainfraservices.com\/kbarticles\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.liainfraservices.com\/kbarticles\/#organization\",\"name\":\"LIAINFRASERVICES\",\"url\":\"https:\/\/www.liainfraservices.com\/kbarticles\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.liainfraservices.com\/kbarticles\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/01\/ya.png\",\"contentUrl\":\"https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/01\/ya.png\",\"width\":200,\"height\":60,\"caption\":\"LIAINFRASERVICES\"},\"image\":{\"@id\":\"https:\/\/www.liainfraservices.com\/kbarticles\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to set the Draggable Map View in Android? - LIAINFRASERVICES","description":"Wondering How to set the Draggable Map view in Android? Check out Lia Infraservices android app development company in Chennai for Solution.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.liainfraservices.com\/kbarticles\/knowledgebase\/how-to-set-the-draggable-map-view-in-android\/","og_locale":"en_US","og_type":"article","og_title":"How to set the Draggable Map View in Android? - LIAINFRASERVICES","og_description":"Wondering How to set the Draggable Map view in Android? Check out Lia Infraservices android app development company in Chennai for Solution.","og_url":"https:\/\/www.liainfraservices.com\/kbarticles\/knowledgebase\/how-to-set-the-draggable-map-view-in-android\/","og_site_name":"LIAINFRASERVICES","article_modified_time":"2021-09-30T04:52:04+00:00","og_image":[{"width":512,"height":315,"url":"https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/How-to-Set-Draggable-Google-Map-API-on-Android..-1-e1617617632741.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.liainfraservices.com\/kbarticles\/knowledgebase\/how-to-set-the-draggable-map-view-in-android\/","url":"https:\/\/www.liainfraservices.com\/kbarticles\/knowledgebase\/how-to-set-the-draggable-map-view-in-android\/","name":"How to set the Draggable Map View in Android? - LIAINFRASERVICES","isPartOf":{"@id":"https:\/\/www.liainfraservices.com\/kbarticles\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.liainfraservices.com\/kbarticles\/knowledgebase\/how-to-set-the-draggable-map-view-in-android\/#primaryimage"},"image":{"@id":"https:\/\/www.liainfraservices.com\/kbarticles\/knowledgebase\/how-to-set-the-draggable-map-view-in-android\/#primaryimage"},"thumbnailUrl":"https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/How-to-Set-Draggable-Google-Map-API-on-Android..-1-e1617617632741.jpg","datePublished":"2021-03-29T14:14:41+00:00","dateModified":"2021-09-30T04:52:04+00:00","description":"Wondering How to set the Draggable Map view in Android? Check out Lia Infraservices android app development company in Chennai for Solution.","breadcrumb":{"@id":"https:\/\/www.liainfraservices.com\/kbarticles\/knowledgebase\/how-to-set-the-draggable-map-view-in-android\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.liainfraservices.com\/kbarticles\/knowledgebase\/how-to-set-the-draggable-map-view-in-android\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.liainfraservices.com\/kbarticles\/knowledgebase\/how-to-set-the-draggable-map-view-in-android\/#primaryimage","url":"https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/How-to-Set-Draggable-Google-Map-API-on-Android..-1-e1617617632741.jpg","contentUrl":"https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/03\/How-to-Set-Draggable-Google-Map-API-on-Android..-1-e1617617632741.jpg","width":512,"height":315,"caption":"How to Set Draggable Google Map API on Android-Lia infraservices- Top Mobile App development Company in Chennai"},{"@type":"BreadcrumbList","@id":"https:\/\/www.liainfraservices.com\/kbarticles\/knowledgebase\/how-to-set-the-draggable-map-view-in-android\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.liainfraservices.com\/kbarticles\/"},{"@type":"ListItem","position":2,"name":"Articles","item":"https:\/\/www.liainfraservices.com\/kbarticles\/knowledgebase\/"},{"@type":"ListItem","position":3,"name":"How to set the Draggable Map View in Android?"}]},{"@type":"WebSite","@id":"https:\/\/www.liainfraservices.com\/kbarticles\/#website","url":"https:\/\/www.liainfraservices.com\/kbarticles\/","name":"LIAINFRASERVICES","description":"committed to the values","publisher":{"@id":"https:\/\/www.liainfraservices.com\/kbarticles\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.liainfraservices.com\/kbarticles\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.liainfraservices.com\/kbarticles\/#organization","name":"LIAINFRASERVICES","url":"https:\/\/www.liainfraservices.com\/kbarticles\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.liainfraservices.com\/kbarticles\/#\/schema\/logo\/image\/","url":"https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/01\/ya.png","contentUrl":"https:\/\/www.liainfraservices.com\/kbarticles\/wp-content\/uploads\/2021\/01\/ya.png","width":200,"height":60,"caption":"LIAINFRASERVICES"},"image":{"@id":"https:\/\/www.liainfraservices.com\/kbarticles\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.liainfraservices.com\/kbarticles\/wp-json\/wp\/v2\/tesserakb\/706","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.liainfraservices.com\/kbarticles\/wp-json\/wp\/v2\/tesserakb"}],"about":[{"href":"https:\/\/www.liainfraservices.com\/kbarticles\/wp-json\/wp\/v2\/types\/tesserakb"}],"author":[{"embeddable":true,"href":"https:\/\/www.liainfraservices.com\/kbarticles\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.liainfraservices.com\/kbarticles\/wp-json\/wp\/v2\/comments?post=706"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.liainfraservices.com\/kbarticles\/wp-json\/wp\/v2\/media\/707"}],"wp:attachment":[{"href":"https:\/\/www.liainfraservices.com\/kbarticles\/wp-json\/wp\/v2\/media?parent=706"}],"wp:term":[{"taxonomy":"tesserakbcats","embeddable":true,"href":"https:\/\/www.liainfraservices.com\/kbarticles\/wp-json\/wp\/v2\/tesserakbcats?post=706"},{"taxonomy":"tesserakbtags","embeddable":true,"href":"https:\/\/www.liainfraservices.com\/kbarticles\/wp-json\/wp\/v2\/tesserakbtags?post=706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}