摘要 |
A non-transitory computer-readable medium stores instructions that implement an application programming interface (API) for generating digital maps. When invoked by a software module executing on one or more processors of a client device, the API operates to (i) determine a geographic location to be included in a digital map, where the geographic location is specified by a server device coupled to the client device via a communication network, (ii) select a parameter for a viewport of the digital map based at least on a distance from a current location of the client device to the specified geographic location, (iii) generate the digital map in accordance with the selected parameter, and display the digital map via a user interface of the client device. |