GeoDirectory SupportRemove "Map/Satellite" from Home Page Map – GeoDirectory Support https://wpgeodirectory.com/support/topic/remove-mapsatellite-from-home-page-map/feed Sun, 22 Feb 2026 17:56:25 +0000 http://bbpress.org/?v=2.5.14-6684 en-US https://wpgeodirectory.com/support/topic/remove-mapsatellite-from-home-page-map/#post-46267 <![CDATA[Remove "Map/Satellite" from Home Page Map]]> https://wpgeodirectory.com/support/topic/remove-mapsatellite-from-home-page-map/#post-46267 Mon, 20 Jul 2015 17:37:40 +0000 Dylan I searched for this but did not find any other posts discussing this.

I’m trying to remove the “Map/Satellite” map style toggle button within the Google Map at the top of the Home Page. It’s a very simple switch, which only requires changing “mapTypeControl:!0” to “mapTypeControl:!1” on line 8 of “goMap.min.js” which is nested within geodirectory -> geodirectory-assets -> js.

Is there a simple toggle within the plugin to change this that I missed? If not, how can I modify the javascript, so it won’t be overwritten when the next plugin update is made?

Thanks ahead of time for your help.

]]>
https://wpgeodirectory.com/support/topic/remove-mapsatellite-from-home-page-map/#post-46284 <![CDATA[Reply To: Remove "Map/Satellite" from Home Page Map]]> https://wpgeodirectory.com/support/topic/remove-mapsatellite-from-home-page-map/#post-46284 Mon, 20 Jul 2015 19:11:50 +0000 Paolo Hi,

I know for sure there isn’t an option for this.

I think the only way would be to unenqueue that script and enqueue the modified version from within the theme.

Not 100% sure this is feasible though, so i need to ask to Stiofan to let us know.

I’ve flagged this for him.

Thanks

]]>
https://wpgeodirectory.com/support/topic/remove-mapsatellite-from-home-page-map/#post-46291 <![CDATA[Reply To: Remove "Map/Satellite" from Home Page Map]]> https://wpgeodirectory.com/support/topic/remove-mapsatellite-from-home-page-map/#post-46291 Mon, 20 Jul 2015 20:39:25 +0000 Dylan Paolo,

Thanks for looking into this.

It would make a great checkbox option in the settings. We’re removing it as well as the Street View “Orange Man” from the map on our mobile layout, because at that map size, we need as much of the map viewable as possible.

]]>
https://wpgeodirectory.com/support/topic/remove-mapsatellite-from-home-page-map/#post-46387 <![CDATA[Reply To: Remove "Map/Satellite" from Home Page Map]]> https://wpgeodirectory.com/support/topic/remove-mapsatellite-from-home-page-map/#post-46387 Tue, 21 Jul 2015 16:10:09 +0000 Stiofan O'Connor Hi Dylan,

There is a hook to do this, i have made an example for you here: https://gist.github.com/Stiofan/2ddaebd31553f476bc59

You would add this code to your theme functions.php file.
The example removes the map type options but you can also do it for streetview control by adding another option below the current one

$options['streetViewControl']=false;

These are per map so you will have to find the ID of the map you want to affect by using the inspection tool or viewing the source code, the example should keep you right.

Thanks,

Stiofan

]]>
https://wpgeodirectory.com/support/topic/remove-mapsatellite-from-home-page-map/#post-47009 <![CDATA[Reply To: Remove "Map/Satellite" from Home Page Map]]> https://wpgeodirectory.com/support/topic/remove-mapsatellite-from-home-page-map/#post-47009 Sun, 26 Jul 2015 19:07:18 +0000 Dylan Stiofan,

You’re awesome. This worked perfectly. Thanks for the quick help on this!

]]>