Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Options for bindTooltip or bindPopup not working #1

Open
bodhidharm opened this issue Mar 22, 2021 · 6 comments
Open

Options for bindTooltip or bindPopup not working #1

bodhidharm opened this issue Mar 22, 2021 · 6 comments

Comments

@bodhidharm
Copy link

I was trying to add labels to markers,but leaflet options for bindTooltip or bindPopup not working with this plugin,neither it is possible to add icons with L.divIcon

@francoisromain
Copy link
Owner

there is an example here with bindPopup : https://github.com/francoisromain/leaflet-markers-canvas#exemple

you can see it in action here: https://francoisromain.github.io/leaflet-markers-canvas/examples/

please make a minimal reproduction of your bug if you need more help.

@bodhidharm
Copy link
Author

bodhidharm commented Mar 22, 2021

https://codesandbox.io/s/nameless-thunder-7pv6b?file=/src/components/HelloWorld.vue
this template expects that text must be visible on icons permanent,,but it is not working,,if delete options in lines 47 and 48 in HelloWorld.vue file,tooltip will start working by hovering it,,but l need them permanently be visible,or if in HelloWorld.vue delete canvas options and add markers only with leaflet,icons will be permanent visible,,but every icon will become part of DOM

@francoisromain
Copy link
Owner

I will have a look when I have time

@bodhidharm
Copy link
Author

thanks

@ShadowZone
Copy link

As far as I can see, it's only because of the permanent: true, option. If you delete it, it works as expected.
This is not a solution (as you explicitly want this particular feature) but maybe its a hint for someone else :-)

@bodhidharm bodhidharm changed the title bindTooltip or bindPopup options not working Options for bindTooltip or bindPopup not working Apr 30, 2021
@Optega
Copy link

Optega commented Jan 4, 2024

Has anyone solved this problem with tooltips? (permanent)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants