goiblas / Map-Block-Leaflet

Map Block Leaflet for WordPress 🗺️
https://wordpress.org/plugins/map-block-leaflet
GNU General Public License v2.0
17 stars 10 forks source link

Icon map don't show #55

Closed fredb8x closed 1 year ago

fredb8x commented 1 year ago

Hello, the icon marker does not show on the map on the front end. The map try to load the png from the url of the page. GET https://gargas-dev-front.149-202-93-199.plesk.page/fr/infos-pratiques/**marker-shadow.png**

Thank you for your work.

goiblas commented 1 year ago

Hello, this icon url should be an absolute path to the map plugin folder can you tell me the theme and plugins you are using?

fredb8x commented 1 year ago

Hello Jesús, i use the plugin Oxygen builder, so i don' t have an active theme in my wordpress. My other plugins are :

So I think the problem comes perhaps from using Oxygen builder who is a wordpress headless.

Thank you for your help

goiblas commented 1 year ago

I have tried with some of those plans and it works correctly, as you say it could be because of Oxygen builder.

I don't have Oxygen builder and I can't do any more tests. I'm sorry I can't solve it.

fredb8x commented 1 year ago

If you want to try with oxygen builder you can give me an adresse email, i sent you the extension.

fredb8x commented 1 year ago

in other way, a new implementation on your plugin should be great, the avaibility to choose a custom icon from the media library ? Thank you for your time Jesús

goiblas commented 1 year ago

Thanks for the invitation to try oxygen builder, but I am not interested.

What you said about customizing the map marker is very interesting, I have created a new issue and I will work to include it in next versions

daviewales commented 1 year ago

Hi @goiblas, I'm getting this issue too: https://wollondillyanglican.org/services/

When editing the map, the tooltip has the correct URL: https://wollondillyanglican.org/wp-content/plugins/map-block-leaflet/lib/images/marker-icon-2x.png

But when viewing the published page it is incorrect: https://wollondillyanglican.org/services/images/marker-icon-2x.png

It used to work in the past.