Hi Giorgos, thanks for your work and for the shortcodes.
I have problems to use them. May i ask you to provide some more examples? Especially for using the geodata of the actual post. I tried almost all combinations, and it doesn′t show a map with a marker of the geodata stored in post meta.
Thanks in advance
]]>hello, ist there an optiont to Change to opentopomap?
kind regards Tiemo
]]>JS error / editor crash when swapping a template:
Error: Minified React error #185; visit https://reactjs.org/docs/error-decoder.html?invariant=185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at al (react-dom.min.js?ver=18.2.0:10:82583)
at Rt (react-dom.min.js?ver=18.2.0:10:50491)
at react-dom.min.js?ver=18.2.0:10:50350
at s (data.min.js?ver=e6595ba1a7cd34429f66:9:2282)
at c (data.min.js?ver=e6595ba1a7cd34429f66:9:2308)
at data.min.js?ver=e6595ba1a7cd34429f66:2:20459
at data.min.js?ver=e6595ba1a7cd34429f66:2:18787
at h (data.min.js?ver=e6595ba1a7cd34429f66:2:8145)
at data.min.js?ver=e6595ba1a7cd34429f66:2:11025
at redux-routine.min.js?ver=b14553dce2bee5c0f064:9:750
ar @ react-dom.min.js?ver=18.2.0:10
t.callback @ react-dom.min.js?ver=18.2.0:10
tt @ react-dom.min.js?ver=18.2.0:10
Jr @ react-dom.min.js?ver=18.2.0:10
Zr @ react-dom.min.js?ver=18.2.0:10
Gr @ react-dom.min.js?ver=18.2.0:10
(anonymous) @ react-dom.min.js?ver=18.2.0:10
xl @ react-dom.min.js?ver=18.2.0:10
fl @ react-dom.min.js?ver=18.2.0:10
Nn @ react-dom.min.js?ver=18.2.0:10
(anonymous) @ react-dom.min.js?ver=18.2.0:10
setTimeout (async)
h @ compose.min.js?ver=1339d3318cd44440dccb:9
y @ compose.min.js?ver=1339d3318cd44440dccb:9
setTimeout (async)
h @ compose.min.js?ver=1339d3318cd44440dccb:9
(anonymous) @ compose.min.js?ver=1339d3318cd44440dccb:9
E @ compose.min.js?ver=1339d3318cd44440dccb:9
(anonymous) @ block-editor.min.js?ver=868d782fcb169133c92b:26
react-dom.min.js?ver=18.2.0:10
Uncaught Error: Minified React error #185; visit https://reactjs.org/docs/error-decoder.html?invariant=185 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at al (react-dom.min.js?ver=18.2.0:10:82583)
at Rt (react-dom.min.js?ver=18.2.0:10:50491)
at react-dom.min.js?ver=18.2.0:10:50350
at s (data.min.js?ver=e6595ba1a7cd34429f66:9:2282)
at c (data.min.js?ver=e6595ba1a7cd34429f66:9:2308)
at data.min.js?ver=e6595ba1a7cd34429f66:2:20459
at data.min.js?ver=e6595ba1a7cd34429f66:2:18787
at h (data.min.js?ver=e6595ba1a7cd34429f66:2:8145)
at data.min.js?ver=e6595ba1a7cd34429f66:2:11025
at redux-routine.min.js?ver=b14553dce2bee5c0f064:9:750
Steps to reproduce:
Could you fix the deprecation warning in PHP 8.1?
Deprecated: Automatic conversion of false to array is deprecated in /wp-content/plugins/ootb-openstreetmap/includes/classes/Helper.php on line 199
Thanks.
PS: It appears after activation, before the plugin options are saved and return false. Tastes bad for devs.
]]>dear @gsarig dear experts, good day ??
i want to add a leaflet to a wordpress-widget – see the thread here – which describes what is wanted.
sensu the options shown here: https://leafletjs.com/examples/quick-start/
i want ot add a leaflet that is created due to a request on overpass-turbo.eu –
with the gathered data i want to add the data to a wiget in wordpress – is this possible!?
well it would be awesome if i can add this data set in a leaflet on widget:
dear @gsarig i look forward to hear form you
Hello,
In the Open Street Map block, when I delete a marker (click on it, then click on the trash icon in the popup), it is the wrong one that is deleted.
In fact, it is not the selected marker that is deleted, but the oldest on the map.
For example, if I add in order a marker A, then B, then C, and I delete the C, it is the A which is deleted.
Thanks for your help.
WordPress version: 6.3.1
Plugin version: 2.4.0
Hi,
I have following ideas/suggestions, which would make this plugin even more awesome:
Hi,
Thank you for this great plugin! I love it.
I only have one question: is it possible to use it with shortcode? if yes, how?
]]>Hello, and thanks for the plugin. Really easy to use. I am in the EU and therefore I am required to ask consent from users before loading a map since the map accesses a user’s IP to provide them with the tiles. Would it be possible to self-host the tiles, or solve this problem another way? I don’t have any other such problem, and getting a cookie plugin only for OSM is unnecessary.
Thank you for your help
]]>hi there good day.
first of all – i really like you map plugin with all its awesome features:
i am working on a new project:
found a map solution in the net – that is working pretty nice – see here
see what they do – and see it here: https://netzwerkkarte.mint-ec.de/
see https://builtwith.com/?https%3a%2f%2fnetzwerkkarte.mint-ec.de%2f
the “MINT-EC Netzwerkkarte” is a Online-Tool, for schools to run digitale tools methods and with what you can exchange about projects
see profiles, maps, Event-Lists and more – get networked.
guess that there are the following technologies are working: WordPress, ember.js
well see: netzwerkkarte.mint-ec.de
i am inspired – and i think its great – can we do such thing!?
well – i can imagine that this is doable with your map-plugin!?
look forward to hear from you
]]>Plugin version: 2.0.2
ootb-openstreetmap.js:22 Uncaught URIError: URI malformed
at decodeURIComponent (<anonymous>)
at renderMap (ootb-openstreetmap.js:22:32)
at NodeList.forEach (<anonymous>)
at ootb-openstreetmap.js:7:7
at ootb-openstreetmap.js:68:3
renderMap @ ootb-openstreetmap.js:22
(anonym) @ ootb-openstreetmap.js:7
(anonym) @ ootb-openstreetmap.js:68
]]>
WordPress-Version 5.8.6
Theme: Charity Zone (Version 0.5.4)
Plugin: Out of the Block: OpenStreetMap (Version 2.0.0)
PHP-Version 7.4.33
Error-Details
==============
An Error of Type E_ERROR was found on line 20 in file web/site/wp-content/plugins/ootb-openstreetmap/includes/classes/Helper.php
Error Message: Uncaught Error: Call to undefined function OOTB\wp_json_file_decode() in web/site/wp-content/plugins/ootb-openstreetmap/includes/classes/Helper.php:20
Stack trace:
#0 web/site/wp-content/plugins/ootb-openstreetmap/includes/core.php(57): OOTB\Helper::providers()
#1 web/site/wp-includes/class-wp-hook.php(303): OOTB\Core\openstreetmap_block_init(”)
#2 web/site/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
#3 web/site/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
#4 web/site/wp-settings.php(578): do_action(‘init’)
#5 web/site/wp-config.php(96): require_once(‘/var/www/client…’)
#6 web/site/wp-load.php(50): require_once(‘/var/www/client…’)
#7 web/site/wp-admin/admin.php(34): require_once(‘/var/www/client…’)
Relocating the plugin folder away from the plugin-folder gave me access to log in again.
I was using auto-update on my installation so this was something I expected to happen some point in time. But obviously it was only happening after some days beyond the actual update.
The following auto-updates occured:
06th Dec 2022 – The GDPR Framework (Version 2.0.3 to 2.0.4)
05th Dec 2022 – Medien-Assistent (Version 3.04 to 3.05)
03rd Dec 2022 – Autoptimize (Version 3.1.3 to 3.1.4)
28th Nov 2022 – Out of the Block: OpenStreetMap (Version 1.3.5 to 2.0.0)
The first issue was triggered on 05th December a few hours after Medien-Assistent was installed when trying to login in admin page.
Admin logins are a few times a week so it does not necessarily correlate with another plugin.
I am hesitant to reinstate OOTB right now because of that issue.
I checked the plugin files for signs of tampering and they are consistent with a manual download.
thank you for your effort and great plugin (so far)
Steffen
]]>Hi,
Our websites do not show the OOTB maps any more.
I have investigated the problem and I see that the ootb-openstreetmap.js script does not find the “ootb” variable so it cannot execute properly.
Indeed, the ootb-openstreetmap.js script gets the ootb variable from the wp_localize_script PHP function, but the variable is added AFTER the script code. So the ootb-openstreetmap.js code executes and then the ootb variable is set.
The problem can be solved by wrapping the main ootb-openstreetmap.js function in a jQuery(document).ready(…) or in a setTimeout(…, 2000) or else.
It seems strange that I’m the first one having this problem though.
Could you publish a fix ?
]]>Hi.
Is it possible to get the popup always displayed and not only when the marker is clicked?
Thanks for your support.
Hi,
I’m not sure whether this issue is linked to the plugin or to the theme so I have to put it also in this area:
My “Home” page is based on the template “Front Page” of Bricksy-Theme. When I create a map there it only shows in the editor but not in the preview.
When I create a map in my test page which is based on a blank template it works correctly.
Maybe I missed anything?
Greetings,
Maria
Hello, this plugin looks great. Does this work with a directory with over 1000 listings?
]]>The string 'plugin settings'
is used twice in /dist/blocks.build.js and concatenated into strings. As the context is slightly different, it is near impossible to translate correctly. The context is also not clear to a translator who don’t know how to interpret the js code.
I would recommend that you redefine the two strings 'Heavy usage of OSM tiles is forbidden and you might want to switch to a different tile provider. Read more on the plugin settings.'
and 'Make sure that you provided a valid API key on the plugin settings.'
, and insert the rest of the link using template literals or something.
Hi Giorgos,
with php8+ the plugin works fine on the pages with a map. On the other pages there is an error message:
Warning: Trying to access array offset on value of type int in xxx/wp-content/plugins/ootb-openstreetmap/inc/Helper.class.php on line 104
With php7.4 no error messages appear.
]]>Hi there, do any shortcodes exist of your ootb-maps? I want to use shortcodes also of generated maps also in other parts of the website. thank you.
]]>who’s the path to find dataset ?
]]>Hey,
first of all thanks for your great job!
I’m possible to load the map in a site without errors.
But if I use it in a widget it’s only loaded in the back-end but not in the front-end – except if i also include the map in the front-end page.
Can you help me to use the map in a widget (only)?
thank you!
hi there!
would it be possible to upload also GPX files and visualize then the track within the OSM?
that would be a great add-on!!!
This map plugin is really great and a real pleasure to use!
I ran into an issue though: when embedding the map in a reusable block, the map show correctly in the editor, but doesn’t show at all in the page.
The <div class="ootb-openstreetmap--map" [...]></div>
is in the HTML code, and there is no error in the console.
But the JS script seems to not be loaded (it doesn’t appear in the network tab in dev tools).
If I add another map on the page (not inside a reusable block), the script is correctly loaded and the two maps show correctly.
]]>Can this plugin helps to generate new block on service type website? I want to test it for my lock service website.
]]>Thanks for the great plugin.
It does indeed work out of the box as advertised, and took me less than 1 minute to install, and 1 other minute to create a map with 9 markers, as a Gutenberg block in the backend.
Small issue though: this maps does not show completely on the frontend unless I resize my browser window (see linked page), and is not properly centered. I would have expected the zoom to be set as per either the whole set of markers, or the last zoom+position from the backend editor.
Kindly let me know how to fix this issue (tested in both Chromium and Firefox, with Ubuntu 20.04).
]]>Hey Giorgos
I installed and activated the plugin to use on a customer site.
Then went hunting for the Gutenberg block…. I did not find it.
I then went to a local dev site I have and installed and activated the plugin there. Still not able to locate the Gutenberg OpenStreeMap block. Then I happen to scroll to the bottom and noticed the WP OSM Plugin Shortcode generator…hmmm as a meta box….hmmm. Not sure I like that. I do understand as it gives a lot more space to show icons and whatever else.
BUT…. it would be a lot better if you create the Gutenberg block. So a user can add the block and see the options in the sidebar. Having logical panels for each section. The icons would perhaps be seen 18 at a time, then click to icons page 2,3,4 etc. All of them seen in a panel. Or use the toolbar with a kind of drop down panel showing a lot of icons.
Make interaction as part of the Gutenberg layout.
Ps
I added the shortcode, but it mentioned something about accepting cookies before seeing the map, so I went back to check it out again. The tabs were gone and suddenly all the icons where seen in one area. I am thinking this has to do with the newest Gutenberg plugin 9.5.2 and WordPress 5.6. As I am seeing a bit of errors here and there.
These are the errors I am seeing:
Uncaught ReferenceError: ol is not defined
at post.php?post=5&action=edit:1354
post.php?post=5&action=edit:1533 Uncaught ReferenceError: ol is not defined
at post.php?post=5&action=edit:1533
post.php?post=5&action=edit:1662 Uncaught ReferenceError: ol is not defined
at post.php?post=5&action=edit:1662
post.php?post=5&action=edit:2553 Uncaught ReferenceError: ol is not defined
at post.php?post=5&action=edit:2553
post.php?post=5&action=edit:445 Uncaught TypeError: map_ol3js_2.updateSize is not a function
at post.php?post=5&action=edit:445
at dispatch (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.6:2)
at v.handle (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.6:2)
post.php?post=5&action=edit:412 Uncaught TypeError: AddMarker_map.updateSize is not a function
at HTMLLIElement.<anonymous> (post.php?post=5&action=edit:412)
at HTMLLIElement.dispatch (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.6:2)
at HTMLLIElement.v.handle (load-scripts.php?c=1&load[chunk_0]=jquery-core,jquery-migrate,utils&ver=5.6:2)
I inserted block into custom theme I am developing based on underscores. There is an accordion block which I modified, based on atomic blocks accordion block.
Inside this block I inserted your mapping block, but it does not behave well. In the backend everything looks fine. In the frontend, only some small portion of map is loaded, and the map loads when screen is resized. Also, when map is inserted as a full block, it loads correctly.
Can you help to fix the issue?
]]>Hey
I came across your message here: https://www.facebook.com/groups/advancedwp/permalink/3509691742426348/
Here are some initial thoughts that come up as I test it.
Out of the Block: OpenStreetMap as a block name is too long. I am guessing there is a way to adjust the block name so it is not that long. It could for instance become Open Street Map Block in the Inserter Panel.
A map shows up of I believe Greece with Greek letters. Here the default could be Greece with English letters.
There are a lot of nice options in the settings sidebar!
I do wonder if it is possible to get satellite images/kinda like Google earth I believe.
It would be nice with a panel in the sidebar with Addresses. As one opens the panel one gets an overview of the addresses that one has added to the map. Here one would also be able to add additional addresses.
Changing icon. Here there could be a few thumbnail pins to choose from. So one can choose the default or something else or upload a new pin to the media library and use that.
I placed a pin. Added an address to it, and then an inline image. Got the view I wanted, and then checked the frontend. But it seemed like it showed an earlier view I had selected in the backend and not the newest.
All in all this seems to be a great plugin!
Next step is create an issue here: https://github.com/WordPress/gutenberg/issues/new/choose and suggest your plugin be added to Gutenberg..:)
1. If I place just one location, the map always defaults (centers) to Greece, only after I place a second location the map correctly defaults to the actual locations.
2. If I configure the map to either have Wide Width or Full Width, on the front end the location pins are never displayed.
Thanks for the great plugin…
]]>I love this plugin. Thank you so much.
Wondering if it supports different maps yet. I need a watercolor map such as the one from Stamen. Is it possible to build this in Mapbox and import it with the API? I am new to Mapbox, and can’t seem to figure it out. LOL