Tag Info

Hot answers tagged

4

There are some best practices listed here: http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#/Authoring_feature_services/009300000021000000/


3

Regarding your question as to whether you can edit a feature layer using the REST API, the answer is yes. See the Apply Edits section of the REST API for documentation on how do this this. However, if it's only the status of the alarms which is changing every 15 minutes, you could make the change purely within the web map (without needing to change the ...


3

the best way to get an idea of what you need to do in your javascript app to interact with ArcGIS Server or ArcGIS Online services successfully is to play around with the REST endpoint for a particular operation interactively and snoop the web traffic to see what requests you are sending. in this case, the syntax you need would look something like this ...


3

It sounds like you want to be Drawing features to show quantity by category for which the online help is here.


3

Most companies actually seem to use dual range address calculators (At least in my experience the results are consistent with that behavior). Basically each uninterrupted strip of road has a range, or multiple ranges of numbers, on either side that specify the maximum street number and minimum street number. One side has odd and the other usually has even. ...


3

The URL passed to esri.layers.FeatureLayer needs to be for a specific layer. Your code points to the root of the feature service. To fix this, append the layer index of the layer the URL. For instance, in this feature service, the rivers layer is layer 1. To create a feature layer using this layer, you would use this url: ...


2

Use Selection mode for the feature layer. Set your symbol using Layer.setSelectionSymbol(symbol). If you have a complex symbology, set the renderer instead and leave the selection symbol blank. There are two ways to go about the next part. Method one: Use the checkboxes to composite a complex query. For example, if each feature has a unique identifier ...


2

The solution: the feature layer I was trying to edit participates in a non-versioned network dataset => not editable. In order to edit layers participating in network datasets, the dataset must be versioned.


2

Your layerUrl is similar at: http://services1.arcgis.com/cFi1BRRsYB2fYqCl/arcgis/rest/services/NameService/FeatureServer Just add the token to Url: ...


1

The URL that you provide in your question is to a map service that will only return an image for display. To perform analysis you will need to use a feature service instead. As an introduction to doing this there is an Esri blog entitled Quick Tips: Consuming Feature Services with Geoprocessing: Do you work with Feature Services? Do you want to use ...


1

To create a feature layer, you need access to the layer's REST endpoint. This can be on the web, or on your localhost - see The Services Directory and the REST API. See the Feature Layer help page to get started with creating a feature layer using the ArcGIS Server JS API - the URL you use can point to your local machine.


1

A bit belated, but at version 3.10 the ArcGIS API for JavaScript added internal logic which simplifies displaying information from a related table in a popup. https://developers.arcgis.com/javascript/jssamples/popup_relatedrecords.html https://developers.arcgis.com/javascript/jshelp/intro_popuptemplate.html


1

The Geocortex Essentials Manager application tries to access an ArcGIS Server REST endpoint directly, because the Essentials REST application would also try to do that. For most user interaction, your browser will make a direct connection to your resources. However, when you print the map, generate a report, or export a map image (among other things), ...


1

Change this line flayer.applyEdits(feature,null,null); to flayer.applyEdits(null, [feature], null);


1

The Linked pdf said ...the best way to understand the JSON format is to look at examples from ArcGIS Online On searching for ArcGIS web map JSON format, I found that ESRI does have some limited documentation for this JSON format here. Though the documentation itself is sparse, the samples are more than helpful. The relevant sample in my case was: ...


1

Image service is a type of service where a raster dataset as published and can be accessed by a client. An image service can be cached or dynamic. In the case of Landscape Layers, as you have noticed, they are dynamic image services (at least those I have previewed). This means that you have access to the symbology settings (so you can change a layer ...


1

Check out the FeatureLayer's onBeforeApplyEdits event. You should be able to get the updated feature, then edit whatever attributes you need before it gets saved. Feature Layer - onBeforeApplyEdits dojo.connect(monumentFL, "onBeforeApplyEdits", function( // updates dojo.forEach(u, function (update) { debugger; ...


1

Answering my own question. For hundreds of points the best practice is to use SQL and ArcPy. Only use rest in case you don't have access to the server. I end up using ArcPy. Note that you will need to use arcpy.env.workspace and point to the SDE file, everything else is via arcpy.da.InsertCursor.


1

Your main task is to upload the user given shapefile into your server and append it to your SDE Geodatabase. I'm not sure if actually showing the features to your user on the web map is an actual requirement, so I'll give you two ways of doing this. If You need to show the geometries on the map, then there are two main parts to your User Case: Upload ...


1

The webmap returns a featureLayer already instantiated. I haven't tried changing the mode to instantiate a featureLayer with mode selection, but it makes sense that you lose symbology and popups because you set those when instantiating. Solution: I have queried (queryTask) against the featureLayer url based on user drawn polygon (or user click, hover, etc), ...


1

I would have used the code given at this ticket: http://trac.osgeo.org/openlayers/ticket/3661. That way you can get the data on the fly, and show it in your OpenLayers map.


1

It sounds like you may be wanting to perform a graphic clip of a data frame containing the map service you mention, by using a selected polygon from a feature class. To do this take a look at the Clip Options on the Data Frame tab of your Data Frame's Properties. There is online help on Clipping the Data Frame available here.


1

A FeatureLayer ends with a digit, which is more of an array concept. my/service/url/points/here vs. my/feature/url/points/here/0 The first url points to a service containing anywhere from 1 to X Features. Whereas the second url points to a specific Feature inside of that service. Hope that helps...


1

It is possible to join the tables. Suppose your tables are named Locations{ObjecId, Shape, LocationName} and Offenders(Id, FirstName, LastName, CrimeLocation) . Follow the following steps to create the featue view: On the computer running SDE run the following command sdetable -o create_view -T PersonsOfInterest -t SpatialDB.SchemaName.Locations -c ...


1

I highly recommend watching these two videos from Esri on editing: Designing and Authoring Maps for Editing Building Web Editing Applications with ArcGIS 10.1 for Server



Only top voted, non community-wiki answers of a minimum length are eligible