|
POST
|
The way I have done this in the past is to include the SDE table inside the MXD of another layer you need to publish. The standalone table will now be published as a layer inside the service that you can query using queryTask, etc.
... View more
10-24-2016
02:41 PM
|
1
|
0
|
1451
|
|
POST
|
What's your target environment, because this sounds more of an HTML 5 solution. If that's the case, I suspect you might get variable success given how Internet Explorer is the exception to every web rule. Anyways, no matter your noble reasons for doing so, I think this scenario is exactly why javascript has restrictions in place against doing this. Scraping user information from their browser, silently, is how folks get their personal information compromised so it gets might hard to do what you want, even if for legitimate purposes I'll throw another option out to you- why not write out a record into a db table that would contain the xmin/xma/ymin/ymax of the mapextent, the layer name, and featureID that the user interacted with? This would be TOTALLY doable within the JS API and current framework, and I'd imagine quicker than a print request.
... View more
10-14-2016
08:00 AM
|
1
|
0
|
1047
|
|
POST
|
If you manually change the setting within Emulation, does the basemap appear?
... View more
10-06-2016
09:53 AM
|
0
|
0
|
3161
|
|
POST
|
For both machines that have IE11, hit F12 and compare the emulation settings. See if anything is different between the computer that works and the one that won't.
... View more
10-06-2016
08:19 AM
|
2
|
3
|
3161
|
|
POST
|
Gotcha. I pretty much resign myself to the fact that I'll need to write custom formatting functions for all my popups in every app I put together. It sucks but I like having that fine grain control..
... View more
10-03-2016
08:45 AM
|
0
|
1
|
1812
|
|
POST
|
How about specifying your list of fields in the outFields parameter of the featureLayer constructor?...
... View more
10-03-2016
08:16 AM
|
0
|
3
|
1812
|
|
POST
|
The documentation for KMLLayers clearly states: "Note: The KMLLayer uses a utility service from ArcGIS.com, therefore your kml/kmz must be publicly accessible on the internet. If your kml/kmz files are behind the firewall you will need to set the esriConfig.defaults.kmlService to your own utility service. (Requires Portal for ArcGIS)." Outside of that, I would think the only way to "import" KML files would be to digest the KML's XML content and create a featureCollection for use with a new featureLayer. Of course, you'd have to code such an importer since I don't think anyone else has made one.
... View more
09-22-2016
07:58 AM
|
1
|
3
|
6601
|
|
POST
|
I don't know anything about this but I was just trying to use your GeoPortal app yesterday and it wasn't loading due to that error. I was going to report it to you but the weird thing was that it still loaded on my iPhone- just not my work computer. I just chalked it up to some change by our IT department.
... View more
09-21-2016
12:28 PM
|
0
|
1
|
1960
|
|
POST
|
Any chance you can use the UTC time offset to help you decide which to use?
... View more
08-30-2016
08:46 AM
|
0
|
10
|
2652
|
|
POST
|
No problem! Conversion to UTM will be a little awkward but should be (relatively) easy. It looks like you need to go Lat/Long->MGRS->UTM. FWIW, here's my code using that library: map.on("mouse-move", showCoordinates);
map.on("mouse-drag", showCoordinates);
function showCoordinates(evt) {
//the map is in web mercator but display coordinates in geographic (lat, long)
var mp = webMercatorUtils.webMercatorToGeographic(evt.mapPoint);
u = new USNG2();
var theLatLong = [];
theLatLong["lon"] = mp.x;
theLatLong["lat"] = mp.y;
var theUSNG = u.fromLonLat(theLatLong,5).toString();
//display mouse coordinates
dom.byId("lblCurCoords").innerHTML = "<span style=\"font-weight:bold;\">Lat/Long:</span> " + mp.y.toFixed(4) + ", " + mp.x.toFixed(4) + "<br/>" + "<span style=\"font-weight:bold;\">USNG:</span> " + theUSNG;
}
... View more
08-10-2016
02:30 PM
|
2
|
0
|
5017
|
|
POST
|
This might be of some use to you. I'm using the USNG library to display USNG values for the cursor's current location in one of my apps. There's some reference to it also supporting UTM so you might be able to use it for your current issue.
... View more
08-10-2016
01:58 PM
|
2
|
2
|
5017
|
|
POST
|
I hope someone else chimes in with an elegant way of doing this because my thoughts are kinda clunky. First, I'd determine how much panning occurs by default. Because of various zoom levels, I'm guessing this is a ratio or percentage based on the current map extent. Knowing that, you have a baseline to tweak off of. In order to actually do that, you would need to "cancel" the panning that occurs by default using the arrow keys. You would do that by setting up an event listener based on the keyboard clicks. In that event listener, if you determine that the user clicked one of the arrow keys, you would cancel that event's response (using Dojo's stopEvent) and then proceed with your own logic for adjusting the map extent. Maybe you determine the arrow keys pan 5% the width or height of the current map extent. If the current map extent is 1,000 feet wide, 5% of that is 50 feet and so the default panning left/right adds or subtracts 50 horizontally from the current mapextent. Increasing that to 10% would mean an adjustment by 100 feet and so on and so on.. I haven't actually done this so I'm just throwing out unproven ideas. Steve
... View more
08-09-2016
11:46 AM
|
0
|
0
|
1307
|
|
POST
|
I marked Ken's response as correct because, well, it is technically correct and likely a sound approach. I have decided to go a simpler route instead since I was going to need to pause/resume click events on multiple feature layers and that seemed like it was destined to be a headache. The alternative was to add a button to my attribute inspector and serve as a toggle button. Click once to enable vertex editing and click a second time to save changes. editShapeButton.on('click',function(e) {
if(app.editingEnabled) {
app.editToolbar.deactivate();
app.attInspector._currentFeature._layer.applyEdits(null,[app.attInspector._currentFeature],null);
editShapeButton.set("label","Edit Shape");
app.editingEnabled = false;
} else {
app.editToolbar.activate(Edit.EDIT_VERTICES, app.attInspector._currentFeature);
editShapeButton.set("label","Save Edits");
app.editingEnabled = true;
}
});
... View more
07-28-2016
08:27 AM
|
0
|
0
|
2915
|
|
POST
|
That's why I mentioned that it may be an undocumented method, just like the myriad of properties/methods for ESRI digits that begin with an underscore ("_layer", etc).
... View more
07-28-2016
07:51 AM
|
0
|
2
|
1561
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Thursday | |
| 1 | Wednesday | |
| 1 | 2 weeks ago | |
| 2 | 2 weeks ago | |
| 1 | 2 weeks ago |