Google Maps component

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Google Maps component

Post 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
Last edited by dwhitfield on Fri Sep 30, 2016 11:29 am, edited 1 time in total.
Reason: marking with green check mark
Nagios XI 5.8.1
https://outsideit.net
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Google Maps component

Post 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
Former Nagios employee
https://www.mcapra.com/
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Google Maps component

Post by WillemDH »

That worked for me. Thanks alot! Please close the thread.
Nagios XI 5.8.1
https://outsideit.net
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Google Maps component

Post 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!
Locked