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).