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

15 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…
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
0 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…
0
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:
0
votes
0 answers

Why is it that openstreetmap tiles doesn't show, but tiles from other providers are ok?

Android app, with google maps api. Using GoogleMap.addTileOverlay() and this works perfectly for providers such as (Location is abritrary in this example): finn.no: (https://maptiles1.finncdn.no/tileService/1.0.1/norortho/18/135520/72632.png) but…
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
  • 6
0
votes
1 answer

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
  • 7
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
  • 7
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
  • 140
  • 8
0
votes
0 answers

Android - How to remove straight lines when showing multiple routes on the map

When I draw more than one route on the map, I always have weird straight lines. I use Google direction API and search route with multiple stops one section after another. The weird straight line always happen from third from last stop to second…
0
votes
0 answers

Generating Bitmaps for Google MapOverlays with Kotlin Coroutines

I'm having some issues building out a section of my code which edits server sent thumbnails and renders them as a Google GroundOverlay. The issue seems to stem from Kotlin Coroutines. First, the documentation from Google says that the ground…
0
votes
0 answers

What is the latest way to get the direction user is facing wrt earth's true north and rotate the heading arrow on google map in android?

I am new to android development and I am trying to build an app for learning purposes. I have used the Google maps sdk 3.0 inside a fragment and implemented fusedlocationclient api successfully. Now I downloaded DevCheck app and saw the orientation…
0
votes
0 answers

Google android map app crashes while getting latitude and longitude from the database

I need to show a bus location on the map, I have latitude and longitude saved in my database. To retrieve the Latitude and Longitude i am using AsynTask. But i think there is some problem with my code, app crashes if call AsyncTask in onMapReady. I…
0
votes
1 answer

NonHierarchicalViewBasedAlgorithm from android-maps-utils use pixel or dp on constructor params?

The class NonHierarchicalViewBasedAlgorithm from googlemaps/android-maps-utils have a constructor: public NonHierarchicalViewBasedAlgorithm(int screenWidth, int screenHeight) { mViewWidth = screenWidth; mViewHeight = screenHeight; …
Daniel Gomez Rico
  • 12,814
  • 14
  • 81
  • 140
-1
votes
1 answer

How to make google map API markers clickable and open new Activity?

I want to have my markers so that when clicked upon they will open a new activity that will display a list of locations from my SQLite database. If someone could show me the code to add to my markers to open activity for that particular marker it…