Class Index | File Index

Classes


Namespace GeoMashup

Used more as a singleton than a namespace for data and methods for a single Geo Mashup map.

Violates the convention that capitalized objects are designed to be used with the 'new' keyword - an artifact of the age of the project. :o

Note: Events are Actions

Actions available for use with GeoMashup.addAction() are documented as events. See the custom javascript documentation for an example.


Defined in: geo-mashup.dev.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<static>  
GeoMashup.addAction(name, callback)
Add an action callback to extend Geo Mashup functionality.
<static>  
GeoMashup.addGlowMarker(marker)
Obscure an existing marker with the highlighted "glow" marker.
<static>  
GeoMashup.addObjects(response_data, add_category_info)
Add objects to the map.
<static>  
GeoMashup.autoZoom()
Zoom the map to loaded content.
<static>  
GeoMashup.categoryIndexId(category_id)
Get the DOM ID of the element containing a category index in the tabbed category index control.
<static>  
GeoMashup.categoryTabSelect(select_category_id)
Select a tab of the tabbed category index control.
<static>  
GeoMashup.centerMarker(marker, zoom)
Center and optionally zoom to a marker.
<static>  
GeoMashup.clickMarker(object_id, try_count)
Backward compatibility for clickObjectMarker().
<static>  
GeoMashup.clickObjectMarker(object_id, try_count)
Simulate a user click on the marker that represents a specified object.
<static>  
GeoMashup.closeInfoWindow(marker)
Close the info bubble for a marker.
<static>  
GeoMashup.deselectMarker()
De-select the currently selected marker if there is one.
<static>  
GeoMashup.doAction(name)
Fire all callbacks for an action.
<static>  
GeoMashup.getCategoryName(category_id)
Get the name of a category.
<static>  
GeoMashup.getMarkerLatLng(marker)
Get the location coordinates for a marker.
<static>  
GeoMashup.getMarkerObjects(marker)
Get the objects at the location of a specified marker.
<static>  
GeoMashup.getObjectsAtLocation(point)
Get the objects at a specified location.
<static>  
GeoMashup.getShowPostElement()
Get the DOM element where the full post content should be displayed, if any.
<static>  
GeoMashup.hideAttachments()
Hide any visible attachment layers on the map.
<static>  
GeoMashup.hideCategory(category_id)
Hide markers and line for a category.
<static>  
GeoMashup.hideCategoryHierarchy(category_id)
Hide a category and all its child categories.
<static>  
GeoMashup.hideLine(line)
Hide a line.
<static>  
GeoMashup.hideLoadingIcon()
Hide the spinner icon for the map.
<static>  
GeoMashup.hideMarker(marker)
Hide a marker.
<static>  
GeoMashup.hideMarkers()
Hide all markers.
<static>  
GeoMashup.isCategoryAncestor(ancestor_id, child_id)
Determine whether a category ID is an ancestor of another.
<static>  
GeoMashup.isMarkerVisible(marker, False)
Whether a marker is currently visible on the map.
<static>  
GeoMashup.loadFullPost(point)
Load full content for the objects/posts at a location into the full post display element.
<static>  
GeoMashup.newLatLng(lat, lng)
Create a new geo coordinate object.
<static>  
GeoMashup.openInfoWindow(marker)
Open the info bubble for a marker.
<static>  
GeoMashup.parentizeLinks(node)
Change the target of links in a DOM element to target the parent frame.
<static>  
GeoMashup.parentizeLinksMarkup(markup)
Change the target of links in HTML markup to target the parent frame.
<static>  
GeoMashup.recluster()
If clustering is active, refresh clusters.
<static>  
GeoMashup.removeGlowMarker()
Remove the highlighted "glow" marker from the map if it exists.
<static>  
GeoMashup.selectMarker(marker)
Select a marker.
<static>  
GeoMashup.showCategory(category_id)
Show markers for a category.
<static>  
GeoMashup.showCategoryHierarchy(category_id)
Show a category and all its child categories.
<static>  
GeoMashup.showLine(line)
Show a line.
<static>  
GeoMashup.showLoadingIcon()
Display a spinner icon for the map.
<static>  
GeoMashup.showMarker(marker)
Show a marker.
<static>  
GeoMashup.showMarkerAttachments(marker)
Show any attachment layers associated with the objects represented by a marker, loading the layer if necessary.
<static>  
GeoMashup.showMarkers()
Show all markers.
<static>  
Show or hide markers according to current visibility criteria.
<static>  
GeoMashup.updateVisibleList()
Recompile the list of objects currently visible on the map.
Event Summary
Event Attributes Event Name and Description
 
