Your address will show here +12 34 56 78

Home Forums WP RESIDENCE – Real Estate WordPress Theme FORUM Zoom level Google Map Search

This topic contains 3 replies, has 3 voices, and was last updated by  sinclair.realty 2 years, 10 months ago.

  • Author
    Posts
  • #98304

    MitchAnna

    When searching for a place via ‘Search Google Maps’ (e.g. lokeren) a new Map appears that is zoomed at street level of the searched area (lokeren). Where do I manage the zoom-level for that to get a zoomed out view? I tried to change the setting ’17’ in google_map_submit.js but no change.

    Starting v 1.07 this applies

    I went into file: /wp-content/themes/wpresidence/js/google_js/mapfunctions.js

    and changed the “map.setZoom” on line 382 from a default of (15) to (10) and that fixed my issue.

    Here is lines 381 & 382 of the code I found and changed.
    {map.fitBounds(bounds);
    map.setZoom(10);

    • This topic was modified 2 years, 9 months ago by  Anna.
  • #99518

    Anna
    Keymaster

    Hi Mitch

    This zoom for the search over map feature is not implemented yet. We found a solution and we’ll add in 1.06 release (next version).

    Thank you
    Anna

  • #101309

    sinclair.realty
    Participant

    I have 1.07 release and I don’t see where to make this change. Where do you make this change?

  • #101310

    sinclair.realty
    Participant

    fyi: I went into file: /wp-content/themes/wpresidence/js/google_js/mapfunctions.js

    and changed the “map.setZoom” on line 382 from a default of (15) to (10) and that fixed my issue.

    Here is lines 381 & 382 of the code I found and changed.
    {map.fitBounds(bounds);
    map.setZoom(10);

You must be logged in to reply to this topic.