POST
|
Hello All, Upon further inspection, I found that the graphic was being added to the maps graphics layer. a simple call of on(map.graphics, 'graphic-draw', lang.hitch(this, function(eventArg){
map.graphics.clear();
})); cleared the graphics layer of the unwanted graphic. Regards, Jacob Nosal
... View more
02-01-2017
12:26 PM
|
0
|
0
|
238
|
POST
|
Hello All, I am using the FeatureLayer.selectFeatures() function to select features on a user's click, but am having problems with it. Once a user clicks on a feature, it will flash the symbology that I've set as the selection symbol (red outline, transparent interior SimpleFillSymbol) and the show another symbology. I have inspected the return of FeatureLayer.getSelectedFeatures() with no success. Only the correctly symbolized graphic is present. I've attached a screenshot: I am unable to share code as this is a client deliverable, but am hoping someone else has ran into this problem before.
... View more
02-01-2017
07:26 AM
|
0
|
1
|
572
|
DOC
|
This presentation will focus on leveraging automation tools to produce consistent environments across development, testing, and production with tools such as Chef, Vagrant, and Visual Studio Team Services. Real world examples of deploying Web AppBuilder for ArcGIS widgets in diverse settings will be highlighted, as well as challenges and triumphs of our team. Web applications are the most visible aspect of our industry. Our clients require IT and Security compliance before form or function of deliverables; however we often say “but, it works on my machine.” This stems from an inversion of concerns and can be remedied through a holistic approach to DevOps. ESRI’s release of the ArcGIS Chef cookbooks offers an approach to replicating a production environment during development. This encourages a developer to be more thoughtful and efficient and is particularly useful when developing widgets and web apps for ArcGIS Portal and ArcGIS Online that are distributed to multiple clients in different environments. The end goal is for your environment to move from development to testing to production seamlessly, ultimately giving developers better tools to make better software. And so I never say “but, it works on my machine” again!
... View more
01-13-2017
08:10 AM
|
6
|
1
|
945
|
POST
|
It seems as though the documentation is incorrect. Including an array of FeatureLayers outside of the onLoad event works. templatePicker = new TemplatePicker({ featureLayers: [ this.map.getLayer(this.map.graphicsLayerIds[0]), this.map.getLayer(this.map.graphicsLayerIds[1]), this.map.getLayer(this.map.graphicsLayerIds[2]) ] }, templateNode); templatePicker.startup(); This code is working for me.
... View more
12-15-2016
07:45 AM
|
0
|
0
|
302
|
POST
|
Hello All, I am trying to include the esri/dijit/editing/TemplatePicker widget in my WAB widget, but am having a problem. The documentation states that: "The TemplatePicker must be created and started inside the onLoad event of the map or the layer for which it is associated." However, WAB loads the portal map far before my widget can be opened. How can I access this event or otherwise use the TemplatePicker widget? Thank you for your help! Regards, Jacob Nosal
... View more
12-14-2016
04:04 PM
|
0
|
1
|
570
|
POST
|
I have used the Yeoman generator esri-appbuilder-js:widget from the ESRI github. Would that give me the appropriate template? I am reading about the structure of a dojo templated widget right now.
... View more
11-10-2016
01:34 PM
|
0
|
1
|
520
|
POST
|
I just purged dom ids from widget B and am having the same problem.Can you recommend a style guide or template structure wiki?
... View more
11-10-2016
01:06 PM
|
0
|
3
|
520
|
POST
|
Thanks Robert. Ids are used in widget B. Would that cause widget A to not render?
... View more
11-10-2016
11:56 AM
|
0
|
1
|
520
|
POST
|
I am developing a custom WAB widget that needs to coexist with other widgets in the same application. Currently, I have two widgets, call them A and B respectively. Open widget A > close widget A > open widget B > console error: "dojo/parser::parse() error Error: Tried to register widget with id==_5 but that id is already registered(…)" >close widget B > open widget A > html doesn't render, events are registered. Open widget B > close widget B > open widget A > console error: "dojo/parser::parse() error Error: Tried to register widget with id==_5 but that id is already registered(…)" > close widget A > open widget B > no errors are encountered and widget works as desired. Has anyone experienced a similar problem? Regards, Jacob Nosal
... View more
11-10-2016
11:44 AM
|
0
|
1
|
376
|
POST
|
I am developing a custom WAB widget that needs to coexist with other widgets in the same application. Currently, I have two widgets, call them A and B respectively. Open widget A > close widget A > open widget B > console error: "dojo/parser::parse() error Error: Tried to register widget with id==_5 but that id is already registered(…)" >close widget B > open widget A > html doesn't render, events are registered. Open widget B > close widget B > open widget A > console error: "dojo/parser::parse() error Error: Tried to register widget with id==_5 but that id is already registered(…)" > close widget A > open widget B > no errors are encountered and widget works as desired. Has anyone experienced a similar problem? Regards, Jacob Nosal
... View more
11-10-2016
11:43 AM
|
0
|
7
|
859
|
POST
|
I am trying to writing a WAB widget that will allow a user to click on a road (or another linear feature) and snap a marker symbol to that roadway. As the user moves the cursor, the marker should be placed at the point closest to the cursor on the road feature. I think that I should be able to do this with the SnappingManager, but have only seen this class used in the context of Measurement and other esri/dijits. Is the SnappingManager restricted to use in the esri/dijits?
... View more
09-27-2016
03:39 PM
|
0
|
1
|
790
|
POST
|
I've got it working now actually. Can you provide a link to the documentation you are referring to? For posterity's sake.
... View more
09-21-2016
07:15 AM
|
0
|
1
|
348
|
POST
|
Hello all, I am working on creating a custom widget that allows a user to preview images of features on the web map. The webmap is hosted through Portal backed by ArcGIS for Server. The problem that I'm currently working through has to do with the configurability of the map and designating layers by url (because I can't assume they will be in any specific order). I am trying to save the urls to the config.json file in my widget, but am having trouble with the dojo.request.xhr.() call as the config.json is not in the root directory. Is there a better way to approach this? At a basic level, I'm asking for best practices concerning writing to config.json in settings.js in order to access config.json in widget.js. Regards, Jacob Nosal
... View more
09-20-2016
07:09 AM
|
0
|
3
|
903
|
POST
|
The map rotation was a hack to get some other functionality working. My desire would be to rotate the envelope and set the extent to the envelope -- which would negate the map rotation portion of my question. I really just want to be able to rotate a Geometry object around its centroid by a given angle. I would add that this would be near equivalent (in my mind) to setting the map rotation and the calling ZoomTo(geom), but that method always seems to zoom in too far. It cuts out large portions of the features I want to zoom to, rendering it useless without zooming out.
... View more
07-25-2016
11:16 AM
|
0
|
1
|
421
|
POST
|
Well, I suppose that I'd like to rotate the entirety of the geometry. But I'm not wanting to update the feature that it came from. To clarify, I've selected a feature from a feature table and called queryEnvelope() to return the enclosing envelope of the feature. It is this envelope that I want to rotate as a way to set the extent of the map.
... View more
07-25-2016
09:32 AM
|
0
|
3
|
421
|
Title | Kudos | Posted |
---|---|---|
6 | 01-13-2017 08:10 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|