Remove/reduce visibility of polygon border

New home Forums Pro Add-on General queries Remove/reduce visibility of polygon border

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #26524

    Hi, I can remove/reduce visibility of polygon border in resting state but not in rollover. is there any way to remove it completely? I’ve got to join up multiple areas and don’t want the connection visible. See attached screenshot.
    Regards,
    Bryan

    Attachments:
    You must be logged in to view attached files.
    #26526
    Perry
    Moderator

    Hi Bryan,

    Are you using WP Google Maps Basic or do you have the Pro add-on?

    Thank you

    #26527

    Pro. I can dig out my license code if it helps.

    #26528
    Perry
    Moderator

    Hi Bryan,

    No that’s fine, can you please direct me to your site though? You should definitely be able to set the opacity to zero on the hover settings, there must be something else going on

    Thank you

    #26529

    The site is still in development so I can’t send you the link but the options are just missing that field. See attached screenshot.

    Attachments:
    You must be logged in to view attached files.
    #26531
    Perry
    Moderator

    Hi Bryan,

    I see what you mean

    Can you please open /wp-content/plugins/wp-google-maps-pro/js/core.js and go to around line 3128, inside the add_polygon function

    You’ll see the following code:

    google.maps.event.addListener(WPGM_Path_Polygon[polygonid], "mouseover", function(event) {
                 this.setOptions({fillColor: "#"+tmp_data['ohfillcolor']});
                 this.setOptions({fillOpacity: tmp_data['ohopacity']});
                 this.setOptions({strokeColor: "#"+tmp_data['ohlinecolor']});
                 this.setOptions({strokeWeight: 2});
                 this.setOptions({strokeOpacity: 0.9});
           });

    Can you please change that to

    google.maps.event.addListener(WPGM_Path_Polygon[polygonid], "mouseover", function(event) {
                 this.setOptions({fillColor: "#"+tmp_data['ohfillcolor']});
                 this.setOptions({fillOpacity: tmp_data['ohopacity']});
                 this.setOptions({strokeColor: "#"+tmp_data['ohlinecolor']});
                 this.setOptions({strokeWeight: 2});
           });

    Eg. Delete the line that says strokeOpacity: 0.9

    Please note this is a quick workaround and will affect every map on your site, we can tweak it if that’s unacceptable.

    I’m going to add a note to include “Hover line opacity” in the next version, so thanks for bringing this to our attention!

    Is there anything else I can help you with?

    #26536

    Great, thanks!

    #26578
    Perry
    Moderator

    Hi Bryan,

    My pleasure!

    If there’s anything else I can help you with please feel free to ask

    Thank you
    – Perry (WP Google Maps – Support)

    #27370
    Perry
    Moderator
    This reply has been marked as private.
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.