Package s3 :: Module s3gis :: Class S3Map
[frames] | no frames]

Class S3Map

source code

     object --+    
              |    
s3rest.S3Method --+
                  |
                 S3Map

Class to generate a Map linked to Search filters

Instance Methods
 
apply_method(self, r, **attr)
Entry point to apply map method to S3Requests - produces a full page with S3FilterWidgets above a Map
source code
 
page(self, r, **attr)
Map page
source code
 
widget(self, r, method="map", widget_id=None, visible=True, callback=None, **attr)
Render a Map widget suitable for use in an S3Filter-based page such as S3Summary
source code

Inherited from s3rest.S3Method: __call__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods

Inherited from s3rest.S3Method: crud_string

Properties

Inherited from object: __class__

Method Details

apply_method(self, r, **attr)

source code 

Entry point to apply map method to S3Requests
- produces a full page with S3FilterWidgets above a Map

@param r: the S3Request instance
@param attr: controller attributes for the request

@return: output object to send to the view

Parameters:
  • r - the S3Request
  • attr - dictionary of parameters for the method handler
Returns:
output object to send to the view
Overrides: s3rest.S3Method.apply_method

page(self, r, **attr)

source code 

Map page

Parameters:
  • r - the S3Request instance
  • attr - controller attributes for the request

widget(self, r, method="map", widget_id=None, visible=True, callback=None, **attr)

source code 

Render a Map widget suitable for use in an S3Filter-based page such as S3Summary

Parameters:
  • r - the S3Request
  • method - the widget method
  • widget_id - the widget ID
  • callback - None by default in case DIV is hidden
  • visible - whether the widget is initially visible
  • attr - controller attributes
Returns:
output
Overrides: s3rest.S3Method.widget