Ticket #69 (closed Feature Request: fixed)

Opened 13 years ago

Last modified 12 years ago

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);

}

Change History

Changed 13 years ago by max-horvath

  • owner set to max-horvath
  • status changed from new to assigned
  • version set to Auth Server SVN
  • milestone set to WifiDog Auth Server 1.0

Already patched maxspot's WiFiDog to do that ...

Changed 13 years ago by max-horvath

  • status changed from assigned to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.