Ticket #69 (closed Feature Request: fixed)
GMaps : Map type preference support
| Reported by: | Prospere | Owned by: | max-horvath |
|---|---|---|---|
| Priority: | low | Milestone: | WifiDog Auth Server 1.0 |
| Component: | Auth server: Features | Version: | Auth Server SVN |
| Keywords: | Cc: |
Description
Google MAP doesn't contain all the map of the world ... For country like France, Google map has Satelite Map but no generic Map. The idea is to add a new preference which set the default map mode. Then when you want to display the map, the satelite map is directly displayed ..
Config.php :
// Map Type (G_MAP_TYPE, G_HYBRID_TYPE, or G_SATELLITE_TYPE) define('GMAPS_INITIAL_MAP_TYPE','G_SATELLITE_TYPE');
Hotspots_map.php
After : $script .= "hotspots_map.setInitialPosition(".GMAPS_INITIAL_LATITUDE.", ".GMAPS_ INITIAL_LONGITUDE.", ".GMAPS_INITIAL_ZOOM_LEVEL.");\n";
Add : $script .= "hotspots_map.setMapType(".GMAPS_INITIAL_MAP_TYPE.");\n";
hotspots_status_map.js
Add a new function :
HotspotsMap?.prototype.setMapType = function(map_type) {
this.map.setMapType(map_type);
}
