• digbymaass

    (@digbymaass)


    Presumably gmap’s API has changed, and added a full screen button, as I can also see it on the plugin’s home page maps. Commenting there seems to have been disabled.

    To get rid of it (it doesn’t fill the gpx trace to the bounds) insert this into the plugin’s CSS:

    img.gm-fullscreen-control {
    display: none !important;
    }

    I know you shouldn’t edit core files but there’s no likelihood this plugin will be updated. Otherwise make a .css file and load it via functions.php

    ATLsoft if you are listening – please don’t abandon this great plugin

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter digbymaass

    (@digbymaass)

    However this still leaves the ‘hit’ area. Goolemaps API allows control over hiding the fullscreen control. You need to set fullscreenControl: to false.

    Don’t know where just now though.

    Thread Starter digbymaass

    (@digbymaass)

    Ok forget the css hack.
    This works, though there may be a better place to insert fullscreenControl:false

    In js/gmap_v3_init.js at lines 140 and 149 after mapTypeControl: true, add fullscreenControl: false, as below:

    if(maps > 1){
    	mapTypeControlOptions = {mapTypeIds: mTypes, style:google.maps.MapTypeControlStyle.DROPDOWN_MENU};
    	mapOptions = {
    		mapTypeControl: true,
    		fullscreenControl:false,
    		zoomControlOptions: {
    			style: google.maps.ZoomControlStyle.SMALL
    		},
    			mapTypeControlOptions:mapTypeControlOptions
    		};
    	}
    	else{
    	mapTypeControlOptions = {mapTypeIds: mTypes};
    	mapOptions = {
    		mapTypeControl: false,
    		fullscreenControl:false,
    		zoomControlOptions: {
    		        style: google.maps.ZoomControlStyle.SMALL
    		},
    			mapTypeControlOptions:mapTypeControlOptions
    		};
    	}
    • This reply was modified 7 years ago by digbymaass.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Unwanted extra full screen button’ is closed to new replies.