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.

Update Popups API

See original GitHub issue

Epic #1343 Related issue “Homogenize Popups/Legends/Widgets API” #1300

Features

1. Change parameter parameter in Layer

  • click_popup
  • hover_popup

2. Add popup element

  • popup_element
from cartoframes.viz.popups import click_popup, hover_popup

Layer(
    hover_popup=popup_element('name', title='Name')
)

Layer(
    hover_popup=[
        popup_element('name', title='Name')
    ],
    click_popup=[
        popup_element('name', title='Name'),
        popup_element('pop_max', title='Pop Max')
    ]
)

⚠️ 4. Docs!

This is an implicit task: update documentation

  • Guides
  • Reference
  • Examples

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

2reactions
elenatorrocommented, Dec 19, 2019

I’d propose to go for popup_element which, by default now is a text element. In the future, the popup_element could be extended in order to accept other types as links and images 👍

2reactions
Jesus89commented, Dec 18, 2019

Yeah, since we have reviewed some times (:S) it would be nice to hear @cmongut and @andy-esch

Read more comments on GitHub >

github_iconTop Results From Across the Web

notifications.update() - Mozilla - MDN Web Docs
update () Updates a notification, given its ID. This is an asynchronous function that returns a Promise .
Read more >
Update Popups on FeatureLayer Refresh? - Esri Community
Solved: Hello! My webapp is performing bulk attribute edits using the applyEdits() function of the JS API, however after the updates are ...
Read more >
Popup | API Reference | ArcGIS Maps SDK for JavaScript 4.25
The Popup widget allows users to view content from feature attributes. ... When true indicates the popup should update its location for each...
Read more >
How to update the pop-up note via API - Stack Overflow
I'm trying to update the pop-up note via the API. I can easily update the top box (aka the Note) but I don't...
Read more >
UPDATE: Push Notification API Explained + 8 Use Examples
How to use API to send personalized push notifications? · 1. Pass data about your USER ID to MaxTraffic tracking code with our...
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