Ehanced draw widget for WebApp Builder for Arcgis
UPDATE 2018/05/09 (new Release v2.8.1) :
(Direct zip link : https://github.com/magis-nc/esri-webappbuilder-widget-eDraw/releases/download/v2.8.1/eDraw.zip )
Demo : https://apps.magis.nc/demo/eDraw/
Github :
https://github.com/magis-nc/esri-webappbuilder-widget-eDraw
Wigdet's Features (improvments of standard Draw widget) :
This message was updated by Jeremie Cornet (New Release)
Solved! Go to Solution.
I have found the solution !
In the function editorEnableMapPreview
Replace the following line:
this._editorConfig["phantom"]["handle"] = on(this.map, 'mouse-move, mouse-out, mouse-over', lang.hitch(this, function (evt) {
By this line :
this._editorConfig["phantom"]["handle"] = on(this.map, 'mouse-move, mouse-out', lang.hitch(this, function (evt) {
mouse-over is not necessary
Hi Jeremie,
I downloaded your widget and placed it like you wrote in the instructions (Add eDraw folder in your webApp Builder client\stemapp\widgets folder)
but when I try to add it to my app I get an Error that say there is something wrong in the setting page for creating the widget.
do you have any idea what went wrong?
I'm using the latest WAB version for developers.
Thanks,
Dikla.
Hi Dikla,
Can you do a screenshot of the error message?, so we can understand better what the problem is. Also when you added it to your WAB Dev. main site folder did the running script give an error???
Hi,
The error was partially in Hebrew.
I'll change my browser settings and try it again.
meanwhile, I tried to use the widget in an earlier version of WAB and it is working great.
so maybe the widget is not compatible to the latest WAB version?
Hi Dikla,
It is compatible with the latest WAB (2.1) as many of us do use the widget with our applications.
Baba
"create widget setting page error: widgets/edraw/widget"
if I press "ok" and then again "ok" the widget is added to the app. I just can't configure it in the setting page.
Hi Dikla,
Did you get any error when you added in the widget to your WAB client\stemapp\widgets?, also since you said it works in the previous version, why do an upgrade of your WAB from the previous version by following the steps in the link below:
Upgrade apps—Web AppBuilder for ArcGIS (Developer Edition) | ArcGIS for Developers
Else you can copy (manually) the folder of the widget from the previous version to the current and do a replace
Baba
I found the bug when placing a point after placing a text
We must change the following line in the function editorSetDefaultSymbols
Before:
case "textsymbol":
this.drawBox.setPointSymbol(symbol);
After:
case "textsymbol":
this.drawBox.setTextSymbol(symbol);
Hi all !
Sebastien Pelletier, thanks for your debugs !
If you are familiar with github, could you make a pull-request with your corrections.
I am on long holiday so i cannot correct it myself now but i can easily validate a github's pull-request.
I will come on geonet in few weeks and post a new release.
Hi Jeremie Cornet,
Unfortunately I am not very familiar with github, I'll let you make changes.
I also corrected two new bugs
1- With IE sometimes we need click 2 or 3 times to the buttons react. To correct, replace ondijitclick by onclick in widget.html file
2. When placing a point the symbol chosen is not the same color as the one selected. To correct I added a line in editorSymbolChooserConfigure
this.editorSymbolChooser.showBySymbol(symbol);
//**********NEW LINE********
this.editorSymbolChooser.showByType(this.editorSymbolChooser.type);
//***************************