Changes between Version 37 and Version 38 of DeveloperGuidelines/GIS


Ignore:
Timestamp:
06/06/11 15:54:12 (10 years ago)
Author:
Fran Boon
Comment:

Update Mapping API

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/GIS

    v37 v38  
    3131              add_feature = False,
    3232              add_feature_active = False,
     33              add_polygon = False,
     34              add_polygon_active = False,
     35              features = [],
    3336              feature_queries = [],
    3437              wms_browser = {},
     
    4346              window = False,
    4447              window_hide = False,
     48              closable = True,
    4549              collapsed = False,
    4650              public_url = "http://127.0.0.1:8000"
     
    6771        @param add_feature: Whether to include a DrawFeature control to allow adding a marker to the map
    6872        @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            }]
    6980        @param feature_queries: Feature Queries to overlay onto the map & their options (List of Dicts):
    7081            [{
    7182             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
    7791            }]
    7892        @param wms_browser: WMS Server's GetCapabilities & options (dict)
     
    100114        @param window: Have viewport pop out of page into a resizable window
    101115        @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
    102117        @param collapsed: Start the Tools panel (West region) collapsed
    103118        @param public_url: pass from model (not yet defined when Module instantiated