Skip to content

Commit

Permalink
Version 2.8.1 :
Browse files Browse the repository at this point in the history
 - refactoring for code lisibility
 - use esri/geometry/projection (available since esri js api 3.24) instead of proj4js
 - systematic use of geometry engine (no more mercator utils, geometry server...)
 - for polyline, the user can now add an arrow (available since esri js api 3.23)
 - live measure while drawing
  • Loading branch information
jcornet committed May 9, 2018
1 parent fc6c90b commit b1fc5ff
Show file tree
Hide file tree
Showing 9 changed files with 2,514 additions and 2,552 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,13 @@ https://github.com/proj4js/proj4js
- draws plus (initially from Larry Stout https://geonet.esri.com/people/Larry_Stout)
- preview under mouse when adding text or point
- for text, add font choice, font angle, bold, italic, placement and underline options.
- add arrow menu for polyline
- checkbox to hide drawing's layer (and therefore widget UI)
- add of Nautical unit
- measure's for points/polylines/polygons with automatic update on element's update (or delete). Measure's can be indidualy disabled/enabled on any graphic.
- "On the fly" measure when drawing
- defaults symbols can be specified in config's file
- use of builtin projection engine (available since esri js api 3.24) instead of proj4js library

## configuration :
- export file name.
Expand All @@ -42,8 +45,6 @@ https://github.com/proj4js/proj4js
- if not empty, all apps with the same key share the same local storage (apps on the same server)
- Choose availables font families in text plus
- (without UI) set default symbols
- use geometryEngine for measure ?
- specify geometryServer for measure (not used if geometryEngine is activated)
- enable measure by default ? (is measure checkbox checked on polygon/polyline/point add ?)
- measure's labels patterns

Expand Down
9 changes: 9 additions & 0 deletions Widget.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ <h2 data-dojo-attach-point="editorTitle">${nls.addDrawTitle}</h2>
<span class="is-measure" data-dojo-attach-point="isMeasureSpan" style="display:none;"><hr />${nls.isMeasureMessage}</span>
<hr />
<div data-dojo-attach-point="editorSymbolChooserDiv" class="full-width"></div>
<div data-dojo-attach-point="editorSymbolLinePlusNode" style="width:100%; height:40px;">
<div class="jimu-float-leading" style="width:40%;height:30px;">${nls.arrow}</div>
<div data-dojo-attach-point="editorLinePlusArrow" data-dojo-type="dijit/form/Select" class="jimu-float-trailing" style="width:57%;height:30px;">
<span value="">${nls.arrowNone}</span>
<span value="end">${nls.arrowEnd}</span>
<span value="begin">${nls.arrowBegin}</span>
<span value="begin-end">${nls.arrowBeginEnd}</span>
</div>
</div>
<table class="symbol-set-table" cellspading="0" data-dojo-attach-point="editorSymbolTextPlusNode">
<tbody>
<tr class="draw-plus textFontOptions">
Expand Down
Loading

0 comments on commit b1fc5ff

Please sign in to comment.