Questions tagged [google-maps-android-api-3]

Version 3 of the Maps SDK for Android is a new implementation with the same API surface as the previous version (all classes and methods remain the same).

The main areas of change Maps SDK for Android v.3 are as follows:

From the documentation:

  • The Maps SDK for Android is now distributed via a standalone static library. Previously, the Maps SDK for Android was made available as part of Google Play services.
  • Android 4.0-4.0.4 ("Ice Cream Sandwich") is no longer supported.
  • Map rendering has been modernized and improved.
  • Text labels for POIs are now clickable, rather than just the icon.
  • Business POIs are now visible in indoor maps.
  • Added incident reports icons to the traffic layer, such as roadworks, crashes, and traffic jams. These show in Normal, Hybrid and Terrain mode.
  • Added support for 3D buildings with full models, e.g. Eiffel Tower.
  • Increased opacity of 3D buildings to match the Google Maps application.
  • Resolved an issue where markers were loading slowly (Issue 35822423).

Official documentation:

Maps SDK for Android v.3

Maps SDK for Android samples

21 questions
158
votes
10 answers

AndroidRuntime: FATAL EXCEPTION: androidmapsapi-ZoomTableManager

My app that uses Google Maps SDK (v2) just started crashing with this exception: Process: com.currentlocation.android, PID: 7328 java.lang.ArrayIndexOutOfBoundsException: length=1; index=12 at…
2
votes
1 answer

Android Google Maps moveCamera causes "IllegalStateException: Illegal height"

When I call moveCamera on a small screen, it throws the following exception: java.lang.IllegalStateException: Illegal height. This is my code: googleMap.moveCamera( CameraUpdateFactory.newLatLngBounds( bounds, // Padding …
2
votes
2 answers

Can't navigate in google maps activity it always spawns back to my current location

I am new to android development and was working on an app which requires google map activity. Problem I am facing is that when I am trying to pan(or scroll) through the map I am immediately respawned to my current location which I set initially. A…
Tushar Verma
  • 163
  • 1
  • 9
2
votes
0 answers

Using SupportMapFragment with XML attributes in FragmentContainerView

In my app I used a FragmentContainerView to keep a single fragment, extended from SupportMapFragment. Just like this:
1
vote
3 answers

Add a view overlay on map view android

I am using the MapView from the Google Map Android SDK in full screen, but I have a requirement to display another transparent full view over the mapview. The overlay displays as expected, however, the map can be controlled (markers can be clicked,…
0
votes
1 answer

Can I use Google Maps in Android Studio for free (non-commercial use)?

I would like to use Google Maps in my moblie application in Android Studio. Can i use Google Maps for non-commercial use (basically only in Android Studio) for free? In my project i need only map and gps to which I want to add some different options…
0
votes
0 answers

Google Maps menu revealed after tapping on marker

When a marker is tapped a weird menu is revealed in the bottom right of the map. Clicking on the buttons in that menu will launch the Google Maps app with directions to the Lat/Lng of the marker. Any idea on how to disable that…
0
votes
0 answers

How to get cloud based styling working in Android

I have followed the instructions here https://developers.google.com/maps/documentation/get-map-id to associate my SupportMapFragment with the cloud based styling. However, nothing happens when I run the app. It's the same default map style. What am…
Roihu
  • 65
  • 6
0
votes
1 answer

How to change Random location onClickListener android google maps api

hey i'm new with this and I'm trying to implement a button to generate a location polyline. i got the code from here https://github.com/Moneemsaadaoui/Gradientpoly. and the code to generate a polyline like this. generate.setOnClickListener(new…
0
votes
1 answer

Property map not being initialized in fragment

Google map is not being initialized in fragment. Even after trying to call getMapAsync in different fragment lifecycles class MyMapFragment : Fragment(), OnMapReadyCallback { private lateinit var map: GoogleMap override fun onCreateView( …
0
votes
1 answer

Why is my Android app crashing every time I run a python script with chaquopy?

I am building an Android app that will allow the user to get a picture either by taking it in real time or uploading it from their saved images. Then, it will go through a machine learning script in python to determine their location. Before I…
0
votes
1 answer

SupportMapFragment nested in Fragment makes map not reacting to gestures

I have problem with Google Maps V3. Basically I have application with HomeActivity (AppCompatActivity). In this activity I have HomeFragment (inherits from Fragment) and now what I want is to have SupportMapFragment from Google Maps library, so…
otis_d
  • 71
  • 7
0
votes
3 answers

Failed assertion: line 19 pos 16: 'latitude != null': is not true. Flutter Error

I use flutter and google maps Geolocation is taken to show the current position of the user The map loads correctly but before loading, it shows this error 'package:google_maps_flutter_platform_interface/src/types/location.dart': Failed assertion:…
coder
  • 37
  • 1
  • 12
0
votes
1 answer

Flutter Exception : The getter 'latitude' was called on null. Receiver: null Tried calling: latitude

This is the code that i have written to get current location and add some markers import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:flutter/material.dart'; import 'package:geolocator/geolocator.dart'; import…
coder
  • 37
  • 1
  • 12
0
votes
1 answer

Google Maps API (Android SDK). Every time location is updating through location listener, a new marker is showing in the maps

Every time location is updating through location listener, a new marker is coming in my map which looks so weird. I just want only one marker that will updated. override fun onMapReady(googleMap: GoogleMap?) { val locationListener =…
Akshat Rawat
  • 150
  • 2
  • 9
1
2