categoryIcon(properties, icon, category_id)
A category icon is being assigned.
 
categoryLine(properties, line)
A category line was created.
 
categoryLineOptions(properties, options)
A category will be added with the given options.
 
clusterOptions(properties, clusterer_opts)
Clusterer options are being set.
 
colorIcon(properties, icon, color_name)
A category icon is being assigned by color.
 
The full post display has changed.
 
fullPostLoad(objects, filter)
Loading full post content.
 
fullPostRequest(objects, options)
Requesting full post content.
 
geoQueryUrl(properties, filter)
The base URL used for geo queries is being set.
 
glowMarkerIcon(properties, glow_options)
A highlight "glow" marker is being created.
 
loadedMap(properties, map)
The map has loaded.
 
mapOptions(properties, map_opts)
The map options are being set.
 
marker(properties, marker)
A marker was created.
 
markerInfoWindowLoad(marker, filter)
A marker info window content is being loaded.
 
markerInfoWindowMaxLoad(marker, filter)
A marker's maximized info window content is being loaded.
 
markerInfoWindowMaxRequest(marker, request_options)
A marker's maximized info window content is being requested.
 
markerInfoWindowRequest(marker, request)
A marker's info window content is being requested.
 
markerVisibilityOptions(properties, options, marker, map)
Visbility is being tested for a marker.
 
multiObjectIcon(properties, plus_image)
A marker representing multiple objects was created with this icon.
 
multiObjectMarker(properties, marker)
A marker representing multiple objects was created.
 
newMap(properties, map)
The map was created.
 
objectIcon(properties, object)
An icon is being assigned to an object.
 
objectMarkerOptions(properties, glow_options, object)
A marker is being created for an object.
 
objectVisibilityOptions(properties, options, object, map)
Visbility is being tested for an object.
 
selectedMarker(properties, marker, map)
A marker was selected.
 
singleMarker(properties, single_marker)
A single map marker was added to the map.
 
singleMarkerOptions(properties, marker_opts)
A single map marker is being created with these options
 
updatedVisibleList(properties, list_count)
The visible posts list was updated.
Namespace Detail
GeoMashup
Method Detail
<static> GeoMashup.addAction(name, callback)
Add an action callback to extend Geo Mashup functionality. Essentially an event interface. Might make sense to convert to Mapstraction events in the future.
Parameters:
{String} name
The name of the action (event).
{Function} callback
The function to call when the action occurs

<static> GeoMashup.addGlowMarker(marker)
Obscure an existing marker with the highlighted "glow" marker.
Parameters:
{Marker} marker
The existing marker

<static> GeoMashup.addObjects(response_data, add_category_info)
Add objects to the map.
Parameters:
{Object} response_data
Data returned by a geo query.
{Boolean} add_category_info
Whether to build and show category data for these objects, for legend or other category controls.

<static> GeoMashup.autoZoom()
Zoom the map to loaded content.

<static> GeoMashup.categoryIndexId(category_id)
Get the DOM ID of the element containing a category index in the tabbed category index control.
Parameters:
{String} category_id
The category ID

<static> GeoMashup.categoryTabSelect(select_category_id)
Select a tab of the tabbed category index control.
Parameters:
{String} select_category_id
The ID of the category tab to select

