POST
|
I'm in the process of implementing dynamic placement of points, triangles, circles and ellipses also, I think the user should never be surprised at what he is drawing. I'll keep you posted. I'm also going to add a halo option for text. Larry
... View more
02-27-2015
06:28 AM
|
1
|
1
|
1957
|
POST
|
P.S. My draw widget is here. I didn't change any of the Esri code. It's all done with dojo/aspect.
... View more
02-26-2015
10:15 AM
|
0
|
4
|
9633
|
POST
|
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
... View more
02-26-2015
10:14 AM
|
1
|
9
|
9633
|
POST
|
I like Robert's approach better also. I was curious about using multiple geocoders, and did some testing. It seems the active geocoder is always geocoderWidget.domNode.children[0], and there never is a geocoderWidget.domNode.children[1]. Furthermore, the event listener assigned to geocoderWidget.domNode.children[0] seems to transfer to any active geocoder. Strange. Here's a variant on Robert's approach that I tested with two geocoders: query('.jimu-widget-geocoder > .simpleGeocoder').forEach(lang.hitch(this, function(node) {
var geocoder = registry.byId(node.id);
on(geocoder, 'clear', lang.hitch(this, 'clearResults'));
}));
The forEach() construct implies multiple objects will be returned, but in fact, only one is ever returned. Larry
... View more
02-26-2015
09:36 AM
|
1
|
1
|
551
|
POST
|
Tobias, Here's the short version. I have a widget (Acme) that is an on-screen widget, but does not display. Being an on-screen widget, it is started when the app starts. It reads the HTML template for a feature layer from the Acme config file and then sets it as the infoTemplate on the layer. Here's a code fragment: customInfoTemplate = new PopupTemplate();
customInfoTemplate.setTitle(lang.hitch(this, '_getInfoWindowTitle', content.title)); // for mobile popup title
customInfoTemplate.setContent(lang.hitch(this, '_getInfoWindowContent', content));
layer.setInfoTemplate(customInfoTemplate);
I can send you the long version if you like. Larry
... View more
02-26-2015
08:21 AM
|
2
|
1
|
1223
|
POST
|
Doug, The problem with this approach is that the Geocoder Widget starts automatically and you can't get access to the _initGeocoder() function before it has run. I noticed the findComplete function runs with every find, so you could do it this way: aspect.after(widget, 'findComplete', lang.hitch(this, function(response) {
if (!this.geocoderAltered) {
this.geocoderAltered = true;
widget.own(on(response.target, 'clear', lang.hitch(this, 'clearResults')));
}
}), true);
I've tested this and it seems to work, Larry
... View more
02-25-2015
04:06 PM
|
0
|
0
|
551
|
POST
|
Thomas, You don't have to move your data to AGOL to author a web map. The map below points to my servers for every service. In fact, I have copied no data to AGOL. http://hamco.maps.arcgis.com/home/webmap/viewer.html?webmap=09ab39d0c3ce4d8aae8aacfa47e7b818 Here's a link to my "souped up" WebApp Builder that uses the above map: http://gis.hamiltoncounty.in.gov/mapviewer/index.html
... View more
02-25-2015
03:20 PM
|
5
|
10
|
1223
|
BLOG
|
I'm not trying to make work for you. For now, I've made a copy with no spaces: ftp://ftp.hamiltoncounty.in.gov/GIS/AWAB/DOCS_AWAB_Viewer_Enhancements_and_Extensions.zip The old one is still out there, so let me know when you have changed your link and I'll delete it. The document itself has a date and an update history. That's the best I can do for now. Thanks for doing this. Larry
... View more
02-24-2015
06:57 PM
|
1
|
0
|
13498
|
BLOG
|
Rebecca, I have updated my documentation to include some enhancements to Esri's Bookmark and Draw widgets. The new document link is ftp://ftp.hamiltoncounty.in.gov/GIS/AWAB/DOCS%20-%20AWAB%20Viewer%20Enhancements%20and%20Extensions.zip I've added an appendix to track changes to the document, so this should be the last time its link changes. Larry
... View more
02-24-2015
12:44 PM
|
1
|
0
|
13498
|
POST
|
Rebecca, If you were inside my firewall, you would also have access to our Assessor's photos: This illustrates some of the security I have built in. There are also several layers available only if you are inside the firewall. Larry
... View more
02-24-2015
08:41 AM
|
2
|
0
|
1063
|
POST
|
Rebecca, It's a widget, but has dependencies on another widget (that I call Acme). Acme is like a traffic cop. It starts several widgets, and modifies the behavior/appearance of several Esri widgets. Here's a link to what little documentation I have written so far: ftp://ftp.hamiltoncounty.in.gov/GIS/AWAB/2015-02-10_DOCS.zip I'm about finished with mods to Esri's Bookmark and Draw widget. I'm chasing some Safari issues now, and hope to add to the documentation soon. Thanks for adding me to your resource list. Larry Update: The documentation is now part of the Web AppBuilder Application you can download from here: Larrys Custom WAB Widgets and More Larry
... View more
02-23-2015
02:27 PM
|
1
|
1
|
1440
|
POST
|
That's my goal. I'm not very good with GitHub yet, but I plan to change that soon. In the meantime, You can have anything you want. Just send me an email using the feedback link on http://gis.hamiltoncounty.in.gov/mapviewer/index.html. Larry
... View more
02-22-2015
07:15 PM
|
0
|
3
|
1440
|
POST
|
I don't think this is exactly what anyone has requested, but the technique may be useful. I needed to "intercept" the WebMap and remove any layers that were secured or that were unreachable before loading the web map. I added a reference in index.html to a new JavaScript file, modifyWebMap.js. That's where all of the magic happens. The file is 375 lines, so I've attached a link to it rather than copying the code into this reply: ftp://ftp.hamiltoncounty.in.gov/GIS/AWAB/modifyWebMap%202015-02-20.zip Larry Update: I've updated the files I use for this. There is now a preProcess.js called by index.html. preProcess.js calls validateWebMap.js (and probably other files in the future). These are part of the Web AppBuilder Application you can download from here: Larrys Custom WAB Widgets and More Larry
... View more
02-20-2015
07:09 AM
|
2
|
6
|
1440
|
Title | Kudos | Posted |
---|---|---|
1 | 08-03-2015 07:45 AM | |
1 | 08-06-2015 05:32 PM | |
1 | 08-11-2015 06:08 PM | |
1 | 06-09-2015 06:58 PM | |
1 | 01-22-2015 03:06 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|