google-maps-android-api-2

Google Map v2 check whether the point contains in area

我的梦境 提交于 2021-02-08 19:27:09
问题 all. I am trying to check the point that user taps on the google map whether in specific area, does google map api v2 have any method that i can quick to use? 回答1: You can use LatLngBounds. It has contains method which returns true when given LatLng is inside bounds. If you want to get current visible region I recommend reading: https://stackoverflow.com/a/14700745/759007 . 回答2: You should use Location APIs https://developer.android.com/google/play-services/location.html Inside em, you can

how do i solve integrating google map in fragment in android

血红的双手。 提交于 2021-02-07 09:44:01
问题 I have a problem integrating google map in fragment in android. I know how to do it in activity but fragment reference on this site are very old and not working in 2018. I don't have any error.below is fragment file. Any help will be highly appreciated. I have added API key and proper manifest file. package com.example.narmail.truck30mint.Api.Fragments; import android.Manifest; import android.content.Context; import android.content.DialogInterface; import android.content.pm.PackageManager;

Cannot be resolved / Cannot be resolved to a type

守給你的承諾、 提交于 2021-02-04 21:15:48
问题 I recevied error like cannot be resolved to a type. I'm a beginner at java and i'm attempting to develop an android application. I put a commend sign at the place where i received the cannot be resolved to a type error. package com.example.majorproject; import com.vogella.android.locationapi.maps.R; import android.os.Bundle; import android.app.Activity; import android.view.Menu; public class MajorProject extends Activity { static final //LatLng HAMBURG = new //LatLng(53.558, 9.927); static

Converting from world coordinates to tile location

心不动则不痛 提交于 2021-01-29 22:34:59
问题 me and a friend are trying to build an android app for class that uses google maps and we have been spending days on this one error. Ideally the app receives updates of the user's location, stores them, and paints over any stored coordinate. That turned out to be a nightmare to implement so right now we're just trying to paint over the entire tile if that tile contains a coordinate that the user has visited. However we think something's wrong with our conversion from coordinate to tile

Android Google Services Location costs and limitations

我的未来我决定 提交于 2021-01-28 05:27:46
问题 I would use in my app the location service provided by Google Services and I am in trouble understanding how it works. I need to check user position for an amount higher then 1000 times so I need to enable the function that allows me to do 150 000 requests every 24h (or maybe I am in wrong?). I have a Developer account on Google Play (paid 1 time for ever). To be able to check user position higher then 1000 times for day what have I to do? Do I pay for this ? How much ? What I found : https:/

android google maps not loading the map when using GoogleMap.AnimateCamera()

蹲街弑〆低调 提交于 2021-01-27 20:37:40
问题 Google Maps document According to Google maps document, in order to apply a CameraUpdate to the map, we can either move the camera instantly(by using GoogleMap.moveCamera(CameraUpdate)) or animate the camera smoothly(by using GoogleMap.animateCamera(CameraUpdate)). What I did So I started by using GoogleMap.moveCamera(CameraUpdate). The map can be loaded just fine. However, when I used GoogleMap.animateCamera(CameraUpdate), the map can't be loaded. What I saw was just a gray screen or a blur

Can't Create ClusterManager For Android Google Maps

蓝咒 提交于 2020-12-15 05:57:25
问题 I'm trying to use Google Maps clustering in my Android project. Currently for a start I actually copied the code from the demo https://github.com/googlemaps/android-maps-utils (which runs fine for me) On my project, however, on mClusterManager = new ClusterManager<MyItem>(this, getMap()); it throws: java.lang.ClassCastException: android.widget.ImageView cannot be cast to com.google.maps.android.ui.RotationLayout I can't even figure out what why is any there casting? Basically took the