<static> GeoMashup.centerMarker(marker, zoom)
Center and optionally zoom to a marker.
Parameters:
{Marker} marker
{Number} zoom
Optional zoom level

<static> GeoMashup.clickMarker(object_id, try_count)
Backward compatibility for clickObjectMarker().
Parameters:
object_id
try_count

<static> GeoMashup.clickObjectMarker(object_id, try_count)
Simulate a user click on the marker that represents a specified object.
Parameters:
{String} object_id
The ID of the object.
{Number} try_count
Optional number of times to try (in case the object is still being loaded).

<static> GeoMashup.closeInfoWindow(marker)
Close the info bubble for a marker.
Parameters:
{Marker} marker

<static> GeoMashup.deselectMarker()
De-select the currently selected marker if there is one.

<static> GeoMashup.doAction(name)
Fire all callbacks for an action. Essentially an event interface. Might make sense to convert to Mapstraction events in the future.
Parameters:
{String} name
The name of the action (event).

<static> GeoMashup.getCategoryName(category_id)
Get the name of a category.
Parameters:
{String} category_id

<static> {LatLonPoint} GeoMashup.getMarkerLatLng(marker)
Get the location coordinates for a marker.
Parameters:
{Marker} marker
Returns:
{LatLonPoint} The marker coordinates

<static> {Array} GeoMashup.getMarkerObjects(marker)
Get the objects at the location of a specified marker.
Parameters:
{Marker} marker
Returns:
{Array} The mapped objects at the marker location

<static> {Array} GeoMashup.getObjectsAtLocation(point)
Get the objects at a specified location.
Parameters:
{LatLonPoint} point
The query location
Returns:
{Array} The mapped objects at the query location

<static> {DOMElement} GeoMashup.getShowPostElement()
Get the DOM element where the full post content should be displayed, if any.
Returns:
{DOMElement} The element, or undefined if none.

<static> GeoMashup.hideAttachments()
Hide any visible attachment layers on the map.

<static> GeoMashup.hideCategory(category_id)
Hide markers and line for a category.
Parameters:
{String} category_id

<static> GeoMashup.hideCategoryHierarchy(category_id)
Hide a category and all its child categories.
Parameters:
{String} category_id
The ID of the category to hide

<static> GeoMashup.hideLine(line)
Hide a line.
Parameters:
{Polyline} line

<static> GeoMashup.hideLoadingIcon()
Hide the spinner icon for the map.

<static> GeoMashup.hideMarker(marker)
Hide a marker.
Parameters:
{Marker} marker

<static> GeoMashup.hideMarkers()
Hide all markers.

<static> GeoMashup.isCategoryAncestor(ancestor_id, child_id)
Determine whether a category ID is an ancestor of another. Works on the loadedMap action and after, when the category hierarchy has been determined.
Parameters:
{String} ancestor_id
The category ID of the potential ancestor
{String} child_id
The category ID of the potential child

<static> GeoMashup.isMarkerVisible(marker, False)
Whether a marker is currently visible on the map.
Parameters:
{Marker} marker
{Boolean} False
if the marker is hidden or outside the current viewport.

<static> GeoMashup.loadFullPost(point)
Load full content for the objects/posts at a location into the full post display element.
Parameters:
{LatLonPoint} point

<static> {LatLonPoint} GeoMashup.newLatLng(lat, lng)
Create a new geo coordinate object.
Parameters:
{Number} lat
Latitude
{Number} lng
Longitude
Returns:
{LatLonPoint} Coordinates

<static> GeoMashup.openInfoWindow(marker)
Open the info bubble for a marker.
Parameters:
{Marker} marker

<static> GeoMashup.parentizeLinks(node)
Change the target of links in a DOM element to target the parent frame.
Parameters:
{DOMElement} node
The element to change

<static> {String} GeoMashup.parentizeLinksMarkup(markup)
Change the target of links in HTML markup to target the parent frame.
Parameters:
{String} markup
Returns:
{String} Modified markup

<static> GeoMashup.recluster()
If clustering is active, refresh clusters.

