Skip to content

Commit

Permalink
Add support for point's measure
Browse files Browse the repository at this point in the history
  • Loading branch information
jcornet committed Sep 1, 2016
1 parent 8fee9c6 commit df6fa76
Show file tree
Hide file tree
Showing 6 changed files with 249 additions and 55 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ http://doc.arcgis.com/en/web-appbuilder/create-apps/widget-draw.htm
- localStorage
- dynamic saving on each drawing add/delete/update
- on widget load : load drawings saved in local Storage
- draws plus (from Larry Stout https://geonet.esri.com/people/Larry_Stout)
- 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.
- checkbox to hide drawing's layer (and therefore widget UI)
- add of Nautical unit
- measure's refactoring with automatic update on element's update (or delete). Measure's can be indidualy disabled/enabled on any polygon/polyline graphic.
- 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.
- defaults symbols can be specified in config's file

## configuration :
Expand All @@ -41,8 +41,8 @@ http://doc.arcgis.com/en/web-appbuilder/create-apps/widget-draw.htm
- (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 add ?)
- measure's labels patterns
- enable measure by default ? (is measure checkbox checked on polygon/polyline/point add ?)
- measure's labels patterns

## Installation :
Add eDraw folder in your webApp Builder client\stemapp\widgets folder.
Expand Down
8 changes: 8 additions & 0 deletions Widget.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,14 @@ <h2 data-dojo-attach-point="editorTitle">${nls.addDrawTitle}</h2>
<div class="distance-units-tip jimu-float-leading">${nls.distanceUnits}</div>
<select data-dojo-attach-point="distanceUnitSelect" data-dojo-type="dijit/form/Select" class=" jimu-float-trailing" style="width:50%;height:30px;"></select>
</div>
<div data-dojo-attach-point="pointMeasure" style="display:none;height:30px;">
<div class="distance-units-tip jimu-float-leading">${nls.pointUnits}</div>
<select data-dojo-attach-point="pointUnitSelect" data-dojo-type="dijit/form/Select" class=" jimu-float-trailing" style="width:50%;height:30px;">
<option value="map">${nls.unitMap}</option>
<option value="DMS">${nls.unitDMS}</option>
<option value="DD">${nls.unitDD}</option>
</select>
</div>
</div>
<hr />
<p class="editor-add-message" data-dojo-attach-point="editorAddMessage" style="display:none;">${nls.addMessage}.</p>
Expand Down
Loading

0 comments on commit df6fa76

Please sign in to comment.