|
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
|
3227
|
|
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
|
3227
|
|
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
|
2299
|
|
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
|
3227
|
|
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
|
7441
|
|
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
|
2299
|
|
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
|
2302
|
|
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
|
2302
|
|
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
|
1386
|
|
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
|
1702
|
|
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
|
2893
|
|
POST
|
That's it! I had also tried using the "update" event, but that fires every time you pan and zoom the map. "update-end" seems to only fire the one time. Thanks very much! Michael
... View more
07-24-2014
09:11 AM
|
0
|
2
|
2893
|
|
POST
|
When I create a new FeatureLayer, I need to know when it has loaded the features into the layer. Using the onLoad event doesn't get it because that only tells me when "layer properties for the layer are successfully populated." Watching the console. I can see that all of my JavaScript code immediately after creating the featureLayer is executed before the response from the map service comes back. Therefore, if I use the featureLayer.on("load", function(){}) event, and tell it to count the number of features, it returns zero. If I execute the same count a few seconds later, it returns the expected number of features. Example: MyFeatureLayer = new esri.layers.FeatureLayer(mapServiceURL, { mode: esri.layers.FeatureLayer.MODE_SNAPSHOT, id: "MyFeatureLayer", outFields: ["*"] }); MyFeatureLayer.on("load", function(){ console.log("MyFeatureLayer loaded with: " + MyFeatureLayer.graphics.length + " features"); }) console: MyFeatureLayer loaded with 0 features
... View more
07-23-2014
05:15 PM
|
0
|
4
|
5042
|
|
POST
|
If you are posting the service to your own ArcGIS Server, you can post the raster as an image service and the JavaScript API IdentifyTask should work to return the pixel value. We have an application in development that is doing that.
... View more
12-05-2013
01:27 PM
|
0
|
0
|
3905
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-16-2022 03:06 PM | |
| 2 | 4 weeks ago | |
| 1 | 01-20-2026 09:45 AM | |
| 1 | 08-17-2023 03:38 PM | |
| 1 | 10-15-2025 09:48 AM |
| Online Status |
Offline
|
| Date Last Visited |
4 weeks ago
|