Feature Proposal: Add hooks to specify behavior with polygons

New home Forums Pro Add-on Feature Proposal: Add hooks to specify behavior with polygons

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #34799
    KZeni
    Member

    I have a site where I’m using polygons for state shapes and I wanted the polygons to show different corresponding data depending on the state that’s currently hovered over.

    What I’ve done to make this work:
    I’ve added: https://gist.github.com/KZeni/e98c464c62172f9d1c287a0750570e24
    right after the: https://gist.github.com/KZeni/eccf510c5aff287e9422bbc437110c61
    function in the js/core.js file (which is then minified for the version that’s served publicly).

    This made it so hovering over each of the polygons had the corresponding Tabby Responsive Tab (3rd party plugin) toggled to show its relevant data.

    I realize my implementation here is rather specific to my use case, but I’d think that there could be some way to have it so a hook / function is available for other developers to tap into for augmenting behaviors like this without needing to create custom edits to the core.js files of the plugin. That is, unless this is already possible and I’m just not looking at the right spot, of course!

    Thanks for the great plugin!

    #34808
    SupportTeam
    Moderator

    Hi there,

    Thank you for your kind words and time. We’ll look through your code and may use it in future release. Please note that we’re working on new plugin release v7 with tone of new features which should be released soon.

    Thank you for your time in this.

    Best regards,
    Jarek

    #34852
    KZeni
    Member

    Thanks!

    #36449
    KZeni
    Member

    Okay, version 7 is out. Just want to give this another mention for potential inclusion in the new version’s codebase (didn’t see it listed anywhere on https://trello.com/b/Brsxoyzo/wp-google-maps).

    #36467
    SupportTeam
    Moderator

    Hi there,

    We’ve added a lot of features in our new plugin release and missed this feature. I’m sorry for this. We’ll take a look again at your work and discuss it if we can implement it to our V7 version.

    Thank you for your time.

    Best

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.