|
POST
|
OK, that was it. I was calling that method directly as the callback function of query.execute, but I understand now why that would make this.map our of context to the called function. Using lang.hitch instead fixed it. I found a pretty good page that describes JavaScript variable scope and the times to use lang.hitch here: Making Functions with hitch and partial - The Dojo Toolkit
... View more
11-21-2014
12:53 PM
|
0
|
1
|
654
|
|
POST
|
Nope, _displayCity is not called until the user has selected from the dropdown list, which is not only well after startup, it is called right after _zoomToCity which access the map properly. In my console screenshot above you can see the order. Whenever it shows [object object] then it is the map object. when it hits _displayCity it changes to a DIV called map.
... View more
11-21-2014
11:11 AM
|
0
|
3
|
654
|
|
POST
|
I know, it is strange. I can get this.map to be the esri map object in all of my methods except the one that actually will use it. I must have a syntax error or something. I will keep digging until I find it.
... View more
11-21-2014
10:57 AM
|
0
|
5
|
2167
|
|
POST
|
I have a related follow-up question. Do I need to do anything special or include something that I haven't in order to access the map object? Similar to my OP, when I reference this.map I am getting the HTML element with id="map", not the esri map object.
... View more
11-20-2014
04:49 PM
|
0
|
7
|
2167
|
|
POST
|
I found that in in the WAB documentation, so kudos to Esri for putting that in there and thanks again Robert for helping me out. Define the template—Web AppBuilder for ArcGIS (Beta) | ArcGIS
... View more
11-20-2014
03:00 PM
|
0
|
0
|
2167
|
|
POST
|
Great! It helped me gain some basic understanding of the process and it is essentially a "Hello World" example.
... View more
11-20-2014
09:27 AM
|
0
|
0
|
1648
|
|
POST
|
That was it, thanks a lot! For anyone else reading this, the CustomTemplateWidget provided with the WAB doesn't include that line, and it seems to me it probably should. Robert, would you say that _WidgetsInTemplateMixin will always be needed in that return statement when building custom widgets?
... View more
11-20-2014
09:25 AM
|
0
|
2
|
2167
|
|
POST
|
I am trying to make my first custom widget for the WAB 3 (developer's edition). I started with the CustomWidgetTemplate, moved it to the appropriate folder and I can now see it in my app. It is a simple in panel widget with some text. So far so good. Next I want to add a Select dijit and populate it with a list of city names. I examined the DRAW widget because it uses some select dijits. I followed the HTMl and JavaScript patterns from the DRAW widget to add my Select dijit, but when I run the widget in the app, it shows as a regular HTML select and I can't treat it like a dijit. I think I have all the necessary Dojo requires. What am I missing? My widget's HTML <div data-dojo-attach-point="selectCity" style="display:block;height:30px;margin-bottom:7px;"> <div style="float:left;height:30px;;line-height:30px;padding-left:17px;">Select City</div> <select data-dojo-attach-point="citySelect" data-dojo-type="dijit/form/Select" style="float:right;width:50%;height:30px;"></select> </div> My JavaScript. In this code, I get an error if I uncomment the 'citySelect.addOption' line because it says this.citySelect is undefined. If I access this.citySelect from the console, it shows as an HTML select, not a dijit.
... View more
11-19-2014
04:11 PM
|
0
|
14
|
6082
|
|
POST
|
Have you watched this one yet? Customizing and Extending Web AppBuilder for ArcGIS | Esri Video
... View more
11-19-2014
03:50 PM
|
3
|
4
|
1648
|
|
POST
|
Scott, I might know what happened if we did the same thing. The documentation for the WAB says "The app created by Web AppBuilder can be downloaded and hosted on your web server. Any app that is downloaded must be registered..." Download app—Web AppBuilder for ArcGIS (Beta) | ArcGIS Then it proceeds to tell you to search for "web appbuilder" and then download a file called "webappviewer" and then goes on to tell you how to configure it using JSON config files. I think that is very misleading. As far as I can tell, the app that you have configured online with WAB cannot then be downloaded. These instructions have you downloading the unconfigured viewer, not the Web App Builder. Even though when you search for "web appbuilder" the search results describe what you are going to download as being the WAB, instead you end up with the viewer. The screenshot even shows the web app builder interface. http://kingcounty.maps.arcgis.com/home/item.html?id=fffd70b754594c54bc58d90d4e897e19 I figured out hat what you really need to do is go here: https://betacommunity.esri.com/home.html and download the WebApp Builder (Developer addition). Download that, unzip it, then run startup.bat and will run a local copy of the WAB. I did this, then created an app like I had done on AGO and saved it and then I had a local copy of my app pre-configured by the GUI WAB. So far so good! Good luck! - MJ
... View more
10-30-2014
10:26 AM
|
1
|
2
|
1562
|
|
POST
|
That's what we'd like to be able to do as well. I will monitor your question in hopes of getting an answer. Thanks for asking this!
... View more
10-29-2014
11:20 AM
|
0
|
0
|
1562
|
|
POST
|
Thank you for that excellent and correct response. It doesn't seem to like percentages for the height, but setting it in absolute pixels works great.
... View more
08-26-2014
09:43 AM
|
0
|
0
|
965
|
|
POST
|
How can I enlarge my editor dijit so I don't get annoying scroll bars and lots of useless white space? I have tried to dig into the CSS and find a way, but with no success. Unlike many other classes in the JSAPI, the documentation makes no mention of CSS classes to use when styling the dijit.
... View more
08-18-2014
04:53 PM
|
0
|
2
|
1281
|
|
POST
|
That is correct. I my case I am using SNAPSHOT mode so it only fires once, unless I have a refresh interval set, in which case it also gets fired after each refresh. I tried it with 30 minutes initially. Thanks!
... View more
07-29-2014
03:34 PM
|
0
|
0
|
2412
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 3 weeks ago | |
| 2 | 08-19-2025 01:27 PM | |
| 1 | 06-03-2025 12:57 PM | |
| 1 | 06-03-2025 12:08 PM | |
| 1 | 04-09-2025 03:41 PM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|