v1.7
Released on Jume 30, 2016.
Improvements
- Add horizontal scroll bar to Legend (add scrollx option to SidebarPanel)
CWMS-381
- Allow an attribute format block to be used in a feature's titleAttribute.
CWMS-377
If a format is used, the source property refers to the actual attribute.
- Import summary fills remaining area on panel. Import button swapped with status message.
CWMS-375
- Check that filename of SHP and DBF match.
CWMS-374
- Multiple handlers can now registered for callbacks in API.
CWMS-359
- Identify now sends a separate request for each layer being queried.
CWMS-388
- The state of the AOI, measurement, selection, and highlight is reflected in the buttons that operate on those objects.
CWMS-321
- Add Shift-Click/Ctl-Click on Layer List Overlay checkbox to control all layers in overlay
CWMS-332
- Bookmarks
CWMS-127
- Improve handling of Search for DMS values (degree symbol no longer required)
Bug Fixes
- Identify flash highlight does not affect the Highlight layer or Clear Highlight button
CWMS-397
v1.6.2
Released on April 19, 2016.
Improvements
- Allow cookies to be sent with GetFeatureInfo (identify) requests.
CWMS-362
- Cache keyattribute so select & unselect can use it.
CWMS-389
Bug Fixes
- Relax regex matching geomarks
CWMS-390
Configuration
- To control if identify (GetFeatureInfo) requests should use the
withCredentials flag, a flag can be specified on an overlay, or on a layer: overlayConfig: [ {
title: "overlay title",
requestWithCredentials: true, // set default for overlay
layer: [ {
title: "layer title",
requestWithCredentials: true, // overrides overlay setting
} ]
} ]
v1.6.1
Released on March 15, 2016.
Improvements
- Make internal Map Scale match GeoServer BC-Albers scale by using Nominal Scale, set DPI = 90
CWMS-352
- Add support for layer.min_scale property
- Add more borders to Landscape Print Template, reduce size of scale font
CWMS-348
- Add word-wrap, overflow cut-off, more space to Print Template Notes area
CWMS-366
- Remove auto-zoom from Location Search for non-deterministic location types
CWMS-225
- Add help for Clear Highlights button
CWMS-355
- Buttons that activate subpanels will now deactivate the panel too
CWMS-358
- Mouse wheel for zooming is available when drawing tools are active, as long as the drawing tools are on a subpanel
CWMS-267
Bug Fixes
- Help guide - Import Layer Choose File/Browse button
CWMS-351
- Fix Legend layer titles to wrap
CWMS-337
- Fix Import Layer Summary font size to work in all environments
CWMS-340
- Fix Client Print Keymap zoom box to be clipped to keymap extent
- Don't zoom so far in when zooming a single point AOI
- Remove warnings from Measurement when AOI is a point
- Buttons need the
type="button" attribute CWMS-323
- If graticule tool is not not enabled, then local print layout won't show a graticule.
Configuration
- To bypass print options dialog, and have print button open print window directly,
set the key print.useLayout in map config to the name of the layout you wish to use.
v1.6.0
Beta release
Released on December 23, 2015.
(Superceded by v1.6.0a)
User Interface
- Move Selected & AOI display to reduce conflict with Base Map control
CWMS-153
- New toolbar buttons available:
- Draw AOI circle
CWMS-190
- Draw AOI point
CWMS-192
- Measure distance on linestring
CWMS-187
- Export AOI to Geomark
CWMS-189
- Import AOI from Geomark
CWMS-202
- Select tools stay enabled
CWMS-240
- Help window is now resizable
CWMS-259
- Search displays error message for invalid inputs
CWMS-274
- Local printout will now show graticule if it is visible on map, and will display coordinates of map center
CWMS-284
- Improve BCGNWS Place Name search results
CWMS-285
Bug Fixes
- In overlay config, the
styles property for layers is now respected CWMS-204
- Improve Layer List styling
CWMS-210
- When an identify operation is in progress, the feature processing phase can't be cancelled,
so the cancel button has been hidden in that state CWMS-211
- When a layer fails to load, don't show a transparent pink image
CWMS-212
- AJAX requests now use the current page protocol (
http or https) CWMS-216
- A default local print configuration is used if the print configuration is not specified
CWMS-219
- The legend display uses the configured
styles property for the layer CWMS-220
- Local print waits until all tiles are loaded before showing print dialog
CWMS-221
- Printing IE11 using HTTPS was broken
CWMS-233
- Changed BC Gov Base Map to use WMS to to eliminate broken tiles, allow deep zooming [CWMS-231, CWMS-275]
- Fix style handling for Identify requests against duplicate service layers
CWMS-237
- Select by Rectangle fixed to use a WFS Polygon query, which is accurate on GeoServer
CWMS-238
- Fixed Zoom to BC to always show whole province
CWMS-242
- Fixed auto-detect range for BC Albers projection
CWMS-249
- Fix reference to Search Location marker image
CWMS-253
- Zoom to layer when shapefile is imported
CWMS-276
- When doing local print, the scale & resolution dropdowns should be fixed at
current & low CWMS-283
- Fix issue with IE handling of errors during Identify GetFeatureInfo requests [CWM-286]
- Fix Imported layer to be NON identifiable and selectable, to prevent Identify failure [CWM-287]
- Fix cursor styles for tools
Configuration
- Added a overlay layer config option
keyAttribute to specify unique key for selection CWMS-251
- Added new base map CWM.Base.BCGovRoads.
CWMS-207
- Added a tool AOI_IDENTIFY_COPY to control whether Identify Copy to AOI control appears.
CWMS-246
- The map config relating to printing has changed.
CWMS-233
The property print.layouts[].files has been replaced by print.layouts[].url when the print.layout[].type == "local".
This is also reflected in a change to the print template model.
Formerly the print template was formed by concat'ing 3 files in cwm/assets: print-head.html, print.html, print-foot.html.
Now the print template is one file, for example: print-landscape.html.
There is also a javascript file in cwm/assets that the template uses: printout.js.
- The
useLayerTitle property in overlay config now defaults to true CWMS-222
The legend will show the layer title, unless the config says otherwise overlayConfig: [ { title: "overlay title", layer: [ { title: "layer title",
legend: {
useLayerTitle: <bool>
}
} ] } ]
The names of some of the javascript library dependencies has been changed.
The names always include version, and all library are minimized for production.
(The imports below are HTML and the src paths should be adjusted for your deployment).
JQuery import previously:
<script type="text/javascript" src="cwm/lib/jquery-1.11.2.min.js"></script>
should be replaced with:
<script type="text/javascript" src="cwm/lib/jquery-1.11.2.js"></script>
Proj4js import (unchanged):
<script type="text/javascript" src="cwm/lib/proj4js-1.1.0.js"></script>
OpenLayers import previously:
<script type="text/javascript" src="cwm/lib/OpenLayers.js"></script>
should be replaced with:
<script type="text/javascript" src="cwm/lib/OpenLayers-2.13.1.js"></script>
Rbush import previously:
<script type="text/javascript" src="cwm/lib/rbush.js"></script>
should be replaced with:
<script type="text/javascript" src="cwm/lib/rbush-1.3.0.js"></script>
JSTS (and Javascript.Util) import previously:
<script type="text/javascript" src="cwm/lib/javascript.util.js"></script>
<script type="text/javascript" src="cwm/lib/jsts.js"></script>
should be replaced with:
<script type="text/javascript" src="cwm/lib/jsts+util-0.13.2.js"></script>
Shp import previously:
<script type="text/javascript" src="cwm/lib/shp.min.js"></script>
should be replaced with:
<script type="text/javascript" src="cwm/lib/shp-3.1.4.js"></script>
- Improved layer attribute formatting
CWMS-245 CWMS-257
Formatting specs can now be nested to allow more formatting possibilities.
Formatting can now use regular expressions to parse and re-combine the value.
The format's type should now be specified inside the format object. Type string is assumed if not specified.
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
- New toolbar buttons available:
- Layer import
CWMS-168
- AOI editing undo and redo
CWMS-164
- Select by polygon
CWMS-176
- Clear highlight
CWMS-162
- Identify features control and feedback
CWMS-166
- Client side printing improvements:
- North arrow on printout
CWMS-172
- UTM Zone shown on printout
CWMS-173
- Layer list scale visibility feedback, layers not in visible scale range are now italicized
CWMS-169
- Layer list visibility behaviour, turning on a layer always turns on enclosing overlay
CWMS-170
- Search result detail
CWMS-175
- Search interpretation of a single number, is now assumed to be part of a street address
CWMS-174
- Help tooltips updated
CWMS-165
Public API
- Layer visibility control
CWMS-160
- Added
navigation.onChange to register callback when map extent changes.
Configuration
- To support select by polygon, the
geometryAttribute property is needed on a layer's config CWMS-176
overlayConfig: [ { title: "overlay title", layer: [ { title: "layer title",
geometryAttribute: 'GEOMETRY'
} ] } ]
- proj4js has been updated. Change the proj4js import to this:
<script type="text/javascript" src="../../cwm/lib/proj4js-1.1.0-min.js"></script>
Bug Fixes
- Black Base map & white base map failing
CWMS-161
- Coordinate display showing funny symbols
CWMS-163
v1.4.0
Released on July 6, 2015.
User Interface
- Added a panel to configure printed output
- Set title and notes
- Select print template
- Set scale and resolution
- Added support for server-side printing, that can produce PDF maps for any browser/OS.
This requires the Mapfish map printing service (will be deployed July 15).
- Existing print system (client-side) enhancements:
- Added north arrow to print template
- Print legend is now resized to fit width of print template
- Print overview is a static image
- Scale bar is now shown
- Showcase has been re-worked, and enhanced.
- Added a help page
- Added some examples for importing into AOI data import via copy&paste
- Added BCGW layers
- Map legend display shows only layers that are enabled. Overlay titles are shown
CWMS-133
- Add ability to accept zone when entering UTM coordinates
- If a layer fails to load, a transparent red layer will be shown
Public API
- Documentation updated on callbacks.
Configuration
- Added ability to configure the style of the search marker
mapConfig: {
search: {
style: {
}
}
}
- Added configuration to layer to control legend display
CWMS-133
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
}
} ] } ]
- Added configuration to layer attributes to control formatting
CWMS-124 CWMS-130
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
- Fixed bug in CWM.Map.zoomBC method
- Fixed bug in KML Overlay redraw
- Fixed map.highlight.addGeometriesFromLayerByAttribute
CWMS-121
- Fixed identify function so that only layers marked as visible are queried
CWMS-122
v1.3.1
Released on Mar 25, 2015.
Bug Fixes
- Printing now works in all browsers tested (IE 8-11, Chrome, Firefox)
- Fixed many gaps in functionality in IE8,9
Known Issues
- IE8,9 will not be able to use identify or selection operations unless the security settings are adjusted:
Tools | Internet Options | Security | Custom Level... | Miscellaneous / Access data sources across domains = Enable CWMS-115
- Import from a file or using drag-drop to drag in a file does not work in IE8,9.
This also prevents the loading of shapefiles in IE8,9. CWMS-112
- The overview map shown when printing will have an incorrect extent if using the 'Data BC' basemap
CWMS-113
- The dyadic geometry operators in the AOI calculator tool (union, intersection, difference) do not work in IE8,9
CWMS-109
v1.3.0
Released on Mar 11, 2015.
User Interface
- Added Identify All Visible Layers, identify layer display
- Added Identify against DataBC WMS services
- Added expandable Overlays in Layer List
- Added Overlay visibility control
- Added ability to import Shapefiles, as well a ZIP containing any of the supported formats
- Added client-side Printing
- Added site-specific online help
Public API
- Added aoi.onChange, identify.onChange, selection.onChange
- Deprecated callback.AOIChanged, callback.identifyChanged, callback.selectionChanged
Configuration
- Added attributes list with keys name,title,visible,unit to layer
- Added custom styling to Selection, Highlight, AOI layers
- Added attributes for substitution into print template
- Upgraded packaged jquery to 1.11.2
- Added a new dependency: shp.js
Bug Fixes
- Map resizing no longer crashes app
Known Issues
- IE11 has trouble with the print function, otherwise it works OK
- IE10 and earlier have problems
v1.2.0
Released on Feb 4, 2015.
User Interface
- Added selection toolbar and new tools: zoom to selection, clear, remove feature
- Fixed add to selection so that features can’t be selected twice
- Added visual feedback when the query for selection is in progress
- Fixed Identify so that it works against one overlay or a single layer
- Added visual feedback so that user knows where the identify click was, and that the query is in progress
- Prevent selection when the selectable layer is not visible (scale range)
- Show friendly name for layer in identify panel
Public API
- Added CWM.MapApi class to provide public API
- Added support for manipulating the selection (add, remove, query)
- Added support for manipulating the highlight (add, remove)
- Added support for manipulating the identified features ( remove )
- Added callbacks fired when the selection and identify change
- Added ability to override the contents of the identify panel
- Added CWM.Feature object so that API doesn’t need to directly expose OL objects
Configuration
- Added selectable attribute to layer
- Added max_scale attribute to layer
Examples