question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to add a static Image similar to a Widget that does not move with the map?

See original GitHub issue

I am attempting to add an image from a url statically overlaying the map, but does not move with the map. Obviously the following does not work, it seems like this might need to be a custom widget or a legend?

# create map
test1 = Map(
    center=(25, -115),
    zoom=4
)

# define image overlay
logo1 = Image(
    url="https://octodex.github.com/images/yaktocat.png"
)

widget_control = WidgetControl(widget=logo1, position='topleft')
m.add_control(widget_control)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
giswqscommented, Aug 22, 2020

Yes, you can add any ipywidget to the map as a WidgetControl just like ZoomControl, LayerControl, etc.

0reactions
liquidgeniuscommented, Aug 22, 2020

Issue resolved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Image widget—ArcGIS Experience Builder | Documentation
The Image widget allows you to add static and dynamic images to a page. Examples. Use this widget to support app design requirements...
Read more >
How To: Dynamically link multiple views or pages using ...
The Image widget allows adding of static and dynamic images to a page. Click Save The Save icon to save the experience. Three...
Read more >
Widgets - Earth Engine - Google Developers
There are a variety of widgets you can use to build your UIs. These widgets include buttons, checkboxes, sliders, textboxes and selection ...
Read more >
IOS 14 photo widgets | Apple Developer Forums
When I add the widget with photos to my home screen it displays a certain album ... so I have to live with...
Read more >
Use the Image web part - Microsoft Support
Add or replace an image on your page · If you're not in edit mode already, click Edit at the top right of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found