|
POST
|
That was the scary part for us. We have extensive cyber security scans that are run on our servers. These did not turn up the problem. It was just some internal testing of how tight to make our GIS proxy configuration, and we were testing with non-ESRI services to see what we could see. More than we thought we should be able to! I'm sure every server environment is different. It could just be the combination of our settings, network and security that were specific to us. I couldn't even begin to describe ours, its not my subject area and we're a large organization.
... View more
01-11-2016
06:24 AM
|
0
|
0
|
4968
|
|
POST
|
That does help, but it doesn't switch back. Once you've change to the plainer infoWindow, it stays there. I always use Popup, but in the case of the original example, which includes a tabContainer, a couple of content panes and a chart, it doesn't draw correctly until you specify infoWindow instead. I stared at my setContent function for quite a while, assuming my problem was there, before I finally took a step back and looked elsewhere.
... View more
01-08-2016
01:19 PM
|
0
|
1
|
2039
|
|
POST
|
I completely agree with Girish's comment. If you do not specify an allowedReferers, it's not just your ESRI / AGS servers that you leave open for all to see and use. Someone can actually use that proxy file to get to other servers in your network. We tested this recently and was shocked to see that we were impacting other servers on our network by leaving it just with the wildcard. The documentation says 'you shouldn't leave allowedReferers as the default *. The documentation should be much more strongly worded that this.
... View more
01-08-2016
01:03 PM
|
1
|
2
|
4968
|
|
POST
|
I'm working through the example Info window with chart | ArcGIS API for JavaScript The key seems to be the use an infoWindow rather than a popup for the template in the constructor of the Map. I have other layers in my map, though, where I'd prefer to use popups. In the map documentation, it looks like I can use map.attr to change this. map.attr('infoWindow','popup'). Has anyone else encountered this situation and do you have a recommendation or example on how to handle this? I think I'll need a listener on the selection of the featureLayer that needs the infoWindow rather than popup. But then I'll need to switch it back to popup for my other layers.
... View more
01-08-2016
09:54 AM
|
0
|
4
|
4948
|
|
POST
|
Those are the ones! The first one gave me the error, but didn't tell me which layer is was from (and I have 11 layers!). The 2nd one told me both the error and the layer it came from.
... View more
12-18-2015
11:08 AM
|
0
|
0
|
1217
|
|
POST
|
I'm having problems with a map that has many layers. I'm getting one of those obscure errors that doesn't help you one bit. I believe there is an issue with one of my layers, but I've combed through the rest end point and my layer constructors and everything looks OK. I know I've seen this before - someone posted a chuck of code that would check that the layer was valid before adding, so it was easier to troubleshoot which layer has the problem. It gave you some feedback in the console that told you if there was a problem or not. Keywords like map, layer, add are all so generic that searching on these words doesn't help. Does anyone remember writing or seeing this code so I could incorporate it into my project?
... View more
12-18-2015
10:23 AM
|
1
|
2
|
2865
|
|
POST
|
I thought I'd combed through all instances of app.bufferLayer_c and added in app.buffer_p. Obviously not. I was making this much too complicated!
... View more
12-17-2015
11:12 AM
|
0
|
0
|
1370
|
|
POST
|
In this project the user can enable a buffer tool. When the select a city, it selects the counties within a buffer distance, summarizes the populations of those counties and adds these as attributes to a circle I'm adding as a graphic in my buffer layer. It's sort of like Select with Feature Layer | ArcGIS API for JavaScript , except the information is stored in my featureService, so the user can keep the summaries they generate. I have two different years of data. To manage this, I have two different layers in my featureService, one for current and one for projected. In my footer, I have two different grids that represent the summary values for each of the two layers. I have a tab container with content panes for my grids. When I tested all this out, I only had one layer. Now that I've introduced the 2nd, its grid is not populating. I can look at the featureService and see there are graphics getting added to the 2nd layer. However the function I have for populating the grid never fires. The grid itself seems to be getting created, it's just empty. I have some event listeners set up: initEvents:function (){ on (app.bufferLayer_p, 'edits-complete', function (adds,updates,deletes){ console.log("your edits are complete in bufferLayer_p"); myGrid.populateGrid(app.bufferLayer_p,app.totalsGrid_p); }); on(app.bufferLayer_p, "error", function (err){ console.log("error in bufferLayer_p: " + err.message); }); on.once(app.bufferLayer_p, 'update-end', function(){ console.log("update-end on app.bufferLayer_p") myGrid.populateGrid(app.bufferLayer_p,app.totalsGrid_p); }); on (app.bufferLayer_c, 'edits-complete', function (adds,updates,deletes){ console.log("your edits are complete in bufferLayer_c"); myGrid.populateGrid(app.bufferLayer_c,app.totalsGrid_c); }); on(app.bufferLayer_c, "error", function (err){ console.log("error in bufferLayer_c: " + err.message); }); on.once(app.bufferLayer_c, 'update-end', function(){ myGrid.populateGrid(app.bufferLayer_c,app.totalsGrid_c); console.log("update-end on app.bufferLayer_c") }); } It doesn't look like the update-end event is ever firing for my 2nd layer, the one I'm calling app.bufferLayer_p. If I could figure out how to use js-bin for something this complicated, I would. Instead, I'm attaching my code. In order to try this out, you must A) open the buffer tool B) Click enable buffer C) zoom in closer to the map so you can see the cities. The idea is that we're looking at statistics centered around a specific town, so the buffer will have an attribute for City.
... View more
12-17-2015
09:13 AM
|
0
|
2
|
3634
|
|
POST
|
I have several overlapping polygon layers on my map, each with their own popup template. I have a popup defined on my map as var popup = new Popup({ markerSymbol: mySymbols.highlightSymbol(), fillSymbol: mySymbols.highlightFillSymbol()}, domConstruct.create("div")); map = new Map("mapDiv", { infoWindow: popup, basemap: "gray", center: [-91, 38.2], zoom: 7 }); When these appear on map click, I get all the selected features, but not always in the same order. I would have thought they would appear from either top to bottom or vice versa in their drawing order. Why is this and can I change it?
... View more
12-14-2015
02:38 PM
|
1
|
5
|
5942
|
|
POST
|
I have a footer as a contentPane defined as <div id="footer" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'bottom'"> I have a buffer tool based on a button click that will open a grid in the footer. Until that tool is activated, I'd rather not see the footer at all. Not only do I want to set a height to it, but I also want to set the splitter property on it. I thought I could use dom-style like domStyle.set("footer", "splitter", "true"), and also set the height this way, but it doesn't work.
... View more
12-14-2015
09:05 AM
|
0
|
2
|
4272
|
|
POST
|
I have a lot of information I'm trying to convey. I have defined a few popup templates, including both data and charts. I know I can just let the users step through these one at a time, or even put these in a sidebar. I wondered if anyone had considered the idea of putting these into a carousel. This would layout all in a row. Could I even display these all at once, or do they only render at the point you hit the 'next' or 'previous' button? I've seen these carousels used in the local and state government templates, but I'm only interested in this functionality, not the whole implementation.
... View more
12-11-2015
02:05 PM
|
0
|
0
|
2956
|
|
POST
|
I was hoping for something obvious I wasn't seeing, but at least there's a way to have both.
... View more
12-04-2015
09:04 AM
|
0
|
0
|
1725
|
|
POST
|
Thanks - now I'm trying to include a description under the title. This is just a string, not pulling from a value. When I add this, it only loads my title and my chart, but none of the values. This seems to match the examples. I'm adding it right below the title: var raceTemplate = new PopupTemplate({ title: "{county.COUNTYNAME}: Current Veteran Population by Race", description: "Population values for 2015", fieldInfos: [{ ....
... View more
12-04-2015
07:54 AM
|
0
|
1
|
1725
|
|
POST
|
Maybe someone can spot what I'm missing. I have a popupTemplate based on data that is from a linked table. I am creating a pie chart. All the values for the chart are in the join table, and from the layer, I just need county name. Both the layer and the table are in a file geodatabase. If I create a plain infoTemplate, defined as var genericInfoTemplate = new InfoTemplate("generic", "${*}"); I can see all the values I want, both from the layer and the joined table. The county name is available as county.COUNTYNAME Here is my rest endpoint: Layer: Veteran Population by Race - current (ID: 2) Here is how I'm trying to defined my popupTemplate: var raceTemplate = new PopupTemplate({
title: "{county.COUNTYNAME}: Current Veteran Population by Race",
fieldInfos: [{
fieldName: "VetPop_current_Race.EstAsianVetPop",
visible: true,
format: { places: 0 },
label:"Asian"
},{
fieldName: "VetPop_current_Race.EstBlackVetPop",
visible: true,
format: { places: 0 },
label:"Black"
},{
fieldName: "VetPop_current_Race.EstHispanicVetPop",
visible: true,
format: { places: 0 },
label:"Hispanic"
},{
fieldName: "VetPop_current_Race.EstWhiteVetPop",
visible: true,
format: { places: 0 },
label:"White"
},{
fieldName: "VetPop_current_Race.EstMultiRaceVetPop",
visible: true,
format: { places: 0 },
label:"Multi-Race"
},{
fieldName: "VetPop_current_Race.EstOtherVetPop",
visible: true,
format: { places: 0 },
label:"Other"
}],
mediaInfos: [{
type: "piechart",
caption: "Hover to see value for each race",
value: {
fields: [
"VetPop_current_Race.EstMultiRaceVetPop",
"VetPop_current_Race.EstOtherVetPop",
"VetPop_current_Race.EstWhiteVetPop" ,
"VetPop_current_Race.EstBlackVetPop",
"VetPop_current_Race.EstHispanicVetPop",
"VetPop_current_Race.EstAsianVetPop"
] ,
theme: "PrimaryColors"
}
}]
}); Besides not using PopupTemplates very often, this is also the first time I've defined infoTemplates in an ArcGISDynamicMapServiceLayer using myLayername.setInfoTemplates. I don't know if that makes any difference or not.
... View more
12-03-2015
02:40 PM
|
0
|
4
|
4281
|
| 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
|