-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic map marker contents #49
Comments
Hi @frietboer Are you referring to the new feature that draws the info from the new "Location" custom field, as described here? |
No I hadn't seen that new feature yet! I was referring to the map that "syncs" locations from posts, or with the [ootb_query] shortcode. But I can image that this could be the same for the new feature. |
This request would make more sense for the new feature than the standard query. The reason is that the standard query gathers the locations from the blocks, and each post can have multiple blocks and each block, in turn, can have multiple markers, so it wouldn't make sense to override all the markers' values with the post's data. The new "Location" feature, though, only allows a single marker, and is tied to the post. So, I could perhaps look into extending its functionality to add some hook with which you could override the default output. |
Yes that would make more sense. |
Hi @frietboer Just letting you know that this has been implemented with version v.2.8.2. More specifically, two hooks have been introduced, allowing you to fully modify the content of the modal, as well as the marker's icon. You can read more details, along with examples, in the Release Notes. I'm closing this ticket as done! |
Is there a way of having the marker popup content in a dynamic map, be filled by the corresponding post title, excerpt and permalink?
The text was updated successfully, but these errors were encountered: