Page 1 of 1
Google Map - New Features Added
Posted: Fri May 15, 2015 9:57 pm
by briannd81
I've added 2 new features to Google Map and would like to distribute the code to anyone who's interested in using them. What is the recommended path?
- Markers Status: can be set to All or Down
- Page Refresh: can be set to 10, 30, 60 seconds or None
Both of these options can be selected via drop down as can be seen in the screenshot.
google_map_features_added.png
Re: Google Map - New Features Added
Posted: Mon May 18, 2015 9:40 am
by tmcdonald
Providing us with a diff file against the posted version might be easiest:
https://exchange.nagios.org/directory/A ... nt/details
Re: Google Map - New Features Added
Posted: Thu May 28, 2015 12:18 pm
by briannd81
I have uploaded 2 files. Please remember to rename the .txt extension to .php before use.
map2.php - This is the alternate version of map.php that provides both of these features
buildmarkers2.inc.php - Pins the "red" markers to the host devices that are down
Both should go to the same directory where the original map.php resides. I name map2.php so one may test out these features without overriding the original map.php file.
Note: I'm looking for an alternate implementation to update the markers without doing a "browser refresh". I tried calling "initialize()" method but it did NOT update the markers. Any feedback on this is greatly appreciated.
Re: Google Map - New Features Added
Posted: Thu May 28, 2015 4:19 pm
by lmiltchev
Thanks, briannd81! Our developers will be looking into the code that you submitted.