Hello, first of all, great plugin!
I’m using the multi marker block. Is there a way to change the marker color? Maybe using JS?
Thank you!
]]>Hello, sorry for my english.
I just download this plugin to use with gutenberg. When i want to add this block in admin page, no problem, i see the map, i can add a marker.
But when i got to the front page, i see nothing.
Any idea ? Thanks in advance
]]>Updating from 2.2.1 to 3.0.0 : map is shown correctly in the editor but does not render on the frontend due to the following error: Uncaught ReferenceError: L is not defined
]]>The multi-brand version has stopped working, you cannot add new points, nor create one from scratch.
Fails, searches for a long time, move the point and the button is not activated
And since this block does not have fields to add latitude and longitude, it is no longer operational, although the points previously added to this error are still visible.
Jesús, thank you very much for your work, I hope it can be fixed since it is a simple and practical plugin.
—
La versión multimarca ha dejado de funcionar, no se pueden a?adir nuevos puntos, ni crear uno desde cero.
Falla, desde hace tiempo las búsquedas, mover el punto y el botón no se activa
Y como este bloque no tiene campos para a?adir latitud y longitud ha dejado de ser operativo, aunque se siguen viendo los puntos a?adidos anteriormente a este error.
Jesús, muchas gracias por tu trabajo, espero que se pueda arreglar ya que es un plugin sencillo y práctico.
]]>Hi,
apparently the algolia api to get marker from an address is not working anymore, I don t know how to fix it myself, could someone help us with that ?
the error is as follow POST https://places-1.algolianet.com/1/places/query?x-algolia-agent=Algolia%20for%20JavaScript%20(3.35.1)%3B%20Browser%20(lite)%3B%20Algolia%20Places%201.19.0&x-algolia-application-id=&x-algolia-api-key= net::ERR_NAME_NOT_RESOLVED
]]>
Hello! I had the plugin working perfectly with a multi marker map. Yesterday after the upgrades, it appears that the multi marker maps no longer show up on the front end. The single marker maps still work. The multi marker maps still show on the wordpress back-end, but just not in the browser. It seems like in the debugger, it is looking for a file that it cannot find. Please let me know ?? Thank you.
]]>Hey there,
can you think of a way to use the functions directly in a theme? With the ancestor you could eg. “do_shortcode”
Blessings
]]>Hola, antes de nada agradecerte la creación de este plugin que me ha parecido increíblemente útil. No obstante, me gustaría preguntarte si es posible poner más de un punto en el mapa y si después puedo poner enlaces en esos puntos que te lleven a artículos de mi blog?
]]>Hi Jesús,
Nice block thank you.
Just a small issue, when using your block in Chrome Devtools, I get the following notice:
DevTools failed to load SourceMap: Could not load content for
https://audax.org.au/www/wp-content/plugins/map-block-leaflet/lib/leaflet.js.map:
HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
This is easily resolved by amending the last line in leaflet.js.map
:
FROM: //# sourceMappingURL=leaflet.js.map
TO: // sourceMappingURL=leaflet.js.map
Note, this issue is not impacting your solution, just tidying up debug code.
regards
Thomas
Hello! I had a problem. I really liked the plugin, but if you change it. I need the site user to be able to put a marker on the map. That is, so that the user, in addition to the map, also sees the address bar. And when entering the address, the coordinates of the marker changed. Since this is when designing a unit. When I see the address entry line. Is it possible to do this for the user?
]]>Estimado Jesús,
Primero felicitarte por el plugin, muy útil. Pero tengo problemas al ubicarlo dentro del bloque de columnas del editor, el marcador me queda justo afuera, al parecer considera el centro de la página y no del tama?o que se muestra el mapa.
Si cambio su ancho con css tampoco funciona.
En la edición de la página se ve bien.
Lo he probado en los tema Astra, GeneratePress, Storefront y Twenty Twenty-One.
Versión de WordPress 5.6
Acá imágenes de un sitio de prueba: https://postimg.cc/gallery/T2cmgnm
Saludos!
]]>I’m using the GeneratePress theme which lets you create blocks outside of the standard page editor and then use them across the site, for example a footer.
See https://docs.generatepress.com/article/block-element-overview/
Your plugin works correctly in the editor but does not render on the frontend due to the following error: Uncaught ReferenceError: L is not defined
I can only guess that because the block that contains the map is part of an Element for GeneratePress (rather than on a proper page) then the Leaflet library isn’t loaded.
Looking at your plugin’s code it looks like the part with is_singular
and has_block( 'map-block-leaflet/map-block-leaflet' )
— because the block is not part of the page but rather part of an element then it does not load the JS/CSS.
I understand this is an edge case but there might be other block editors where your map element is loaded “outside” of a page and your hook to load the frontend scripts won’t trigger, so just a heads up ??
I’ve managed to fix it by editing your plugin and calling map_block_leaflet_enqueue_external_assets
inside leaflet_map_block_frontend_scripts
without any conditional logic.
Buenas, primero felicidades por el plugin! Desde hace unos días estoy teniendo problemas para cargar los mapas, con un error 429.. ?A qué se puede deber?
]]>I get the following JS Error, when I view a map in the frontend.
Uncaught Error: Map container is already initialized.
https://alt-010.ddev.site/app/plugins/map-block-leaflet/lib/leaflet.js?ver=1.5.1 line 5
]]>
Hello Jésus,
THank you for this plugin, very useful. Is it possible to extend the provider list for the map, or does this need an update of the plugin?
I’d like to use one of the themes mentioned on
]]>Hi, great plugin, but I am seeing the flowing errors on the page where the Map is show – any thoughts how to fix?
]]>Notice: Undefined index: zoom in /httpdocs/wp-content/plugins/map-block-leaflet/map-block-leaflet.php on line 87
Notice: Undefined index: disableScrollZoom in /httpdocs/wp-content/plugins/map-block-leaflet/map-block-leaflet.php on line 93
Notice: Undefined variable: output in //httpdocs/wp-content/plugins/map-block-leaflet/map-block-leaflet.php on line 107