\GoogleMap
This is the basic engine for the Google Map
There are three options
1. setAddress: set address
2. setPageDataObjectSet: set Page Data List (who have geo points as children)
3. setPoints: set Points Directly Class = GoogleMapLocationsObject
Extras include:
1. setTitleOfMap: set title
2. setWhereStatementDescription: set where statement
3. setFilteredClassNameArray: set an array of classnames
The static configs are explained in googlemap/_config/googlemap.yml.example
Synopsis
class GoogleMap
extends ViewableData
{
- // members
- private static string $api_version = '3';
- private static string $google_map_api_key = "";
- private static float $default_latitude = 0.000000001;
- private static float $default_longitude = 0.0000000001;
- private static integer $default_zoom = 2;
- private static integer $google_map_width = 0;
- private static integer $google_map_height = 0;
- private static integer $map_type_default = 0;
- private static integer $view_finder_size = 100;
- private static boolean $map_add_type_control = false;
- private static integer $map_control_size_one_to_three = 3;
- private static integer $map_scale_info_size_in_pixels = 100;
- private static string $default_title = "";
- private static string $default_where_statement_description = "";
- private static boolean $no_status_at_all = true;
- private static boolean $add_kml_link = false;
- private static boolean $hidden_layers_removed_from_list = false;
- private static boolean $change_page_title = false;
- private static integer $number_of_items_before_showing_list = 1;
- private static string $main_div_id = "GoogleMapDiv";
- private static string $title_div_id = "";
- private static string $side_bar_div_id = "";
- private static string $drop_down_div_id = "";
- private static string $layer_list_div_id = "";
- private static string $directions_div_id = "";
- private static string $status_div_id = "";
- private static string $info_window_options = "{maxWidth:280, zoomLevel:17, mapTypeId: google.maps.MapTypeId.HYBRID}";
- private static boolean $add_antipodean = false;
- private static boolean $add_directions = false;
- private static boolean $add_current_address_finder_in_marker = false;
- private static boolean $add_zoom_in_button = true;
- private static string $ajax_info_window_text = "View Details";
- private static boolean $add_points_to_map = false;
- private static string $add_delete_marker_button = "";
- private static string $marker_options = "{bouncy:true,title: \"click me\"}";
- private static boolean $preload_images = false;
- private static string $default_icon_url = "";
- private static string $icon_folder = "/googlemap/images/icons/";
- private static integer $icon_width = 20;
- private static integer $icon_height = 34;
- private static string $icon_extension = "png";
- private static integer $icon_max_count = 12;
- private static string $line_colour = "#000";
- private static integer $line_width = 12;
- private static float $line_opacity = 0.5;
- private static string $fill_colour = "#ffccff";
- private static float $fill_opacity = 0.5;
- private static string $poly_icon = "";
- private static string $static_map_settings = "maptype=roadmap";
- private static string $static_icon = "";
- private static boolean $save_static_map_locally = false;
- private static boolean $add_address_finder = false;
- private static string $default_country_code = "nz";
- private static integer $number_shown_in_around_me = 7;
- private static integer $max_radius_for_show_around_me = 20000;
- private static string $style_sheet_url = "";
- private static string $locale_for_results = "en_NZ";
- private static string $lng_form_field_id = "";
- private static string $lat_form_field_id = "";
- protected String $myMapFunctionName = "GMO";
- protected string $titleOfMap = "";
- protected string $noDataPointsMessage = "";
- protected ArrayList $processedDataPointsForTemplate = NULL;
- protected string $dataPointsXML = '';
- protected ArrayList $extraLayers = NULL;
- protected Array $linksForData = ;
- protected String $address = "";
- protected DataList $points = NULL;
- protected String $whereStatementDescription = "";
- protected Array $filteredClassNameArray = ;
- protected String $updateServerUrlAddressSearchPoint = "/googlemap/showaroundmexml/";
- protected String $updateServerUrlDragend = "";
- private static Boolean $_includes_are_done = false;
- // methods
- public String Link()
- public void setMyMapFunctionName()
- public void MyMapFunctionName()
- public void MyInstanceName()
- public void getMyMapFunctionName()
- public void setTitleOfMap()
- public void TitleOfMap()
- public void getTitleOfMap()
- public void setNoDataPointsMessage()
- public void NoDataPointsMessage()
- public void getNoDataPointsMessage()
- public string GoogleMapDivID()
- public Int GoogleMapWidth()
- public Int GoogleMapHeight()
- public Boolean AddAddressFinder()
- public Boolean CanEdit()
- public String TitleDivID()
- public String SideBarDivId()
- public String DropDownDivId()
- public String LayerListDivId()
- public String DirectionsDivId()
- public String StatusDivId()
- public void AllowAddPointsToMap()
- public void setProcessedDataPointsForTemplate()
- public void ProcessedDataPointsForTemplate()
- public void getProcessedDataPointsForTemplate()
- protected void DataPointsXML()
- protected void getDataPointsXML()
- public void setExtraLayer()
- public void getExtraLayers()
- public void addExtraLayer()
- public ArrayList AllExtraLayers()
- public void setLinksForData()
- public void getLinksForData()
- public void addLayer()
- public void setAddress()
- public void getAddress()
- public void setPageDataObjectSet()
- public void setPoints()
- public void getPoints()
- public void setWhereStatementDescription()
- public void getWhereStatementDescription()
- public void setFilteredClassNameArray()
- public void getFilteredClassNameArray()
- public void setUpdateServerUrlAddressSearchPoint()
- public void getUpdateServerURLAddressSearchPoint()
- public void setUpdateServerUrlDragend()
- public void getUpdateServerUrlDragend()
- public void loadGoogleMap()
- protected ArrayList orderItemsByLatitude()
- public Int getPointCount()
- public Boolean EnoughPointsForAList()
- public Boolean createDataPoints()
- protected String createJavascript()
- protected string showFalseOrTrue()
- protected void loadDefaults()
Hierarchy
Extends
- ViewableData
Members
private
- $_includes_are_done
—
Boolean
this is a hack to avoid having multiple includes - $add_address_finder
- $add_antipodean
- $add_current_address_finder_in_marker
- $add_directions
- $add_kml_link
- $add_points_to_map
- $ajax_info_window_text
- $api_version
- $change_page_title
- $default_country_code
- $default_icon_url
- $default_latitude
- $default_longitude
- $default_title
- $default_where_statement_description
- $default_zoom
- $directions_div_id
- $drop_down_div_id
- $fill_colour
- $fill_opacity
- $google_map_api_key
- $google_map_height
- $google_map_width
- $icon_extension
- $icon_folder
- $icon_height
- $icon_max_count
- $icon_width
- $info_window_options
- $lat_form_field_id
- $layer_list_div_id
- $line_colour
- $line_opacity
- $line_width
- $lng_form_field_id
- $locale_for_results
- $main_div_id
- $map_add_type_control
- $map_control_size_one_to_three
- $map_scale_info_size_in_pixels
- $map_type_default
- $marker_options
- $max_radius_for_show_around_me
- $no_status_at_all
- $number_of_items_before_showing_list
- $number_shown_in_around_me
- $poly_icon
- $preload_images
- $save_static_map_locally
- $side_bar_div_id
- $static_icon
- $static_map_settings
- $status_div_id
- $style_sheet_url
- $title_div_id
- $view_finder_size
protected
- $address
—
String
address being searched for - $dataPointsXML — string
- $extraLayers — ArrayList
- $filteredClassNameArray
—
Array
filter for class names - $linksForData — Array
- $myMapFunctionName
—
String
function name for map... - $noDataPointsMessage
—
string
title of map - $points — DataList
- $processedDataPointsForTemplate — ArrayList
- $titleOfMap
—
string
title of map - $updateServerUrlAddressSearchPoint — String
- $updateServerUrlDragend — String
- $whereStatementDescription
—
String
a description of how the points were selected ...
Methods
protected
- DataPointsXML()
- createJavascript()
- getDataPointsXML()
- loadDefaults() — load some defaults
- orderItemsByLatitude() — sorts points by Latitude
- showFalseOrTrue() — turns 0 into false and 1 into true
public
- AddAddressFinder()
- AllExtraLayers()
- AllowAddPointsToMap()
- CanEdit()
- DirectionsDivId()
- DropDownDivId()
- EnoughPointsForAList()
- GoogleMapDivID() — used for static and non-static maps, hence defined only once.
- GoogleMapHeight() — used for static and non-static maps, hence defined only once.
- GoogleMapWidth() — used for static and non-static maps, hence defined only once.
- LayerListDivId()
- Link()
- MyInstanceName()
- MyMapFunctionName()
- NoDataPointsMessage()
- ProcessedDataPointsForTemplate()
- SideBarDivId()
- StatusDivId()
- TitleDivID()
- TitleOfMap()
- addExtraLayer()
- addLayer()
- createDataPoints() — must be public does not return the datapoints XML but loads it into variables...
- getAddress()
- getExtraLayers()
- getFilteredClassNameArray()
- getLinksForData()
- getMyMapFunctionName()
- getNoDataPointsMessage()
- getPointCount()
- getPoints()
- getProcessedDataPointsForTemplate()
- getTitleOfMap()
- getUpdateServerURLAddressSearchPoint()
- getUpdateServerUrlDragend()
- getWhereStatementDescription()
- loadGoogleMap()
- setAddress()
- setExtraLayer()
- setFilteredClassNameArray()
- setLinksForData()
- setMyMapFunctionName()
- setNoDataPointsMessage()
- setPageDataObjectSet() — sets the list of points through a list of parent pages affected variable is: points
- setPoints()
- setProcessedDataPointsForTemplate()
- setTitleOfMap()
- setUpdateServerUrlAddressSearchPoint()
- setUpdateServerUrlDragend()
- setWhereStatementDescription()