OneWorld

Contents:

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

oneworld.WebMap.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.