Should I use the Google Maps API to create game maps?

Hi, I just want to ask about those custom Google maps that you can place on your web page, I thought about using them for a couple of "maps" in the game to show where certain elements are on the same "layer", the location of destructible objects in another layer, points of appearance and all that. I was wondering if the Google APIs can cover all of this or should I do it myself?

+4
source share
2 answers

Layers will be conceptual (i.e. the GMaps API does not know about layers), but yes. You can store markers added to your own layer array. Each member of this array will be an array of markers corresponding to each type. You can create your own markers, create them anywhere on the map, etc.

The API may be too slow for a game in which markers move in real time, depending on the rotation, this is certainly possible.

What you cannot do is copy the image and redistribute it so that your game can work on top of Google Maps.

+1
source

You can use Custom Overlays or Ground Overlays (for objects similar to a map) and markers (for objects like an object).

0
source

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


All Articles