POST
|
Scenario: I have a point. I open up the edit toolbar, select the Move tool, and move the point. I then edit a value of that same feature in the attribute table and press "enter" to save that edit. The edit to the value I made saves, but the feature will move back to its original position before I moved it. This is extremely problematic as if I'm not paying attention I might hit "save" thinking all the necessary edits have been made to a given feature layer when in fact the edits to the geometry I have made haven't actually been applied. This is very bad for data integrity - I've already found instances where I have gone back and found some features where I know I had edited the geometry but the edits were not actually applied. It's also completely counter-intuitive; if I move a feature I expect it to stay moved unless I discard/undo the edits, or forget to save (which is not the case here). This needs to be fixed immediately - I shouldn't need to pay extra close attention to be sure my edits are being applied.
... View more
01-21-2020
07:34 AM
|
1
|
2
|
689
|
POST
|
I've been experimenting with the maxAllowableOffset property to try to manage the load times of one of my feature services, except this method doesn't seem to do anything at all. When I inspect the feature layer object in my developers console, I don't even see a "maxAllowableOffset" property. If I run the javascript and look at the network requests I see "&maxAllowableOffset=x" in the query, where x ends up being the same regardless of what I enter for the maxAllowableOffset property when creating the feature layer object (x does change as you zoom in and out, though). Just to be sure there wasn't something weird in my map I created a very basic sample map with one of ESRI's feature layers to test this. <!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/>
<title>Simple Map</title>
<link rel="stylesheet" href="https://js.arcgis.com/3.23/esri/css/esri.css">
<style>
html, body, #map {
height: 100%;
margin: 0;
padding: 0;
}
</style>
<script src="https://js.arcgis.com/3.23/"></script>
<script>
require(["esri/map", "esri/layers/FeatureLayer", "dojo/on", "dojo/parser", "dojo/domReady!"], function(Map, FeatureLayer, on, parser) {
parser.parse();
map = new Map("map", {
basemap: "topo",
center: [-95.45, 37.75],
zoom: 5
});
featureLayer = new esri.layers.FeatureLayer("https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/3", { maxAllowableOffset: 5000 });
map.addLayer(featureLayer);
function calcOffset() {
console.log(map.extent.getWidth() / map.width);
return (map.extent.getWidth() / map.width);
};
on(map, "zoom-end", function() {
maxOffset = calcOffset();
featureLayer.setMaxAllowableOffset(maxOffset);
});
});
</script>
</head>
<body>
<div id="map"></div>
</body>
</html>
Just for kicks, I also tried setting the maxAllowableOffset through the .setMaxAllowableOffset method instead of setting it when creating the feature layer object itself, and the results were the same. Has anyone gotten this to work?
... View more
02-02-2018
10:06 AM
|
0
|
2
|
1125
|
POST
|
I saw a post about this from 2013 here but the "correct" answer is not correct. In the sample provided the printout indeed does not display attribution, but that's only because the layout is set to "MAP_ONLY". If you use any other layout , it appears that attribution does indeed show up. This is a problem if I want to have any other information displayed on my printout but do NOT want the service layer credits showing up (which I don't, as my app is using services from other organizations and I don't want users looking at the printout and thinking they should be contacting those other organizations about my app). Is anyone aware of a workaround?
... View more
10-11-2017
06:11 AM
|
0
|
2
|
676
|
POST
|
I have a hosted feature layer on my ArcGIS Online account that contains a field with time data. I'm following this help file: Configure time settings—ArcGIS Online Help | ArcGIS to try to edit its settings to enable time data, but when I get to the step that tells me to click the small arrow icon next to the layer that contains time data, there's no arrow icon. I found this youtube video that shows how to do it: Enable time on time-aware layer - ArcGIS Online - YouTube and I see the arrow icon that the help file is referring to, but ESRI has since updated the format of ArcGIS online and the feature service page doesn't look like that anymore, and there are no drop downs next to the layer list. Is it still possible to enable time data from a hosted feature service? Or will I have to configure it in an mxd, then upload that to my AGOL account?
... View more
01-24-2017
07:25 AM
|
0
|
1
|
1057
|
POST
|
I've got a web map that consumes a number of map services. Most are hosted on our internal server, but a couple are hosted externally. One particular service tends to go down somewhat regularly, and when this happens the map itself breaks (not entirely, but it loses enough functionality to be a problem). Outside of manually checking the web map every morning, I have absolutely no idea how to deal with this. What usually happens is the service goes down in the middle of the day, we have a complaint from a customer, and I have to manually update the code to skip adding that service to the map until I get word that the service is back up. Is there a better way of handling this? Some way to use JS to check to see if the service is up and running before attempting to add the service? Thanks in advance!
... View more
03-08-2016
11:30 AM
|
1
|
2
|
2741
|
POST
|
I was able to find the solution. Apparently, when I thought I had repaired all the flawed geometries, I missed one! Once I checked the geometry again, I realized that was likely still the culprit so I repaired the geometries and the service published successfully.
... View more
07-01-2015
11:16 AM
|
1
|
0
|
1402
|
POST
|
Sorry I should have mentioned, it's a Feature Service. After playing around some more I've narrowed it down to a particular layer. If I remove it, the map publishes. If I remove every layer but that one, the map fails to publish. I'm trying to establish now what exactly is causing this service to fail to publish. I've already run a check geometry and repaired offending features, and saved a new copy of the shapefile (with a shorter name). Any other ideas?
... View more
07-01-2015
07:35 AM
|
1
|
2
|
1402
|
POST
|
Thanks, Lisa. I can still upload directly to AGOL if I log in through my browser, but I'm trying to publish a service directly from ArcMap. I have four layers in this .mxd and I'd rather have them all saved into one feature service as opposed to uploading each layer individually.
... View more
07-01-2015
07:23 AM
|
0
|
1
|
1402
|
POST
|
Jayanta, Yes, unfortunately I'm still experiencing the error.
... View more
07-01-2015
07:22 AM
|
0
|
0
|
1402
|
POST
|
I've been experiencing this issue off-and-on since upgrading to 10.3. After setting up a service to be published to ArcGIS Online, when I click the Publish button I get this error message. I have still managed to occasionally publish services successfully, but I have no idea what I did to get the publish to go through (closing down ArcMap and re-opening it is about as much as much as I can think of to do!) I found this help page: ArcGIS Help 10.1 and moved a copy of the mxd/shapefiles to C:\temp as suggested, but still didn't have any success. Anyone run across this error and figure out how to fix it?
... View more
07-01-2015
05:55 AM
|
0
|
9
|
7771
|
POST
|
Thanks Steve. I figured that would probably end up being the case. I'll probably just see about going and adding another field for the label.
... View more
05-15-2015
05:10 AM
|
0
|
0
|
632
|
POST
|
I'm not sure. I tried looking through the object returned when you click a feature in the console, but I don't see the label stored anywhere in there. It's obviously stored somewhere because the legend is able to retrieve that information. Here's a link to the service I'm using if that will help: http://geodata.md.gov/imap/rest/services/Biota/MD_BenthicHabitat/MapServer/0
... View more
05-14-2015
12:51 PM
|
0
|
1
|
632
|
POST
|
I'm consuming a service that has symbology set up based on unique values of a particular field. The way the service is set up, each symbology type has a label different than the actual unique value (as an example, one value is "Anthropogenic_Oyster_Reef" which is labeled as "Man-Made Oyster Reef"). I have a legend which displays the labels of the various symbology types, but when a user clicks a feature they're going to see the actual field value ("Anthropogenic_Oyster_Reef") instead of the label we've provided in the legend ("Man-Made Oyster Reef"). This can be confusing for our users. Is there a way to retrieve the label of the feature when clicking it, or is my only option to edit the service so the field values match the desired labels? I'm sure I could use some if statements to check for each possible field value and return the label name, but I feel like that would be extremely sloppy and there must be a better way.
... View more
05-14-2015
12:29 PM
|
0
|
6
|
4035
|
POST
|
Actually I figured it out - I tried adding the &disable_scroll=false directly to the URL in my Chrome browser. If you're adding a parameter straight to the URL in the browser, the "amp;" part needs to be left out, so it should simply read &disable_scroll=false. Stupid mistake on my part - should have been obvious! Thanks for the quick followup.
... View more
04-24-2015
11:15 AM
|
0
|
0
|
622
|
Title | Kudos | Posted |
---|---|---|
1 | 03-02-2015 06:48 AM | |
1 | 07-01-2015 07:35 AM | |
1 | 07-01-2015 11:16 AM | |
1 | 01-21-2020 07:34 AM | |
1 | 03-08-2016 11:30 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|