Page 1 of 1

Google Maps component

Posted: Thu Sep 29, 2016 3:48 pm
by WillemDH
Hello,

Is it possible to make the Google map component choose the map view instead of the satellite view by default? It seem this setting is not saved when browsing away.

Grtz

Willem

Re: Google Maps component

Posted: Thu Sep 29, 2016 4:18 pm
by mcapra
In /usr/local/nagiosxi/html/includes/components/googlemap/map.php, around line 109, the following variable is set:

Code: Select all

mapTypeId: google.maps.MapTypeId.HYBRID
Try changing it to:

Code: Select all

mapTypeId: 'roadmap'
Or removing the variable entirely:

Code: Select all

var myOptions = {
                        zoom: defZoom,
                        center: myLatlng,
                        minZoom: 2,
                        maxZoom: 20
                    }
More info:
https://developers.google.com/maps/docu ... t/maptypes

Re: Google Maps component

Posted: Fri Sep 30, 2016 11:15 am
by WillemDH
That worked for me. Thanks alot! Please close the thread.

Re: Google Maps component

Posted: Fri Sep 30, 2016 11:28 am
by dwhitfield
Glad to hear it is resolved. I am going to lock the thread. Please feel free to post again if you have you another issue. Thank you for using the Nagios forums!