<static> GeoMashup.removeGlowMarker()
Remove the highlighted "glow" marker from the map if it exists.

<static> GeoMashup.selectMarker(marker)
Select a marker.
Parameters:
{Marker} marker

<static> GeoMashup.showCategory(category_id)
Show markers for a category. Also show line if consistent with configuration.
Parameters:
{String} category_id

<static> GeoMashup.showCategoryHierarchy(category_id)
Show a category and all its child categories.
Parameters:
{String} category_id
The ID of the category to show

<static> GeoMashup.showLine(line)
Show a line.
Parameters:
{Polyline} line

<static> GeoMashup.showLoadingIcon()
Display a spinner icon for the map.

<static> GeoMashup.showMarker(marker)
Show a marker.
Parameters:
{Marker} marker

<static> GeoMashup.showMarkerAttachments(marker)
Show any attachment layers associated with the objects represented by a marker, loading the layer if necessary.
Parameters:
{Marker} marker

<static> GeoMashup.showMarkers()
Show all markers.

<static> GeoMashup.updateMarkerVisibilities()
Show or hide markers according to current visibility criteria.

<static> GeoMashup.updateVisibleList()
Recompile the list of objects currently visible on the map.
Event Detail
categoryIcon(properties, icon, category_id)
A category icon is being assigned.
Parameters:
{GeoMashupOptions} properties
Geo Mashup configuration data
{GeoMashupIcon} icon
{String} category_id

categoryLine(properties, line)
A category line was created.
Defined in: geo-mashup-mxn.dev.js.
Parameters:
{GeoMashupOptions} properties
Geo Mashup configuration data
{Polyline} line

categoryLineOptions(properties, options)
A category will be added with the given options.
Defined in: geo-mashup-mxn.dev.js.
Parameters:
{GeoMashupOptions} properties
Geo Mashup configuration data
{Object} options
Modifiable Mapstraction or Google Polyline options

clusterOptions(properties, clusterer_opts)
Clusterer options are being set.
Defined in: geo-mashup-google.dev.js.
Parameters:
{GeoMashupOptions} properties
Geo Mashup configuration data
{Object} clusterer_opts
Modifiable clusterer options for ClusterMarker.

colorIcon(properties, icon, color_name)
A category icon is being assigned by color.
Parameters:
{GeoMashupOptions} properties
Geo Mashup configuration data
{GeoMashupIcon} icon
{String} color_name

fullPostChanged()
The full post display has changed.
Defined in: geo-mashup-mxn.dev.js.

fullPostLoad(objects, filter)
Loading full post content.
Defined in: geo-mashup-mxn.dev.js.
Parameters:
{Array} objects
Objects included in the request
{ContentFilter} filter

fullPostRequest(objects, options)
Requesting full post content.
Defined in: geo-mashup-mxn.dev.js.
Parameters:
{Array} objects
Objects included in the request
{AjaxRequestOptions} options

geoQueryUrl(properties, filter)
The base URL used for geo queries is being set.
Defined in: geo-mashup-mxn.dev.js.
Parameters:
{GeoMashupOptions} properties
Geo Mashup configuration data
{Object} filter
Mofiable property: url

glowMarkerIcon(properties, glow_options)
A highlight "glow" marker is being created.
Defined in: geo-mashup-mxn.dev.js.
Parameters:
{GeoMashupOptions} properties
Geo Mashup configuration data
{Object} glow_options
Modifiable Mapstraction or Google marker options

loadedMap(properties, map)
The map has loaded.
Defined in: geo-mashup-mxn.dev.js.
Parameters:
{GeoMashupOptions} properties
Geo Mashup configuration data
{Map} map

mapOptions(properties, map_opts)
The map options are being set.
Defined in: geo-mashup-mxn.dev.js.
Parameters:
{GeoMashupOptions} properties
Geo Mashup configuration data
{Object} map_opts
Modifiable Mapstraction or Google map options

