Changes between Version 13 and Version 14 of BluePrintGISAPI


Ignore:
Timestamp:
04/27/10 13:34:01 (12 years ago)
Author:
Fran Boon
Comment:

Optional args after mandatory ones

Legend:

Unmodified
Added
Removed
Modified
  • BluePrintGISAPI

    v13 v14  
    4141==== Embed a map within a Page ====
    4242{{{
    43     gis.show_map(height              = <default>,
    44                  width               = <default>,
    45                  base_layers         = <default>,
     43    gis.show_map(
    4644                 internal_overlays   = None,
    4745                 internal_layertree  = True,
    48                  external_overlays   = False,
     46                 external_overlays   = False
    4947                 external_layertree  = True,
    5048                 toolbar             = False,
     49                 height              = <default>,
     50                 width               = <default>,
    5151                 lat                 = <default>,
    5252                 lon                 = <default>,
    53                  zoom                = <default>
     53                 zoom                = <default>,
     54                 base_layers         = <default>
    5455)
    5556    """
    56     height - int - height of map in pixels
    57     width - int - width of map in pixels
    58     base_layers - list of ints - base layers used for map. Hard-coding this is Ugly! Can we not just use Map Service Catalogue for this? Maybe creating separate configurations for separate use-cases, so can call e.g. db.gis_config.3 instead of the default
    5957    internal_overlays - list of dictionaries:
    6058        {
     
    6967    external_layertree - bool - whether or not to display the menu to turn on and off the external_layers
    7068    toolbar - bool - whether or not to display the toolbar
     69    height - int - height of map in pixels
     70    width - int - width of map in pixels
    7171    lat - double - Initial map center point
    7272    lon - double - Initial map center point
    7373    zoom - int - the initial zoom level of the map
     74    base_layers - list of ints - base layers used for map. Hard-coding this is Ugly! Can we not just use Map Service Catalogue for this? Maybe creating separate configurations for separate use-cases, so can call e.g. db.gis_config.3 instead of the default
    7475
    7576    Will return the HTML to embed a map with the specified options.