Skip to content

Examples ​

Each example is a running map with dock.js, with its code. Copy it and put your key in. One script tag.

Use cases

Map

Add a mapdock’s map in one line: base map, roads, names, buildings, entrances.3D buildingsBuildings at their heights, from a tilted camera.Day and nightDay, dusk, dawn, night. At night windows light up by building type.Search boxAddresses, names and codes as people type them. Suggestions from the third character.Search controlThe search box on the map in one line: suggestions, the picked place's card and mark. All three search layers.Building code lookupA five-character code to its door. Codes go only to doors checked on site.Route to the entranceThe route ends at the entrance; the walk from the road comes apart.MarkersEvery search result as a marker on the map.PopupsClick the map: the address at that point in a popup.Live trackingA vehicle moves along its route and its marker follows. A simulated vehicle here.Fit boundsFit every search result in one view.Offline packCheck an offline pack file by file before using it: size, then sha256.Custom styleYour own colours: dock’s buildings and entrances in your style.Static imageThe map as one PNG from one address: for an e-mail, an order page or a chat, where no script runs. The picture follows the map, a pin in the middle.Light and dark with your dataGrey light and dark looks with your GeoJSON layer on top. Switch the look and the layer comes back. Here a bank's branches in the centre.Reverse geocodingClick a point: its district, khoroo and the places near it.Building under a tapThe building under a tap and the entrances near it, with their confidence.