Google Maps Engine custom map on Android v2 maps?

I am creating a custom map using the Google Maps Engine API, which looks great. I understand how to create a layer and publish a map. What I don't understand is how I can display this data on an Android device using the Google Maps v2 Android API. Is this feature currently supported?

+6
source share
4 answers

Google Maps Android API v2 does not currently have the equivalent of the MapsEngineLayer found in the JS API.

However, you can add arbitrary fragments using TileOverlay, and then use the WMS endpoint of your published and open Maps Engine map.

You can find example code for this, including converting WMS requests to tile requests, at https://github.com/saxman/maps-wms-tiles-sample

There is also a video at https://www.youtube.com/watch?feature=player_embedded&v=U6ZbHAXPnhg that demonstrates how to do this, including an example that is extracted from Maps Engine.

Alternatively, you can use the Maps Engine API to transfer functions in the form of vector data (in this case, the GeoJSON format) and draw them on the device, instead of having images for the Engine Engine Karting, however it will performance click when you draw more shapes.

+4
source

You can create your own TileProvider to render your map. You should get all the information you need here in StackOverflow:

0
source

The short answer is yes, but I would like to know what is the nature of the information you are trying to display. Will it cover the entire view of the map or just a segment or some information about a point of interest to you? If this is a segment, is it a square tile or some irregular shape?

0
source

I created my own Google Maps (while on vacation) and then I wanted to use this map on Android. Shame, but the new version of Android Google Maps does not allow you to see it. You have two options:

0
source

Source: https://habr.com/ru/post/946631/


All Articles