android-maps-extensions

Exclude marker from clustering - Google Maps Extension (Android app)

喜夏-厌秋 提交于 2020-01-02 20:09:07
问题 I'm using version 1.3.1 of the Google Maps Extension and am trying to exclude a marker from being clustered. I have one marker that is set in the onCreate method of my app and it represents My Location. I want this to always be visible and not be clustered like the rest of my markers. Is this possible? I tried adding the marker before I set the clustering settings and before I called setClustering on the GoogleMaps object, but it doesn't seem to work. 回答1: If you are using just one Marker

Load only markers surrounding my location Google Map v2 Android

筅森魡賤 提交于 2019-12-23 02:55:13
问题 I have a lot of markers (1700 or more) loading on a Google Map v2 in Android. I would like to cut down on the amount of memory being used creating this map as it seems to be FC my 2.3 Droid. I would like to add points only if they are within the visible screen area. I have looked at the Google Maps Extension and see this: map.setClustering(new ClusteringSettings().enabled(false).addMarkersDynamically(true)); However my for loop adds all the markers to the map. How do I set this up and only

Importing AndroidMapsExtensions into Android Studio

邮差的信 提交于 2019-12-13 06:14:22
问题 I have been trying relentlessly to use this library. Everytime I add it, I lose all android.support.v4 and com.google.android.gms.maps cababilities. There is very little documentation for this library. Is there any tutorial that I have overlooked in my extensive Google searching? Here's my gradle file: dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:21.0.3' compile 'com.google.android.gms:play-services:6.5.87' compile 'com

Android Google Map coordinate

半世苍凉 提交于 2019-12-10 11:58:49
问题 Currently doing a simple app that contain google map. and i would like to link to next activity when the user click on a designed coordinate but it is not working and there is no error, please help me double latitude = 1.34503109; double longitude = 103.94008398; LatLng latLng = new LatLng(latitude, longitude); gMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() { @Override public void onMapClick(LatLng latLng) { Intent i = new Intent(Activity_Selecting_Bus.this, Activity_Bus

Load only markers surrounding my location Google Map v2 Android

南楼画角 提交于 2019-12-09 06:52:26
I have a lot of markers (1700 or more) loading on a Google Map v2 in Android. I would like to cut down on the amount of memory being used creating this map as it seems to be FC my 2.3 Droid. I would like to add points only if they are within the visible screen area. I have looked at the Google Maps Extension and see this: map.setClustering(new ClusteringSettings().enabled(false).addMarkersDynamically(true)); However my for loop adds all the markers to the map. How do I set this up and only add my markers per this method? Here is my for loop adding markers: int nsize = visibleMarkers.size();

Android - Google Maps Extensions - IllegalArgumentException

亡梦爱人 提交于 2019-12-01 08:19:48
I'm getting an IllegalArgumentException when I call this createMarker() method: private void createMarker(GoogleMap map, MarkerOptions options, OnMarkerCreateListener listener) { Log.e("LazyMarker", "Options var val: "+options); Log.i("LazyMarker", "GoogleMap Value:"+map); Log.i("LazyMarker", "OnMarkerCreateListener Value:"+listener); marker = map.addMarker(options); //Log.i("LazyMarker", "The value of Marker is:"+map.addMarker(options)); if (listener != null) { listener.onMarkerCreate(this); } } Here is the logcat output: 06-14 11:40:38.627: I/OGT.RideTracking(25590): Map value is: com.google

Android - Google Maps Extensions - IllegalArgumentException

旧城冷巷雨未停 提交于 2019-12-01 06:36:22
问题 I'm getting an IllegalArgumentException when I call this createMarker() method: private void createMarker(GoogleMap map, MarkerOptions options, OnMarkerCreateListener listener) { Log.e("LazyMarker", "Options var val: "+options); Log.i("LazyMarker", "GoogleMap Value:"+map); Log.i("LazyMarker", "OnMarkerCreateListener Value:"+listener); marker = map.addMarker(options); //Log.i("LazyMarker", "The value of Marker is:"+map.addMarker(options)); if (listener != null) { listener.onMarkerCreate(this);

No such property: sonatypeUserName for class: org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer

♀尐吖头ヾ 提交于 2019-11-30 06:37:02
问题 I'm trying to use this blibioteca android-maps-extensions because I need to fix more than 1000 markers on my map . Added the project dependencies in my project : compile project (':android-maps-extensions') But when I update build.gradle get the following error : No such property : for class sonatypeUserName : org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer The username and password appear to be incorrect or something , this code is part of the project I'm build

Android: Build Polygonal Shape Geofence

喜欢而已 提交于 2019-11-28 00:11:50
According to the API documentation, only Circular shape Geofences allowed: https://developers.google.com/android/reference/com/google/android/gms/location/Geofence.Builder And it's looks for example: https://developer.android.com/training/location/geofencing.html But I have 4 locations, representing 4 corners of rectangle, and I want my Geofence to be that rectangle. I want to avoid solution of building my custom location monitoring service extending the functionality of monitoring Geofences, because I think this kind of services are CPU & power consuming... Thanks, You have to do it by

Android: Build Polygonal Shape Geofence

妖精的绣舞 提交于 2019-11-26 18:29:29
问题 According to the API documentation, only Circular shape Geofences allowed: https://developers.google.com/android/reference/com/google/android/gms/location/Geofence.Builder And it's looks for example: https://developer.android.com/training/location/geofencing.html But I have 4 locations, representing 4 corners of rectangle, and I want my Geofence to be that rectangle. I want to avoid solution of building my custom location monitoring service extending the functionality of monitoring Geofences,