• Resolved thomaslhomme

    (@thomaslhomme)


    Hello,

    I am a premium user and i don’t understand why it doesn’t work.

    here is my blog: https://www.rocktheworld.fr

    As you can see, i put my map on the header with a
    <?php echo do_shortcode('[codepeople-post-map cat=-1'); ?>
    I want to choose the zoom level and if it can be autozoom so i use
    <?php echo do_shortcode('[codepeople-post-map cat=-1 dynamic_zoom="0" zoom="15"]'); ?>
    or
    <?php echo do_shortcode('[codepeople-post-map cat=-1 dynamic_zoom=0 zoom=15]'); ?>

    I can’t see any modification, none of my post have a “specific map settings” and also, even modifications on the main configuration doesnt do anything (for zoom and dynamiczoom, the rest is okay)

    Thank you for your help!

    https://www.ads-software.com/plugins/codepeople-post-map/

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

    (@codepeople)

    Hi,

    The issue is very simple. If you have checked the option to draw the routes, the zoom is adjusted dynamically.

    If you want preserve the zoom with the routes, follow the steps below:

    1. Open the cpm.js file, located in “/wp-content/plugins/codepeople-post-map/js/cpm.js”, with the text editor your choice.

    2. Go to the snippet of code:

    dd.setDirections(response);

    and paste the following line before:

    dd.setOptions({preserveViewport:true});

    and that’s all.

    I’ll include the line of code in the public version of plugin.

    Best regards.

    Thread Starter thomaslhomme

    (@thomaslhomme)

    It’s work!

    Thank you, but now…the problem is that is center in Iran…
    Is it possible to make it point on my last posted point or on the average of those points?

    Thanks you for your answers.

    Thread Starter thomaslhomme

    (@thomaslhomme)

    Wooooops!

    My fault, forget about it! My mistake i had a hidden point…

    Thanks you

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with autozoom and zoom’ is closed to new replies.