• Resolved R. Fuchs

    (@ronaldfuchs2016)


    Hi codepeople!

    I want to set the GM Fullscreen Control in the upper right corner of the map by defalut.
    I tried to set it in the function.php and in the cpm.js – but nothing!

    What am I doing wrong?
    Is there a setting in the plugin or is it necessary to code this feature?
    If yes, where i have to search for?

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

    (@codepeople)

    Hello,

    My apologies for the delay. The Fullscreen Control is enabled through the “Enable zoom/pan controls” checkbox in the settings page of the plugin. Please, press the menu option: “Settings/Google Maps CP”, tick the checkbox, and press the “Update Settings button”.

    Best regards.

    Thread Starter R. Fuchs

    (@ronaldfuchs2016)

    This setting has no influence on the result for my map.

    The Google API says: The Fullscreen control offers the option to open the map in fullscreen mode. This control is enabled by default on mobile devices, and is disabled by default on desktop. Note: iOS doesn’t support the fullscreen feature. The fullscreen control is therefore not visible on iOS devices.

    Regardless of the settings so it works. The maps shows the fullscreenSelector on a mobile device, but not on a desktop browser (firefox, chrome, msie).

    I want anable this Selector for all cases, like here: https://www.wpgmaps.com/demo/list-markers/

    My map you can find here: https://hhweb.de/pinnwand/
    WP 4.8 with Catchbase Theme

    Best regards.

    Thread Starter R. Fuchs

    (@ronaldfuchs2016)

    more informations found:

    the fullscreenControl is visible in Streetview but neither in roadmap nor satellite view

    in the Firefox Codeinspector the related div tag is shown in faint fontcolor (see screenshot)
    Screenshot, Codeinspector

    • This reply was modified 7 years, 9 months ago by R. Fuchs.
    Plugin Author codepeople

    (@codepeople)

    Hello,

    Please, follow the steps below:

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

    2. Go to the piece of code:

    // Show / Hide controls
    panControl: me.data.zoompancontrol,
    scaleControl: me.data.scalecontrol,
    zoomControl: me.data.zoompancontrol,
    mapTypeControl: me.data.typecontrol,
    streetViewControl: me.data.streetviewcontrol,
    scrollwheel: me.data.mousewheel

    and edit it as follows:

    // Show / Hide controls
    panControl: me.data.zoompancontrol,
    scaleControl: me.data.scalecontrol,
    zoomControl: me.data.zoompancontrol,
    mapTypeControl: me.data.typecontrol,
    streetViewControl: me.data.streetviewcontrol,
    fullscreenControl: true,
    scrollwheel: me.data.mousewheel

    3. Finally, clear the browser’s cache after edit the online files.

    Best regards.

    Thread Starter R. Fuchs

    (@ronaldfuchs2016)

    Yes, it works – you are the best!

    Thank you very much.
    Ronald

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘fullscreenControl: true’ is closed to new replies.