Hello @alessandrobarbetti,
You simply should insert the map’s shortcode into the post with the attribute: defaultpost=”<post id>”. The attribute: defaultpost with the post’s id, indicates what should be the infowindow to display by default, and where to center the map, for exmple:
[codepeople-post-map defaultpost="396"]
Best regards.
Sorry I wasn’t clear in explanation of the problem…
The map is already loaded in every page on an absolute layer with all the points loaded, activable via a map icon located on top right corner of the page.
the way that u suggest could be implemented reloading the page, passing the post id via get variable and after load fade in the map with defaultpost.
I’d prefer not reload the page cause data are already there and I just need to set map position on the right location and trigger the infowindow via javascript.
is there a way to tell the map “scrollToPosition” and “openInfoWindow” via javascript?
Hello,
In reality your page is being reloaded every time a post is visited, so, you can generate the shortcode depending of the post active. A different solution would require customize your copy of the plugin to expose the list of points and make them accessible from outside the plugin.
Best regards.