Common Web Mapping (CWM) Framework

Version History

v1.7

Released on Jume 30, 2016.

Improvements

Bug Fixes

v1.6.2

Released on April 19, 2016.

Improvements

Bug Fixes

Configuration

v1.6.1

Released on March 15, 2016.

Improvements

Bug Fixes

Configuration

v1.6.0

Beta release

Released on December 23, 2015.
(Superceded by v1.6.0a)

User Interface

Bug Fixes

Configuration

    overlayConfig: [ { title: "overlay title", layer: [ { title: "layer title", attributes: [
        {
            name: 'STRING_ATTR1',
            title: 'String Attr1',
            format: {                        // No type, string assumed
                template: 'before {0} after' 
            }
        },
        {
            name: 'STRING_ATTR2',
            title: 'String Attr2',
            format: {                        
                type: 'string', 
                template: '{0} {1}',
                pattern: 'foo (bar)' // regex, {0} gets entire match, {1} gets first capture in ()s
            }
        },
        {
            name: 'STRING_ATTR3',
            title: 'String Attr3',
            format: {                        
                type: 'string', 
                template: 'an integer {0}',
                source: {                      // nested format spec, the inner format is applied to attribute, and result passed to outer format
                     type: 'integer',
                     unit: 'm'
                }
            }
        },
    ] } ] } ]

v1.5.0

Released on August 27, 2015.

User Interface

Public API

Configuration

    overlayConfig: [ { title: "overlay title", layer: [ { title: "layer title",
        geometryAttribute: 'GEOMETRY' // NEW
    } ] } ]
<script type="text/javascript" src="../../cwm/lib/proj4js-1.1.0-min.js"></script>

Bug Fixes


v1.4.0

Released on July 6, 2015.

User Interface

Public API

Configuration

    mapConfig: {
        search: {    // NEW
            style: { // NEW 
                // openlayers style
            }
        }
    }
    overlayConfig: [ { title: "overlay title", layer: [ { title: "layer title",
        legend: {                     // NEW
            visible: <boolean>,       // NEW default: true, set to false to never show legend for this layer
            useLayerTitle: <boolean>, // NEW default: false, set to true to take legend title from layer
            title: <string>           // NEW default: null, set title for legend
        }
    } ] } ]
    overlayConfig: [ { title: "overlay title", layer: [ { title: "layer title", attributes: [
        {
            name: 'STRING_ATTR',
            title: 'String Attr',
            type: 'string'                   // NEW optional, type is 'string' unless specified
            format: {                        // NEW 
                template: 'before {0} after' // NEW optional
            }
        },
        {
            name: 'URL_ATTR',
            title: 'URL Attr',
            type: 'url'                                 // NEW 
            format: {                                   // NEW 
                template: 'before {0} after',           // NEW optional
                urlTemplate: 'http://foo.com/?baz={0}', // NEW required for type 'url'
                linkTemplate: '<a href="{0}">{1}</a>'   // NEW optional
            }
        },
        {
            name: 'INTEGER_ATTR',
            title: 'Integer Attr',
            type: 'integer'                     // NEW
            format: {                           // NEW
                template: 'before {0} after',   // NEW optional
            }
        },
        {
            name: 'NUMBER_ATTR1',
            title: 'Number Attr1',
            type: 'number'                      // NEW
            format: {                           // NEW
                template: 'before {0} after',   // NEW optional 
                fixed: 2                        // NEW digits after decimal point
            }
        },
        {
            name: 'NUMBER_ATTR2',
            title: 'Number Attr2',
            type: 'number'                      // NEW 
            format: {                           // NEW
                template: 'before {0} after',   // NEW optional
                precision: 5                    // NEW significant digits
            }
        }
    ] } ] } ]

v1.3.2

Released on Apr 21, 2015.

Bug Fixes


v1.3.1

Released on Mar 25, 2015.

Bug Fixes

Known Issues


v1.3.0

Released on Mar 11, 2015.

User Interface

Public API

Configuration

Bug Fixes

Known Issues


v1.2.0

Released on Feb 4, 2015.

User Interface

Public API

Configuration

Examples