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
Google Maps component
Google Maps component
Last edited by dwhitfield on Fri Sep 30, 2016 11:29 am, edited 1 time in total.
Reason: marking with green check mark
Reason: marking with green check mark
Nagios XI 5.8.1
https://outsideit.net
https://outsideit.net
Re: Google Maps component
In /usr/local/nagiosxi/html/includes/components/googlemap/map.php, around line 109, the following variable is set:
Try changing it to:
Or removing the variable entirely:
More info:
https://developers.google.com/maps/docu ... t/maptypes
Code: Select all
mapTypeId: google.maps.MapTypeId.HYBRIDCode: Select all
mapTypeId: 'roadmap'Code: Select all
var myOptions = {
zoom: defZoom,
center: myLatlng,
minZoom: 2,
maxZoom: 20
}https://developers.google.com/maps/docu ... t/maptypes
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Google Maps component
That worked for me. Thanks alot! Please close the thread.
Nagios XI 5.8.1
https://outsideit.net
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
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!