OneWorld

Contents:

  • Introduction
  • Tutorials
  • API Reference
    • Static Maps
    • Interactive Maps
      • WebMap
      • add_basemap
      • add_box
      • add_choropleth
      • add_circles
      • add_geojson
      • add_heatmap
      • add_layer_control
      • add_lines
      • add_logo
      • add_network
      • add_overlay
      • add_panel
      • savemap
OneWorld
  • Docs »
  • API Reference »
  • add_logo
  • View page source

add_logo¶

WebMap.add_logo(source, position='bottomleft', width=None, embed=True)¶

Add a static image from a file.

Parameters
  • source (str) – String containing the full path (including the file name) to the image file.

  • position ({'topleft', 'topright', 'bottomleft', 'bottomright'}) – Position of the image in the map (Default: ‘bottomleft’).

  • width (int) – Desired width in pixels of the watermark. If None, it will be handled automatically by the browser (Defalt: None).

  • embed (bool) – If True, the image will be encoded to base64 and embedded into the final html file. If not, only the reference to the file will be included in the html file (Default: True).

Next Previous

© Copyright 2020, Antoni Aguilar Mogas

Built with Sphinx using a theme provided by Read the Docs.