Plugin Contributor
hupe13
(@hupe13)
I tested this, the popup is displayed in the left top corner of the map so you can’t see it. Open the popup and then zoom out and you’ll see it. If I delete “svg” then the popup works as expected, but it isn’t a svg icon.
But I have no idea, how to solve it. @bozdoz?
[leaflet-marker lat=48.55499897 lng=-120.34600027 popupAnchor="0,-16" svg background="#022f4d" iconClass="dashicons dashicons-star-filled" color="white" ]Test[/leaflet-marker]
[leaflet-marker lat=48.56499897 lng=-120.33600027 popupAnchor="0,-16" background="#022f4d" iconClass="dashicons dashicons-star-filled" color="white" ]Test[/leaflet-marker]
Thread Starter
kg7hq
(@kg7hq)
Hello,
I took the above coding and paste it in:
“[leaflet-marker lat=48.56499897 lng=-120.33600027 popupAnchor=”0,-16″ background=”#022f4d” iconClass=”dashicons dashicons-star-filled” color=”white” ]Test[/leaflet-marker]
View”
The result I received is that the popup displayed, but it didn’t change it’s display location in reference to the non svg icon. Unless I’m misunderstanding the command intent, it appears to be (2) separate concerns in play, not 1.
1. Not displaying when using an svg icon
2. Not reloacating the popup per the offset string.
So this is a head scratchier. π
Plugin Contributor
hupe13
(@hupe13)
You’re right, it was probably a bit late yesterday.
[leaflet-marker lat=48.55499897 lng=-120.33600027 svg background="#022f4d" iconClass="dashicons dashicons-star-filled" color="white"]svg - without popupAnchor[/leaflet-marker]
Works.
[leaflet-marker lat=48.55499897 lng=-120.34600027 popupAnchor="0,-16" svg background="#022f4d" iconClass="dashicons dashicons-star-filled" color="white" ]svg - popupAnchor[/leaflet-marker]
Doesn’t work. The popup is, how I wrote yesterday, in the left top corner. You must move the map to see it.
Plugin Author
bozdoz
(@bozdoz)
What’s the map shortcode you’re using?
Plugin Author
bozdoz
(@bozdoz)
Definitely a bug. I’ll fix it
Thread Starter
kg7hq
(@kg7hq)
Hello Bozdoz,
This is a complete example of what I’m using. The popupAnchor isn’t ashortcode, but a direct command in my usage. I’m unaware of a shortcode option for this command so my usage could be a problem in itself. I thought I read that this was usable in within the below context, but misunderstood the approach.
`[leaflet-marker lat=50.28732279 lng=-122.9223535 popupAnchor=”0,-16″ svg background=”black” iconClass=”dashicons dashicons-star-filled” color=”red” title=”Blackcomb Mtn-UHF”]
<b>Blackcomb Mtn-UHF</b><br>
Whistler – Blackcomb Mtn<br>
Tx 443.8500 / Rx 448.8500 /CC 1<br>
Elevation: 6,335<br>
Coverage Map<br>
Talkgroup Viewer
Sponsor: BC-TRBO
[/leaflet-marker]
Thread Starter
kg7hq
(@kg7hq)
Hello Bozdoz,
Thank you for your attention toward this. π
Plugin Author
bozdoz
(@bozdoz)
Should be fixed in v3.0.3
Thread Starter
kg7hq
(@kg7hq)
Hello Bozdoz,
The update works great in the recent update. Thank you and hope your day is going well. π