There are no known issues, but that doesn’t mean that there isn’t an issue. Can I get a screenshot of your issue, or URL?
What does the shortcode look like under the map tab?
I used this
[stellar_places_map post_id=”5711″ maxzoom=”14″ width=”100%”]
@w33zy,
I believe the issue is that the map markup isn’t displayed when the page is rendered. You can see that visiting the map tab directly causes the map to render properly: https://jamaicagetawaytravels.com/product/ocho-rios-dunns-river-tour/#tab-tab-map.
The solution here would be to trigger a resize on the map and recenter it when a user clicks on the tab. However, there isn’t currently a way to do that. I’m adjusting the code currently to support a solution for this type of scenario.
Once the next plugin update is pushed out (should be version 1.0.1), just run this code after a user clicks on the map tab:
window.dispatchEvent(new Event('resize'));
That should fix the issue.
Thanks for working on a solution. I’ll wait on the update and maybe you can explain the JS some more for me. My JS is a bit weak.
@w33zy,
Sure. Essentially, this is the code you would want to make sure is loaded on that page:
jQuery('#tab-tab-map').click(function() {
window.dispatchEvent(new Event('resize'));
);
OK that seems easy enough.
Also can you implement automatic shortcode creation in a future update. Also a page in the plugin options that explains the shortcode options would be nice, like you do on the FAQ page on ww.wp.xz.cn
@w33zy… brilliant idea. We actually intend to create a shortcode generator. I’ll have to think about the best way / place to put shortcode documentation within the plugin so that you will have a quick reference. Keep the feedback coming! Thanks!
An option to set map defaults would be nice. I notice that on my locations archive page the map are zoomed in at max level, adjusting that would be helpful
@w33zy,
Again… thanks for the feedback! Another great point. I’ll have to think about the best way to handle that.