Skip to content

Files

Latest commit

2e038d4 · Dec 14, 2017

History

History
23 lines (13 loc) · 568 Bytes

osm_http.md

File metadata and controls

23 lines (13 loc) · 568 Bytes

osm.http backend

Ask backend to render and write metatile via http. Based on tirex module.

Use lua-resty-http for http requests, so it must be installed in lua_package_path directory.

Methods

request

syntax: result = osm.http.request(map, x, y, z1, z2)

Request enqueue command to fetching map 'map' with x/y/z1 cordination. And also request to render in background between zoom z1 to z2. If request fails return nil.

When z1 == z2, just ask to render single tile.