0

I wonder if there is some way to draw polygons on Android without using a connection even without showing the map, only drawing the lines.

Currently I can only do this after you have connected at least once on the Internet (probably to validate the key), but I need it completely offline even that does not show the map but only the polygons and lines.

Can anyone help?

  • It's not possible. Although it's not documented (or at least I haven't found it) Google Maps needs connection to validate the API key the first time you open the map. Then you can use all the functionalities without connection. If this is a must, you can evaluate some alternatives like Open Street Maps – antonio Oct 26 '16 at 21:35

1 Answers1

1

You can use custom TileProvider like in this answer with blank tiles and than draw polygon as usual.

Community
  • 1
  • 1
Andrii Omelchenko
  • 13,183
  • 12
  • 43
  • 79
  • but even so, the polygon will only show if I have already connected to the Internet at some point, right? When I install the application and do not use the internet it only shows the blank screen without the polygon. – Datacoper Software Oct 26 '16 at 18:15
  • "but even so, the polygon will only show if I have already connected to the Internet at some point, right?" - unfortunately yes. As You wrote GM needs to validate the key. – Andrii Omelchenko Oct 26 '16 at 19:44