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.
Jeremie,
Great work.
My initial comment have to do with UI, and most will just be my preferences/opinions
Thanks for your answer Robert.
(I just edit the post...)
1. I didn't find documentation on jimu/dijit/Message so i use it just for information message (like in widget loading if there are drawings saved in local storage).
For example, the type 'error' wich is mentionned in source code doesn't work (when passing type:error in constructor parameters).
2. Ok.
It just jimu-input class now. I will add css to have better experience with these buttons.
3. Ok.
Thanks
Jeremie,
I love the widget. I second all of Robert's comments, plus I have a few of my own:
A. Can't change the name or location when exporting a file.
B. Can't enter text. The text preview is always the same as drawing name
C. Not sure what I am saving. If only one drawing, then how do I select another drawing to export?
D. The drawings should be selectable on the widget as well as on the map.
That said, I've copied a few goodies from my Flex Viewer to the Esri Draw Widget for text. You can select the font, make the font bold, italic, and/or underlined, rotate the text, and best of all the text floats over the map with your cursor when you place it. I'm planning to add a checkbox for a text halo, too.
Some of these enhancements should also work for point symbols. I never want the user to be surprised with the placement of text or points when they click on the map to place them.
Larry
P.S. My draw widget is here. I didn't change any of the Esri code. It's all done with dojo/aspect.
Hi Larry,
Is the code for the widget transparency functionality somewhere I could look at? It seem helpful.
Thanks,
Brandon
Brandon,
The widget opacity is a mixin that can be added to any panel widget by reference. It's one of the few enhancements I've made that requires editing the widget code, but it only affects three lines of code. I have put my mixin in my Acme Widget folder just for convenience. It can be anywhere you want.
I've attached the Widget Opacity Mixin and what little documentation I have written so far (includes all of my WAB enhancements).
The documentation is in its very early stages, so feel free to ask follow-up questions.
Larry
Thanks Larry,
I will read through your documentation and let you know any thoughts/comments.
Best,
Brandon
Larry,
A. Changing target location depends on your browser's settings.
For the default file name, 2 options i think :
1) Let the user modify it in a text field
2) In widget config (i prefer this one)
B. Yes, it's a choice. Therefore it can be discussed !
C. The file exported contains all drawings.
D. I have added the map selection yesterday ! (i hav'nt yet update the demo)
Your text's options are great ! We could merge our 2 widgets.
Could you send me the code ?
Are you familiar with git ? We could work on the same github repository !