This file will be optimized and embedded in the HTML that is returned for a meeting search map specification. More...
Functions | |
| function | CreateCenterMarker (in_point) |
| This creates the central marker on the map. | |
| function | MakeSmallMap (in_lat, in_lng, in_zoom, in_disable_multi_zoom) |
| This makes the small map for the basic search. The map does not display any markers or overlays, and just allows the visitor to click anywhere. When they click, they will be either taken to the large, full-page map, or a list. | |
| function | DragEnd () |
| This redraws the circle, and starts a new AJAX search. | |
| function | ZoomEnd () |
| This redraws the circle, and starts a new AJAX search. | |
| function | DragStart (overlay, in_point) |
| This is called as a drag of the marker starts. | |
| function | SmallMapClicked (overlay, in_point) |
| This is called when the visitor clicks inside the map, and will direct them to the main map. | |
| function | ToggleMapVisibility (in_hide) |
| This function will toggle the basic search between the text input and the map. | |
| function | DisplaySearchSpecification (in_spec, in_type) |
| This function shows or hides the advanced search div. | |
| function | CreateCircularOverlay () |
| This creates a translucent circular overlay that represents the radius of the search. | |
| function | ClearCircularOverlay () |
| This clears the circular overlay. | |
| function | ServiceBodyCheckboxChanged (in_dom_id) |
| This function is called whenever one of the Service Body checkboxes changes value. If there are dependents, then they are all changed to match this one. | |
| function | GetDependentNodes (in_dom_id, in_child_nodes) |
| Traverses the DOM tree, and returns an array of all the elements with IDs that contain this element's ID. | |
| function | ShowThrobber () |
| Hides the main form, and shows the throbber. Call this when you submit. | |
| function | HideThrobber () |
| Reverses the above. | |
| function | WhereAmI_Fail_Final () |
| function | WhereAmI_CallBack (in_position) |
| function | WhereAmI () |
| function | WhereAmI_TryAgain_Google () |
| function | WhereAmI_TryAgain_w3c () |
| if ((typeof(navigator)== 'object'&&typeof(navigator.geolocation)== 'object')||(typeof(google)== 'object'&&typeof(google.gears)== 'object')) | |
| if (document.getElementById( 'advanced_search_mode')) | |
| if (document.getElementById( 'advanced_mapmode')) | |
Variables | |
| var | main_map = null |
| var | main_lat = null |
| var | main_lng = null |
| var | main_zoom = null |
| var | main_marker = null |
| var | main_overlay = null |
| var | old_popup_display = false |
| var | disable_multi_zoom = false |
| var | giconCenter = new GIcon() |
| var | g_geo = null |
| giconCenter | image = "##IMAGE_DIR##/NACenterMarker.png" |
| giconCenter | printImage = "##IMAGE_DIR##/NACenterMarker.gif" |
| giconCenter | mozPrintImage = "##IMAGE_DIR##/NACenterMarker.png" |
| giconCenter | iconSize = new GSize(21, 36) |
| giconCenter | shadow = "##IMAGE_DIR##/NACenterMarkerS.png" |
| giconCenter | shadowSize = new GSize(38, 36) |
| giconCenter | iconAnchor = new GPoint(10, 36) |
| giconCenter | infoWindowAnchor = new GPoint(10, 0) |
| giconCenter | transparent = "##IMAGE_DIR##/NACenterMarkerX.png" |
| giconCenter | imageMap = [10,35,0,11,0,4,4,0,15,0,20,3,20,12,10,35] |
This file will be optimized and embedded in the HTML that is returned for a meeting search map specification.
This file is part of the Basic Meeting List Toolbox (BMLT).
Find out more at: http://magshare.org/bmlt
BMLT is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
BMLT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this code. If not, see <http://www.gnu.org/licenses/>.
| function ClearCircularOverlay | ( | ) |
This clears the circular overlay.
| function CreateCenterMarker | ( | in_point | ) |
This creates the central marker on the map.
| in_point | A floating-point value. The longitude of the center of the map. |
| function CreateCircularOverlay | ( | ) |
This creates a translucent circular overlay that represents the radius of the search.
| function DisplaySearchSpecification | ( | in_spec, | |
| in_type | |||
| ) |
This function shows or hides the advanced search div.
| in_spec | The type specifier. It can be 'advanced' or 'basic'. |
| in_type | This is the type of display (can be 'map' or 'text'). If not specified, then whatever has been previously set is used. |
| function DragEnd | ( | ) |
This redraws the circle, and starts a new AJAX search.
| function DragStart | ( | overlay, | |
| in_point | |||
| ) |
This is called as a drag of the marker starts.
| function GetDependentNodes | ( | in_dom_id, | |
| in_child_nodes | |||
| ) |
Traverses the DOM tree, and returns an array of all the elements with IDs that contain this element's ID.
| in_dom_id | The DOM ID that will be the basis of what we are looking for. The IDs are written in a way that shows hierarchy. |
| in_child_nodes | The childnodes to check. |
Referenced by ServiceBodyCheckboxChanged().
| function HideThrobber | ( | ) |
Reverses the above.
| if | ( | (typeof(navigator)== 'object'&&typeof(navigator.geolocation)== 'object')||(typeof(google)== 'object'&&typeof(google.gears)== 'object') | ) |
| if | ( | document. | getElementById 'advanced_search_mode' | ) |
| if | ( | document. | getElementById 'advanced_mapmode' | ) |
| function MakeSmallMap | ( | in_lat, | |
| in_lng, | |||
| in_zoom, | |||
| in_disable_multi_zoom | |||
| ) |
This makes the small map for the basic search. The map does not display any markers or overlays, and just allows the visitor to click anywhere. When they click, they will be either taken to the large, full-page map, or a list.
| in_lat | A floating-point value. The latitude of the center of the map. |
| in_lng | A floating-point value. The longitude of the center of the map. |
| in_zoom | An integer. The zoom at which to display the map. |
| in_disable_multi_zoom | If this is set to true, then the "multi-zoom" functionality, for zooming in before searching for meetings, will be disabled. Default is false. |
Referenced by SmallMapClicked(), ToggleMapVisibility(), and ZoomEnd().
| function ServiceBodyCheckboxChanged | ( | in_dom_id | ) |
This function is called whenever one of the Service Body checkboxes changes value. If there are dependents, then they are all changed to match this one.
| in_dom_id | The DOM ID of the checkbox. The IDs are written in a way that shows hierarchy. |
| function ShowThrobber | ( | ) |
Hides the main form, and shows the throbber. Call this when you submit.
Referenced by AddressEntered(), SmallMapClicked(), StringEntered(), and WhereAmI().
| function SmallMapClicked | ( | overlay, | |
| in_point | |||
| ) |
This is called when the visitor clicks inside the map, and will direct them to the main map.
Referenced by DragEnd(), MakeSmallMap(), WhereAmI_CallBack(), and ZoomEnd().
| function ToggleMapVisibility | ( | in_hide | ) |
This function will toggle the basic search between the text input and the map.
| in_hide | True if the display is to be text. |
Referenced by DisplaySearchSpecification().
| function WhereAmI | ( | ) |
| function WhereAmI_CallBack | ( | in_position | ) |
Referenced by WhereAmI(), WhereAmI_TryAgain_Google(), and WhereAmI_TryAgain_w3c().
| function WhereAmI_Fail_Final | ( | ) |
Referenced by WhereAmI_TryAgain_Google(), and WhereAmI_TryAgain_w3c().
| function WhereAmI_TryAgain_Google | ( | ) |
Referenced by WhereAmI().
| function WhereAmI_TryAgain_w3c | ( | ) |
Referenced by WhereAmI().
| function ZoomEnd | ( | ) |
This redraws the circle, and starts a new AJAX search.
| var disable_multi_zoom = false |
If this is set to true, then the "multi-zoom" functionality, for zooming in before searching for meetings, will be disabled. Default is false.
Referenced by MakeSmallMap(), SmallMapClicked(), ToggleMapVisibility(), and ZoomEnd().
| var g_geo = null |
Android uses Google Gears, so we use this to keep an instance of Gears geolocator.
Referenced by WhereAmI(), and WhereAmI_TryAgain_Google().
| var giconCenter = new GIcon() |
This will be the center icon in the advanced map.
| giconCenter iconAnchor = new GPoint(10, 36) |
| giconCenter iconSize = new GSize(21, 36) |
| giconCenter image = "##IMAGE_DIR##/NACenterMarker.png" |
This is an icon for the central marker (Default is a black "pin").
| giconCenter imageMap = [10,35,0,11,0,4,4,0,15,0,20,3,20,12,10,35] |
| giconCenter infoWindowAnchor = new GPoint(10, 0) |
| var main_lat = null |
The latitude of the initial map center.
| var main_lng = null |
The longitude of the initial map center.
| var main_map = null |
The main map object.
| var main_marker = null |
This is the marker that is placed in the Advanced map.
| var main_overlay = null |
The main circular overlay for advanced map mode.
| var main_zoom = null |
The zoom of the initial map center.
Referenced by MakeSmallMap(), and ToggleMapVisibility().
| giconCenter mozPrintImage = "##IMAGE_DIR##/NACenterMarker.png" |
| var old_popup_display = false |
This keeps track of popup visibility when switching between Advanced and Basic.
Referenced by DisplaySearchSpecification(), and ToggleMapVisibility().
| giconCenter printImage = "##IMAGE_DIR##/NACenterMarker.gif" |
| giconCenter shadow = "##IMAGE_DIR##/NACenterMarkerS.png" |
| giconCenter shadowSize = new GSize(38, 36) |
| giconCenter transparent = "##IMAGE_DIR##/NACenterMarkerX.png" |
1.7.4