Support » Plugin: Google Maps CP » Set minZoom / maxZoom

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople

    (@codepeople)

    Hi,

    In this case you should edit the cpm.js file, located in “/wp-content/plugins/codepeople-post-map/js/cpm.js”, like follow:

    1. Open the cpm.js file in the text editor your choice.

    2. Go to the snippet of code:

    me.map = new google.maps.Map( me.map_container[ 0 ], {
    zoom: me.data.zoom,

    and insert two new parameters: minZoom, maxZoom. For example, if you want allow adjust the zoom between 6 and 11

    me.map = new google.maps.Map( me.map_container[ 0 ], {
    zoom: me.data.zoom,
    minZoom:6,
    maxZoom:11,

    Tip: Remember to clear the browser’s cache after modify the online files.

    Best regards.

    PER-FECT !

    Thank you very much !

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Set minZoom / maxZoom’ is closed to new replies.