Changes between Version 37 and Version 38 of DeveloperGuidelines/GIS
- Timestamp:
- 06/06/11 15:54:12 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/GIS
v37 v38 31 31 add_feature = False, 32 32 add_feature_active = False, 33 add_polygon = False, 34 add_polygon_active = False, 35 features = [], 33 36 feature_queries = [], 34 37 wms_browser = {}, … … 43 46 window = False, 44 47 window_hide = False, 48 closable = True, 45 49 collapsed = False, 46 50 public_url = "http://127.0.0.1:8000" … … 67 71 @param add_feature: Whether to include a DrawFeature control to allow adding a marker to the map 68 72 @param add_feature_active: Whether the DrawFeature control should be active by default 73 @param add_polygon: Whether to include a DrawFeature control to allow drawing a polygon over the map 74 @param add_polygon_active: Whether the DrawFeature control should be active by default 75 @param features: Simple Features to overlay on Map (no control over appearance & not interactive) 76 [{ 77 lat: lat, 78 lon: lon 79 }] 69 80 @param feature_queries: Feature Queries to overlay onto the map & their options (List of Dicts): 70 81 [{ 71 82 name : "MyLabel", # A string: the label for the layer 72 query : query, # A gluon.sql.Rows of gis_locations, which can be from a simple query or a Join. Extra fields can be added for 'marker' or 'shape' (with optional 'color' & 'size') & 'popup_label' 73 active : False, # Is the feed displayed upon load or needs ticking to load afterwards? 74 popup_url : None, # The URL which will be used to fill the pop-up. If the string contains <id> then the Location ID will be replaced here, otherwise it will be appended by the Location ID. 75 marker : None, # The marker query or marker_id for the icon used to display the feature (over-riding the normal process). 76 polygons : False # Use Polygon data, if-available (defaults to just using Point) 83 query : query, # A gluon.sql.Rows of gis_locations, which can be from a simple query or a Join. 84 # Extra fields can be added for 'popup_url', 'popup_label' & either 85 # 'marker' (url/height/width) or 'shape' (with optional 'colour' & 'size') 86 active : True, # Is the feed displayed upon load or needs ticking to load afterwards? 87 marker : None # Optional: A per-Layer marker query or marker_id for the icon used to display the feature 88 opacity : 1 # Optional 89 cluster_distance # Optional 90 cluster_threshold # Optional 77 91 }] 78 92 @param wms_browser: WMS Server's GetCapabilities & options (dict) … … 100 114 @param window: Have viewport pop out of page into a resizable window 101 115 @param window_hide: Have the window hidden by default, ready to appear (e.g. on clicking a button) 116 @param closable: In Window mode, whether the window is closable or not 102 117 @param collapsed: Start the Tools panel (West region) collapsed 103 118 @param public_url: pass from model (not yet defined when Module instantiated