Popup withou marker not work
See original GitHub issueI want to show popup in custom place of map by click event. For this I write:
<MglMap ...>
<MglPopup>
</MglPopup>
<!-- Some layers... -->
</MglMap>
and then set popups prop ‘showed’ to true, but popup don’t showing.
I try place popup in market, in it showing!!!
<MglMap ...>
<MglMarker>
<MglPopup>
</MglPopup>
</MglMarker>
<!-- Some layers... -->
</MglMap>
Why popup don’t show without marker??
P.S.: Sorry for my English.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:13
Top Results From Across the Web
Changing anchor point for popup without marker using ...
These popups opens when I click on a marker, but now I just want a simple popup to be visible when the map...
Read more >How can I prevent a popup to show when clicking ...
What is the right way to prevent a popup from showing without using the clickable : false property of the marker object? All...
Read more >Leaflet for R - Popups and Labels
You can create labels without the accompanying markers using the addLabelOnlyMarkers function. The "leaflet" R package is copyright © 2014-2016 RStudio, Inc.
Read more >Problem cookie popup marker
1) Const is invalid. I should be const . Function is wrong. It needs to be function . Button is wrong. It needs...
Read more >Pop up always visible without clicking on the marker in leaflet
Pop-up cannot be enabled by default. Another way is to keep the pop up from closing when pressed on the map or other...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s working for me with the above code. It’s pretty weird, as I tried to create a codesandbox to prove that it’s working, and it is not working there using the exact same code! I’m pretty stumped at how I managed to do it. The only thing that would be different is that I’m using nuxt…but that still doesn’t really make sense. edit It turns out I’m using the development version since I cloned the repo and made a small unrelated change to the code already, so that explains that. For future lurkers, it’s pretty easy. Instead of doing
yarn add vue-mapbox
, just doyarn add https://github.com/soal/vue-mapbox.git
and you’ll have the development version.@schellenbergk @vinayakkulkarni If you add something like
@mousemove="onMapMouseMoved"
to<MglMap ref="mglmap">
and then in methods have something along the lines ofYou’ll need to add
<MglPopup>
as wellyour data section should look something like this
It works just like the stock mapbox gl works, the only thing is you need to use
e.mapboxEvent
instead of juste
like all the examples show! That took a while to figure out.