marker(properties, marker)
A marker was created.
Defined in: geo-mashup-mxn.dev.js.
Parameters:
{GeoMashupOptions} properties
Geo Mashup configuration data
{Marker} marker

markerInfoWindowLoad(marker, filter)
A marker info window content is being loaded.
Defined in: geo-mashup-mxn.dev.js.
Parameters:
{Marker} marker
{ContentFilter} filter
Modifiable property: content

markerInfoWindowMaxLoad(marker, filter)
A marker's maximized info window content is being loaded.
Defined in: geo-mashup-google.dev.js.
Parameters:
{Marker} marker
{ContentFilter} filter

markerInfoWindowMaxRequest(marker, request_options)
A marker's maximized info window content is being requested.
Defined in: geo-mashup-google.dev.js.
Parameters:
{Marker} marker
{AjaxRequestOptions} request_options

markerInfoWindowRequest(marker, request)
A marker's info window content is being requested.
Defined in: geo-mashup-mxn.dev.js.
Parameters:
{Marker} marker
{AjaxRequestOptions} request
Modifiable property: url

markerVisibilityOptions(properties, options, marker, map)
Visbility is being tested for a marker.
Parameters:
{GeoMashupOptions} properties
Geo Mashup configuration data
{Object} options
A container allowing the boolean options.visiblity to be updated
{Marker} marker
The marker being tested
{Map} map
The map for context

multiObjectIcon(properties, plus_image)
A marker representing multiple objects was created with this icon.
Defined in: geo-mashup-mxn.dev.js.
Parameters:
{GeoMashupOptions} properties
Geo Mashup configuration data
{String} plus_image
Icon URL

multiObjectMarker(properties, marker)
A marker representing multiple objects was created.
Defined in: geo-mashup-mxn.dev.js.
Parameters:
{GeoMashupOptions} properties
Geo Mashup configuration data
{Marker} marker

newMap(properties, map)
The map was created.
Defined in: geo-mashup-mxn.dev.js.
Parameters:
{GeoMashupOptions} properties
Geo Mashup configuration data
{Map} map

objectIcon(properties, object)
An icon is being assigned to an object.
Defined in: geo-mashup-mxn.dev.js.
Parameters:
{GeoMashupOptions} properties
Geo Mashup configuration data
{GeoMashupObject} object

objectMarkerOptions(properties, glow_options, object)
A marker is being created for an object.
Defined in: geo-mashup-mxn.dev.js.
Parameters:
{GeoMashupOptions} properties
Geo Mashup configuration data
{Object} glow_options
Modifiable Mapstraction or Google marker options
{GeoMashupObject} object

objectVisibilityOptions(properties, options, object, map)
Visbility is being tested for an object.
Parameters:
{GeoMashupOptions} properties
Geo Mashup configuration data
{Object} options
A container allowing the boolean options.visiblity to be updated
{Object} object
The object being tested
{Map} map
The map for context

selectedMarker(properties, marker, map)
A marker was selected.
Parameters:
{GeoMashupOptions} properties
Geo Mashup configuration data
{Marker} marker
The selected marker
{Map} map
The map containing the marker

singleMarker(properties, single_marker)
A single map marker was added to the map.
Defined in: geo-mashup-mxn.dev.js.
Parameters:
{GeoMashupOptions} properties
Geo Mashup configuration data
{Marker} single_marker

singleMarkerOptions(properties, marker_opts)
A single map marker is being created with these options
Defined in: geo-mashup-mxn.dev.js.
Parameters:
{GeoMashupOptions} properties
Geo Mashup configuration data
{Object} marker_opts
Mofifiable Mapstraction or Google marker options

updatedVisibleList(properties, list_count)
The visible posts list was updated.
Parameters:
{GeoMashupOptions} properties
Geo Mashup configuration data
{Number} list_count
The number of items in the list

Documentation generated by JsDoc Toolkit 2.1.1 on Wed Aug 17 2011 18:00:11 GMT-0700 (PDT)