• namtrok

    (@namtrok)


    I did what I shouldn’t do and edited the plugin to change the icon.

    At line 358 of includes/class-wp-quadratum-frontend.php I added:
    $icon_url = 'http://homealongtheway.com/wp-content/plugins/wp-quadratum/images/g-pin-icon.png';
    I’m also using
    $icon_url = 'http://homealongtheway.com/wp-content/plugins/wp-quadratum/images/g-pin-icon2.png';
    as an attempt to fix the problem but it’s not working.

    When I display the map (via widget OR shortcode) with any zoom level of lower than 8 the icon is not in the right place at all. From what I can tell it’s too far to the right and down.

    you can see it in action here: http://homealongtheway.com/blog/ the icon shows up in the middle of Michigan. Try zooming in by double clicking on the map. As you do the icon moves up and to the left. (try zooming in right where the icon is pointing on page load and the icon eventually disappears from the screen.)

    I know I shouldn’t edit the plugin and instead should use a hook, but I couldn’t find a hook for the icon(s) and I’d like to have a hook for the placement of the icon.

    For now as a temporary fix can you tell me where in the file the positioning of the icon is set so I can change it to be center of the bottom, instead of top left?

    And also can you add the hook/setting for this in future versions?

    Thanks!

    https://wordpress.org/plugins/wp-quadratum/

  • The topic ‘Zoomed out the Icon position is wrong’ is closed to new replies.