dmBridge PHP API
UNLVSpatialTemplateHelper Class Reference

These template helpers use version 3 of the Google Maps API. More...

Inheritance diagram for UNLVSpatialTemplateHelper:

Public Member Functions


Detailed Description

These template helpers use version 3 of the Google Maps API.

Author:
Alex Dolski <alex.dolski@unlv.edu> http://www.opensource.org/licenses/mit-license.php http://code.google.com/apis/maps/documentation/javascript/

Definition at line 16 of file UNLVSpatialTemplateHelper.php.


Member Function Documentation

UNLVSpatialTemplateHelper::getHtmlGoogleMapsObject ( map_type = "TERRAIN",
point_zoom_level = 11,
rect_stroke_color = "#0000ff",
rect_stroke_weight = 1,
rect_fill_color = "#0000ff",
rect_fill_opacity = 0.3 
)

Renders a Google Map using either pinpoint (for UNLVSpatialPointObjects) or a rectangle (for UNLVSpatialRectObjects) to represent an object's location.

Parameters:
stringmap_type One of ROADMAP, HYBRID, SATELLITE, or TERRAIN
intpoint_zoom_level The default zoom level. Only affects points; auto-calculated for rects.
stringrect_stroke_color Valid CSS3 color
intrect_stroke_weight
stringrect_fill_color Valid CSS3 color
floatrect_fill_opacity
Returns:
string HTML tags

Definition at line 46 of file UNLVSpatialTemplateHelper.php.

UNLVSpatialTemplateHelper::getHtmlGoogleMapsObjectResults ( map_type = "TERRAIN",
display_rects_as_points = true,
rect_stroke_color = "#0000ff",
rect_stroke_weight = 1,
rect_fill_color = "#0000ff",
rect_fill_opacity = 0.05 
)

Renders a Google Map using either pinpoints (for UNLVSpatialPointObjects) or rectangles (for UNLVSpatialRectObjects) to represent the locations of multiple objects in a result set.

Parameters:
stringmap_type One of ROADMAP, HYBRID, SATELLITE, or TERRAIN
booleandisplay_rects_as_points
stringrect_stroke_color Valid CSS3 color
intrect_stroke_weight
stringrect_fill_color Valid CSS3 color
floatrect_fill_opacity Float from 0 to 1; note that overlapping rects are additive.
Returns:
string HTML tags

Definition at line 162 of file UNLVSpatialTemplateHelper.php.

UNLVSpatialTemplateHelper::getHtmlGoogleMapsSpatialSearch ( center_lat,
center_long,
map_type = "TERRAIN",
zoom_level = 8 
)
Parameters:
floatcenter_lat
floatcenter_long
stringmap_type One of ROADMAP, HYBRID, SATELLITE, or TERRAIN
intzoom_level
Returns:
string HTML tags

Definition at line 265 of file UNLVSpatialTemplateHelper.php.

UNLVSpatialTemplateHelper::getHtmlIndexerSummary ( )

Summarizes UNLVSpatialIndexer indexer results in HTML tables in the Control Panel.

Not for public use.

Returns:
string HTML div element

Definition at line 344 of file UNLVSpatialTemplateHelper.php.

UNLVSpatialTemplateHelper::getSpatialObject ( )
Returns:
DMObject The spatialized object associated with the current view, or null if it is not spatialized

Definition at line 516 of file UNLVSpatialTemplateHelper.php.

Referenced by getHtmlGoogleMapsObject().

UNLVSpatialTemplateHelper::getSpatialObjects ( )
Returns:
array Array of spatialized objects associated with the current view

Definition at line 533 of file UNLVSpatialTemplateHelper.php.

Referenced by getHtmlGoogleMapsObjectResults().

UNLVSpatialTemplateHelper::helperWillRender ( )

Delegate method.

Returns:
void

Implements DMTemplateHelper.

Definition at line 24 of file UNLVSpatialTemplateHelper.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables