mapster
Forum Replies Created
-
Forum: Plugins
In reply to: [Mapster WP Maps] Not show after last update custom post typeOK, so it’s fixed? Thanks!
Forum: Plugins
In reply to: [Mapster WP Maps] Not show after last update custom post typeHello, I don’t believe the plugin actually uses any of the endpoint you list there. All the endpoints for the plugin are at a custom endpoint, namely, wp/v2/mapster-wp-maps (and then a bunch of custom endpoints created in /admin/api/class-mapster-wordpress-maps-api.php). However it’s possible that some kind of internal logic is blocking fetching post types or permissions based on the other plugins you have installed…
This is a difficult one to help you with. TO confirm, the plugin works fine when you don’t have the user blocking plugin also installed?
Forum: Plugins
In reply to: [Mapster WP Maps] Not show after last update custom post typeHi there! So if I understand correctly, you are blocking all access to wp-json to prevent anonymous users from signing up? It should also be possible to do that via the WP Admin. However, if you’re using this plugin … I don’t think this filter that you posted will be able to validate if it’s the Mapster plugin or not for the request. You need a way to filter the endpoint being queried, not just the final result — this filter only provides the final result where you can check if a user is valid or not.
Forum: Plugins
In reply to: [Mapster WP Maps] Not show after last update custom post typeYes, it’s victor@mapster.me
Forum: Plugins
In reply to: [Mapster WP Maps] Not show after last update custom post typeHello! Can you give the link to the site where you’re trying to show the map, so I can check if there are any errors on the front end? Thanks, and sorry about the issues!
Forum: Plugins
In reply to: [Mapster WP Maps] Trying to access array offset on value of type nullGreat catch. It looks like, on that line, I failed to do the initial check for the variable being defined. I’ve added this into the plugin for the next version, which should be released in the next day or so. Really appreciate the message and fix!
Forum: Plugins
In reply to: [Mapster WP Maps] Show map for each city ?Marking as resolved since I have not heard more.
Forum: Plugins
In reply to: [Mapster WP Maps] Show map for each city ?Hi, thanks for your message. You will have to implement custom code using the Developer Hooks (https://wpmaps-docs.mapster.me/for-developers/javascript-hooks) in order to create a functionality like this tied to external user choices from a dropdown or another field. Another option would be to make multiple maps, with Frankfurt locations on one and Berlin on another, and redirect the user to the right map after they make their choice.
Hope that helps!
Forum: Plugins
In reply to: [Mapster WP Maps] Map stuck loadingThis issue has been solved. In this case, one of the points being loaded onto the map was missing coordinates. I’m adding an alert that will show on the frontend when this is the case, which will be present in the next version, but otherwise if you have this issue, verify that all your points are correct!
Forum: Plugins
In reply to: [Mapster WP Maps] Map stuck loadingHey there! Sorry you’re having some trouble. It looks like something related to popups, but I can’t verify perfectly. To provide better support, do you mind emailing victor@mapster.me ? Thanks.
Forum: Plugins
In reply to: [Mapster WP Maps] Popup automatically openedAfter following up directly, this bug was resolved in 1.2.17!
Forum: Plugins
In reply to: [Mapster WP Maps] Creating javascript hook when using new full site editingHello! First off thanks for using the plugin, hope it’s working nicely for you.
The “mwm” is defined when the Mapster scripts start up, which is basically once they are loaded onto the page (they have a dependency on jQuery and then some internal dependencies, such as loading the Mapbox library and so on). WordPress can be tough in terms of knowing exactly which scripts are loading before which other scripts, especially when you’re using plugins like you described that are inserting scripts at different places.
You’re probably safe if you wait for the jQuery loading event before calling
mwm. If you’re not sure, safest to callwindow.mwmsince it’s defined globally. However, your solution also works great — basically using some kind of setInterval to check if window.mwm is defined before doing your custom scripts. I think you probably have it figured out!Let me know if you need any more help.
Forum: Plugins
In reply to: [Mapster WP Maps] Popup automatically openedHi there, in my local tests everything appears to be working. Can you email us at victor@mapster.me so we can provide more specific support and a beta version? Thanks!
Forum: Plugins
In reply to: [Mapster WP Maps] Popup automatically openedHi there, thanks for the site link! Everything looks good, things look configured correctly. There was a bug with this recently that was fixed, can I ask what version of the plugin you have installed? If it’s not the latest, try updating it to the latest and reload the page. If it is the latest, then please let me know and I’ll be sure to run some more tests right away.
Forum: Plugins
In reply to: [Mapster WP Maps] Maps showing height 400pxDid you need any more help with this issue?