akvo.rsr.staticmap module
Akvo RSR is covered by the GNU Affero General Public License.
See more details in the license.txt file located at the root folder of the Akvo RSR module. For additional details on the GNU license please see < http://www.gnu.org/licenses/agpl.html >.
- class akvo.rsr.staticmap.Coordinate(latitude, longitude)
Bases:
tuple
- latitude
Alias for field number 0
- longitude
Alias for field number 1
- class akvo.rsr.staticmap.MapboxAdapter(key)[source]
Bases:
object
- URL = 'https://api.mapbox.com/styles/v1/mapbox/light-v10/static/{}/{}/{}?access_token={}&logo=false'
- class akvo.rsr.staticmap.MapboxAutoClusteringAdapter(key, clusterer=<akvo.rsr.staticmap.MarkerClusterer object>)[source]
Bases:
object
- MAPBOX_ZOOMLEVEL = {0: 78271.484, 1: 39135.742, 2: 19567.871, 3: 9783.936, 4: 4891.968, 5: 2445.984, 6: 1222.992, 7: 611.496, 8: 305.748, 9: 152.874, 10: 76.437, 11: 38.218, 12: 19.109, 13: 9.555, 14: 4.777, 15: 2.389, 16: 1.194, 17: 0.597, 18: 0.299, 19: 0.149, 20: 0.075, 21: 0.037, 22: 0.037}
- URL = 'https://api.mapbox.com/styles/v1/mapbox/light-v10/static/{}{}/{}?access_token={}&logo=false'
- class akvo.rsr.staticmap.MapquestAdapter(key)[source]
Bases:
object
- URL = 'https://www.mapquestapi.com/staticmap/v5/map?key={}&locations={}'
- class akvo.rsr.staticmap.MarkerClusterer(mercator=<akvo.rsr.staticmap.SimpleMercator object>, gridsize=50)[source]
Bases:
object