Introduction
The Map Display API is a resource for displaying maps on web pages using Javascript. Integrated with the Leaflet library, it offers a layer of functions for carrying out tasks such [...]
The Map Display API is a resource for displaying maps on web pages using Javascript. Integrated with the Leaflet library, it offers a layer of functions for carrying out tasks such [...]
Import the Javascript API Maplink’s Javascript API is publicly available at the url https://maps.maplink.global, and can be included in any web page easily with a tag script: [...]
Geographical coordinates All API methods that receive geographic coordinates as parameters accept two different formats: Optional configurations Methods that have optional settings [...]
Markers A marker is simply a highlighted point on the map, which can be used to show points of interest (POIs) or simply stops on a route, for example. To create a simple marker, j [...]
To use Leaflet resources or parameters that don’t yet have equivalents in our Javascript API, you can directly access the Leaflet and its map object via the properties L and [...]
The example below shows a web page with a marker located at the “Fisherman’s Statue” in the municipality of Santos, SP. In the variable apiKey, add your key recei [...]
This example shows the result of a route between 2 points near Avenida Paulista in the city of São Paulo. In the variable apiKey, add your key received from Maplink. The variable m [...]
The following example shows two routes generated by Trip API in the region of Santos, SP. The variable map is associated with the class MaplinkMap and contains the properties of th [...]
It is possible to use Leaflet features or parameters that do not yet have equivalents in Maplink’s Javascript API. To do this, access your map object via the properties L and [...]