|
POST
|
Once again the ESRI instructions are skimping on their details. It would have been nice to know that it was going to 'hang' in that section. Everything is working fine. Obviously I have more reading to do on defining settings of a widget.
... View more
02-10-2016
06:21 AM
|
0
|
1
|
1026
|
|
POST
|
I first made the suggested change by @Robert Scheitlin to add one more color to the Foldable Theme. This was pretty straight forward. Our web pages are blue, but not the same shade. I've lost track of the thread where he suggested it ... Next I started working through the sample exercise in the documentation on creating your own widget. Everything seems to be fine there. I copied it from the samplewidget folder into Widgets. It shows up just fine as a widget I can add. But once I do, it just sits there at a configuration window. Is there something missing in the sample code instructions, or could there possibly be a conflict with the theme I created? I tried switching to another color, still in the Foldable Theme, but my widget still doesn't load properly. There are no errors in the console (I hate that!).
... View more
02-09-2016
02:40 PM
|
0
|
3
|
2865
|
|
POST
|
Yes, they really do! Apparently you can't create a developer account if you have a .gov email. I contacted ESRI and their site doesn't meet certain federal guidelines. They can't distinguish between a federal .gov account and my .state.gov account. I have access to two different organizational, but since I set both of them up myself, they are configured about the same. Neither seems terribly restrictive. I haven't been able to track down the difference in security/permissions between what you can do with a Developer account vs. an organizational one.
... View more
02-09-2016
09:55 AM
|
0
|
1
|
3152
|
|
POST
|
I am currently working through the DIY GeoApps course and one of the exercises requires me to use the Analysis button to load some Living Atlas content. When I attempt to do this, I get a mixed content message. I understand what this message is, but since this is ESRI data, and I'm using their Analysis tool to load data, I don't feel like I have any control over whether I'm loading this particular layer over http vs https. If I try the Add Data button and select Browse Living Atlas layers, then I can successfully choose and add data this way. However, these doesn't seem to be the same choices as I have under Analysis > Enrich Layer > Choose Living Atlas Analysis Layer. Once I choose a layer, then I see the mixed content message in my console log. I checked my organizational settings, but the security settings seem OK to me. I tried checking 'use HTTPS only', but that didn't make a difference.
... View more
02-09-2016
07:23 AM
|
0
|
10
|
6681
|
|
POST
|
I agree that it should work in whatever order the user tries it. I must have instinctively been doing it one way originally and changed it up a little when I was paying more attention. It's always frustrating to hear of a bug that exists through multiple versions.
... View more
02-09-2016
06:20 AM
|
0
|
1
|
2462
|
|
POST
|
It must have needed lunch. I tried several times this AM and no matter what distance I entered, it always drew the distance the same as the original size. Now it seems to be working. Weird. I'm going to keep an eye on it, definitely.
... View more
02-08-2016
11:25 AM
|
0
|
1
|
2462
|
|
POST
|
I am trying to configure the Incident Analysis widget. When you use the slider on the buffer distance, it works. IIf you use what looks like an input field to enter a distance, this doesn't work. This seems like a bug, but I haven't found a note of this yet. This is the online version.
... View more
02-08-2016
10:16 AM
|
0
|
7
|
4143
|
|
POST
|
I just have points, and it works to undo a move. There'd be no scale or rotate with those, though. I was disappointed to see that undo/redo didn't include attribute changes.
... View more
02-02-2016
09:06 AM
|
2
|
0
|
2075
|
|
POST
|
You must also define number. Once I added 'esri/geometry/geometryEngine', and 'dojo/number' along with their properly placed variables, your formatting function worked for me.
... View more
02-01-2016
12:50 PM
|
2
|
0
|
1920
|
|
POST
|
When you define your infoTemplate content with a function, you have to pass it the name of your function. it should be: template.setContent(setContent) OR whatever you have called your function. I name my function something else to avoid confusion. If you're not sure of your calculation, set some breakpoints within that function and make sure you have a value. If you're not getting a value for sqft, then yes you're likely to have problems with what the function is returning. There are a variety of reasons why this might not return the right output, including failing to define geometryEngine somewhere higher up in your code.
... View more
02-01-2016
12:29 PM
|
1
|
1
|
1920
|
|
POST
|
My solution needed a little tweaking. Here's the final: on (app.eusLayer, "click", function (evt) {
app.feat = evt.graphic;
if (!dom.byId('zoomLink')) {
app.link = domConstruct.create("a", {
"class": "action zoomTo myZoom",
"id": "zoomLink",
"title": "My Zoom",
"innerHTML": "Zoom To",
"href": "javascript: void(0);"
}, query(".sizer", app.myEditor.attributeInspectordomNode)[1]);
on (app.link,"click", function(){
app.map.infoWindow.hide();
var geom = app.feat.geometry;
var lod = app.map.getLevel();
if (geom.type === 'point') {
app.map.centerAndZoom(geom, lod + 4);
} else {
app.map.setExtent(geom.getExtent(), true);
}
});
}
app.eusLayer.clearSelection();
});
... View more
02-01-2016
11:42 AM
|
0
|
0
|
1673
|
|
POST
|
You'll need to create your entire formatted string within your function. function setContent(value) { var formatString = "<b>Property Name: </b> + value.attributes.PropertyName +"<br/>" var sqft = geometryEngine.geodesicArea(value.geometry, "square-feet"); var squarefeet = number.format(sqft, { places: 1 }); var acres = number.format(sqft / 43560, { places: 0 }); formatString += "Acres: " + acres; return formatString; }
... View more
02-01-2016
11:39 AM
|
1
|
1
|
1920
|
|
POST
|
Thanks. I was looking for something styled the same as the typical Zoom To at the bottom of an InfoWindow. I'm not explicitly defining my attributeInspector, so there's not much from this example I thought I could use without extensive rewrite. This seems to work, though. on (myFeatureLayer, "click", function (evt) { if (!dom.byId('zoomLink')) { app.link = domConstruct.create("a", { "class": "action zoomTo myZoom", "id": "zoomLink", "title": "My Zoom", "innerHTML": "Zoom To", //text to appear in the popup for the link "href": "javascript: void(0);" }, query(".sizer", app.myEditor.attributeInspectordomNode)[1]); on (app.link,"click", function(){ app.map.infoWindow.hide(); var geom = evt.graphic.geometry; var lod = app.map.getLevel(); if (geom.type === 'point') { app.map.centerAndZoom(geom, lod + 4); } else { app.map.setExtent(geom.getExtent(), true); } }) } })
... View more
02-01-2016
07:00 AM
|
2
|
0
|
1673
|
|
POST
|
I don't think it's well documented at all, for something so versatile. It makes me wonder what else we're overlooking!
... View more
01-29-2016
02:40 PM
|
0
|
0
|
1837
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-02-2017 02:38 PM | |
| 2 | 03-18-2022 10:14 AM | |
| 2 | 02-18-2016 06:28 AM | |
| 1 | 03-18-2024 07:29 AM | |
| 4 | 08-02-2023 06:08 AM |
| Online Status |
Offline
|
| Date Last Visited |
02-25-2025
01:56 PM
|