Changes between Version 20 and Version 21 of DeveloperGuidelines/GIS


Ignore:
Timestamp:
07/10/10 19:26:36 (11 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/GIS

    v20 v21  
    165165}}}
    166166
    167 ==== Controller ====
    168 New Layer Types & their Fields need adding to 2 places in the Controller:[[BR]]
    169 {{{controllers/gis.py}}}
    170 {{{
    171 def layer_newlayertype():
    172     "RESTlike CRUD controller"
    173     return shn_rest_controller(module,'layer_newlayertype')
    174 
    175 def map_viewing_client():
    176 newlayertype=Storage()
    177     layers_newlayertype=db(db.gis_layer_newlayertype.enabled==True).select(db.gis_layer_newlayertype.ALL)
    178     for layer in layers_newlayertype:
    179         for subtype in gis_layer_newlayertype_subtypes:
    180             if layer.subtype==subtype:
    181                 newlayertype['%s' % subtype]=layer.name
    182    
    183     # Add the Layers to the Return
    184     output.update(dict(newlayertype=newlayertype))
    185 }}}
    186 Note that these functions are now deprecated as of [changeset:,52]:
    187  * {{{layer()}}}
    188  * {{{shn_gis_create_layer()}}}
    189  * {{{shn_gis_update_layer()}}}
    190 
     167==== Module ====
     168New Layer Types & their Fields need adding to {{{modules/s3gis.py}}}
     169{{{
     170def show_map():
     171}}}
    191172==== View ====
    192173{{{views/gis/ol_layers_all.js}}}