Changes between Version 24 and Version 25 of DeveloperGuidelines/GIS


Ignore:
Timestamp:
07/12/10 11:30:14 (11 years ago)
Author:
Fran Boon
Comment:

feature_queries is a list of dicts

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/GIS

    v24 v25  
    3030              zoom = None,
    3131              projection = None,
    32               features = {},
    33               feature_overlays = [],
     32              feature_queries = [],
     33              feature_groups = [],
    3434              wms_browser = {},
    3535              catalogue_overlays = False,
     
    5858    @param zoom: default Zoom level of viewport (if not provided then the default setting from the Map Service Catalogue is used)
    5959    @param projection: EPSG code for the Projection to use (if not provided then the default setting from the Map Service Catalogue is used)
    60     @param features: A Query of Features to overlay onto the map & their options (Dict):
    61         {
    62          name   : "Query",      # A string: the label for the layer
    63          query  : query,        # A gluon.sql.Rows of gis_locations
    64          active : False,        # Is the feed displayed upon load or needs ticking to load afterwards?
    65          popup_url : None,      # The URL which will be used to fill the pop-up. it will be appended by the Location ID.
    66          marker : None          # The marker_id for the icon used to display the feature (over-riding the normal process).
    67                                 # [Plan: Can be a lambda to vary icon (size/colour) based on attribute levels.]
    68         }
    69     @param feature_overlays: Which Feature Groups to overlay onto the map & their options (List of Dicts):
    70         [{
    71          feature_group : db.gis_feature_group.name,
    72          parent : None,         # Only display features with this parent set. ToDo: search recursively to allow all descendants
    73          filter : None,         # A query to further limit which features from the feature group are loaded
    74          active : False,        # Is the feed displayed upon load or needs ticking to load afterwards?
    75          popup_url : None,      # The URL which will be used to fill the pop-up. it will be appended by the Location ID.
    76          marker : None          # The marker_id for the icon used to display the feature (over-riding the normal process).
    77                                 # [Plan: Can be a lambda to vary icon (size/colour) based on attribute levels.]
    78         }]
     60    @param feature_queries: Feature Queries to overlay onto the map & their options (List of Dicts):
     61                [{
     62                 name   : "Query",      # A string: the label for the layer
     63                 query  : query,        # A gluon.sql.Rows of gis_locations
     64                 active : False,        # Is the feed displayed upon load or needs ticking to load afterwards?
     65                 popup_url : None,      # The URL which will be used to fill the pop-up. it will be appended by the Location ID.
     66                 marker : None          # The marker_id for the icon used to display the feature (over-riding the normal process).
     67                                        # [Plan: Can be a lambda to vary icon (size/colour) based on attribute levels.]
     68                }]
     69            @param feature_groups: Feature Groups to overlay onto the map & their options (List of Dicts):
     70                [{
     71                 feature_group : db.gis_feature_group.name,
     72                 parent : None,         # Only display features with this parent set. ToDo: search recursively to allow all descendants
     73                 filter : None,         # A query to further limit which features from the feature group are loaded
     74                 active : False,        # Is the feed displayed upon load or needs ticking to load afterwards?
     75                 popup_url : None,      # The URL which will be used to fill the pop-up. it will be appended by the Location ID.
     76                 marker : None          # The marker_id for the icon used to display the feature (over-riding the normal process).
     77                                        # [Plan: Can be a lambda to vary icon (size/colour) based on attribute levels.]
     78                }]
    7979    @param wms_browser: WMS Server's GetCapabilities & options (dict)
    8080        {