\MapUtil
Synopsis
class MapUtil
{
- // members
- protected static $api_key;
- protected static integer $instances = 0;
- public static string $map_width = '100%';
- public static string $map_height = '400px';
- public static string $div_id = 'google_map';
- public static bool $automatic_center = true;
- public static bool $hide_marker = false;
- public static bool $map_type = 'google.maps.MapTypeId.ROADMAP';
- public static string $center = 'Paris, France';
- private static boolean $map_already_rendered = false;
- private static $allow_full_screen = NULL;
- // methods
- public static void reset()
- public static void set_api_key()
- public static void set_map_already_rendered()
- public static void get_map_already_rendered()
- public static void set_map_size()
- public static void set_map_type()
- public static void set_center()
- public static MapAPI instance()
- public static string sanitize()
- public static MapAPI get_map()
- private static bool ChooseToAddDataobject()
Members
private
- $allow_full_screen
- $map_already_rendered
protected
- $api_key — string
- $instances — int
public
Methods
private
- ChooseToAddDataobject() — Determines if the current DataObject should be included to the map Checks if it has Mappable interface implemented If it has MapExtension included, the value of MapPinEdited is also checked.
public
- get_map() — Creates a new {@link GoogleMapsAPI} object loaded with the default settings and places all of the items in a {@link SS_List} e.g. {@link DataList} or {@link ArrayList} on the map.
- get_map_already_rendered()
- instance() — Get a new GoogleMapAPI object and load it with the default settings.
- reset()
- sanitize() — Sanitize a string of HTML content for safe inclusion in the JavaScript for a Google Map.
- set_api_key() — Set the API key for Google Maps.
- set_center() — Set the center of the gmap (an address, using text geocoder query).
- set_map_already_rendered()
- set_map_size() — Set the default size of the map.
- set_map_type() — FIXME - NOT USED? Set the type of the gmap.