|
POST
|
I don't have the dubious honor of having to do what you're trying to do so I don't really know the ins & outs. Our organization is having performance issues under peak loads so I'm trying to research what I have no control over. That being said, there are some good links (and perhaps a good book to pick up) about setting up Server in this thread. Good luck! Steve
... View more
03-03-2016
08:08 AM
|
1
|
8
|
4236
|
|
POST
|
Doh!. actually, it might be this instead: var theResults = queryDeferred.results[0] This is where it helps to add breakpoints so you can interactively work with variables.
... View more
03-01-2016
03:14 PM
|
1
|
1
|
1896
|
|
POST
|
Ok, based on your newest screenshot, the query results are in the first element of the returned results, so.. var theResults = queryDeferred[0]
... View more
03-01-2016
03:05 PM
|
1
|
3
|
1896
|
|
POST
|
I'm curious. You have a section of code here: if (layerName === 'Census Block Points') {
queryAP.where = "TRACT = '" + feature.attributes.TRACT + "'";
var queryDeferred = queryAPTask
.execute(queryAP)
.addCallback(lang.hitch(this, function (qresponse) {
return arrayUtils.map(qresponse.features, function (qresult) {
qresult.setInfoTemplate(generalTemplate);
return qresult;
});
}));
console.log(queryDeferred);
console.log(queryDeferred[0][1].features);
mapObj.infoWindow.clearFeatures();
mapObj.infoWindow.set("markerSymbol", symbol);
mapObj.infoWindow.setFeatures([queryDeferred]);
mapObj.infoWindow.show(event.mapPoint);
//console.log(cadastralDeferred);
} I'm wondering if you're referencing the objects before they get populated by the executed query.
... View more
03-01-2016
02:40 PM
|
0
|
5
|
1896
|
|
DOC
|
That's pretty slick and useful, so thanks. I remember bookmarking an ESRI "app" which helped with extracting extents but I like this better. Steve
... View more
02-29-2016
11:28 AM
|
0
|
0
|
13728
|
|
POST
|
You can also try deleting your template.mxt file from your profile and see what happens. Mine constantly goes corrupt which prevents Arcmap from opening (I see the splash screen and then nothing). On my 64-bit Windows 7 machine, the template for Arcmap is here: C:\Users\spwscc\AppData\Roaming\ESRI\Desktop10.2\ArcMap\Templates Up one level you will find a subfolder for ArcCatalog. It, too, will have a subfolder for its template. I don't know if you have any customizations in your template so you can just rename the file if you want to hang on it. If Arcmap doesn't find a template.mxt file, it will create a new one when Arcmap/ArcCatalog starts. Steve
... View more
02-29-2016
10:49 AM
|
0
|
2
|
4960
|
|
POST
|
Since you mention that you're embedding the map into other pages, it may be possible to remove the maximize button using CSS. I work with the Javascript API and adding the following to my CSS stylesheets will remove the maximize button from popups: .esriPopup .titleButton.maximize {
display: none !important;
} Then again, Iframes are literally a browser within a browser so you may have to add this CSS style rule using javascript on the fly. I wish ESRI would give us the ability to disable/enable this buttton on our own.. Steve
... View more
02-29-2016
08:15 AM
|
1
|
2
|
2300
|
|
POST
|
It's a multi-dimensional array so I think it would be like this: theResults = results[0][1].features; Where "results" is the returned variable of values from your query.
... View more
02-26-2016
11:48 AM
|
2
|
7
|
1896
|
|
POST
|
You should be able to do this- you just need to apply a new renderer to the featureLayer after you create it. I have done this with a feature service from the USGS of earthquakes. Here's my snippit that changes the symbology from its default service symbology to what I wanted: var theUsgsEarthquakeLayer = new FeatureLayer("http://igems.doi.gov/arcgis/rest/services/igems_haz/MapServer/3", {
id: "quakes",
mode: FeatureLayer.MODE_ONDEMAND,
refreshInterval: 5,
autoGeneralize: false,
outFields: ["*"]
});
if (theUsgsEarthquakeLayer != null) {
//define a popup template
var usgsQuakeTemplate = new InfoTemplate();
usgsQuakeTemplate.setContent(formatQuakeContent);
usgsQuakeTemplate.setTitle("Magnitude ${magnitude} Earthquake");
theUsgsEarthquakeLayer.setInfoTemplate(usgsQuakeTemplate);
theUsgsEarthquakeLayer.setAutoGeneralize(false);
//Create a different renderer with new symbols
var renderer = new ClassBreaksRenderer(null, "magnitude");
renderer.addBreak(0, 3, blueMarkerSymb);
renderer.addBreak(3, 5, greenMarkerSymb);
renderer.addBreak(5, 7, orangeMarkerSymb);
renderer.addBreak(7, 9, redMarkerSymb);
renderer.addBreak(9, Infinity, purpleMarkerSymb);
theUsgsEarthquakeLayer.setRenderer(renderer);
} else {
// Define the USGS Earthquake layer retrieved from a KML file instead
theUsgsEarthquakeLayer = new KMLLayer("http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/1.0_week_age_link.kml", {
id: 'quakes',
refreshInterval: 5,
visible: true
});
}
... View more
02-26-2016
08:11 AM
|
1
|
0
|
1462
|
|
POST
|
Understandable. I don't do much Python but I did develop our script that transfers the MS Access records over into an SDE table. I think I'm solid with connecting with Access and the records in it but extremely shaky with AGOL. We, as an organization, haven't embraced AGOL at all so any scripting to interact with AGOL is completely foreign to me. It just sounds like the project you describe is real similar to the process we use for our Gage application.
... View more
02-24-2016
01:49 PM
|
0
|
1
|
1106
|
|
POST
|
Michael Volz Your option to post to AGOL might be something our organization needs to pursue. Would you be willing to share that script (stripped of specific server/account references, of course)? We could take the discussion off the board, if you're so inclined. Steve
... View more
02-24-2016
12:29 PM
|
0
|
5
|
1106
|
|
POST
|
That's excellent feedback, Michael, thank you. It's pretty disconcerting that, as customers, you spend an arm & a leg for enterprise level products and ESRI still manages to find a way to force you to spend more money on something like AGOL. I like dealing with web mapping less and less each day. When's Librarian coming back into vogue?..
... View more
02-24-2016
11:05 AM
|
0
|
0
|
1106
|
|
POST
|
I forgot to add a key piece of information. The data transfer from MS Access to SDE occurs every 10,15 minutes. During the transfer the table in SDE is purged and then the Access records are inserted. We've been getting erratic run times on the script. Initially, it was completing in 4 seconds but somehow it grows to 1-2 minutes. During that time, of course, the SDE table has no records and results in no data for folks who happen to load/re-load the page at that time.
... View more
02-24-2016
10:08 AM
|
0
|
8
|
2722
|
|
POST
|
That's interesting. The stream gage data is stored natively in an MS Access database (old gage software which is on its last legs officially and unofficially). Due to some permission conditions the gage software has with its corresponding database, we've set up a system where we use a python script to transfer data from the MS Access db into an SDE table. I suppose we could alter that process and have it dump the information into a FGDB and publish off of that.
... View more
02-24-2016
09:49 AM
|
0
|
9
|
2722
|
|
POST
|
I'm getting outside my knowledge since I'm not responsible for the backend stuff but it's in our organizations Enterprise SDE in SqlServer 2012. It's not going through HTTPS. We do use Windows Authentication I suspect that the web adapter is NOT silo'd. I'd bet money we just ran with the ESRI installation guide when setting things up.
... View more
02-24-2016
08:41 AM
|
0
|
11
|
2722
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Thursday | |
| 2 | Thursday | |
| 1 | 2 weeks ago | |
| 1 | 2 weeks ago | |
| 1 | 2 weeks ago |