|
POST
|
whether working with a class or not, you can't make calls to our API until you have checked to ensure that it has been downloaded and initialized. you might want to download the following custom Point Clustering sample to see an example of the implementation of a javascript class.
... View more
03-11-2013
07:56 AM
|
0
|
0
|
1497
|
|
POST
|
here are the general steps you have to follow to set up your own editing application.... 1. create a map document with sde data and start an edit session to create feature templates for editing. 2. publish the map document to arcgis server with feature access capability. 3. set up a proxy and reference it in your application after confirming that it forwards web pages. if you are able to sketch geometries in your application, but they disappear after you double-click, then you'll need to inspect the web traffic to find the applyEdits call made to ArcGIS Server. If a call through a proxy is bombing out entirely, you'll have to troubleshoot the problem there. If request is submitted to the server successfully and the server is returning an error (rather than a message indicating that the edit was made successfully), then its probably time to test the operation directly at the REST endpoint to attempt to determine what is wrong. for example, try pasting the code below into the "adds" parameter to submit a new feature to the following feature service: http://sampleserver6.arcgisonline.com/arcgis/rest/services/EmergencyFacilities/FeatureServer/applyEdits [{"geometry":{"x":34.123,"y":-117.123,"spatialReference":{"wkid":4326}},"attributes":{"pocname":"hello there!"}}]
... View more
03-08-2013
07:30 AM
|
0
|
0
|
1819
|
|
POST
|
the arrow graphic symbol displayed here is actually a polygon geometry type, but i still thought i'd forward it along.
... View more
03-08-2013
07:14 AM
|
0
|
0
|
3509
|
|
POST
|
i'm not sure whether your current geometry is valid or not. i suggested testing the use of simplify() because it "guarantees" that the result geometry will be valid.
... View more
03-07-2013
11:56 AM
|
0
|
0
|
1132
|
|
POST
|
check out the Buffer user-defined graphics sample, which uses the geometry service simplify() operation to break a polygon into legal, multipart features.
... View more
03-07-2013
08:38 AM
|
0
|
0
|
1132
|
|
POST
|
since the REST exportMap operation supports setting a scale, you might be able to use esri.setRequestPreCallback() to set it as an additional parameter before the request is actually sent.
... View more
03-07-2013
08:32 AM
|
0
|
0
|
679
|
|
POST
|
hi barry, if you inspect the rest endpoint for the layer within the map service which is being displayed, you can see that it is "time aware", (meaning that the layer itself was configured prior to publishing the service) [ATTACH=CONFIG]22241[/ATTACH] check out this article for more info on making a layer time aware its not even necessary to use a FeatureLayer in your JavaScript application to take advantage of this. the sample you mentioned is using a DynamicMapServiceLayer with only 1 visible layer.
... View more
02-27-2013
02:23 PM
|
0
|
0
|
1055
|
|
POST
|
for viewing you just need to create the join in ArcMap prior to publishing your map service. afterward, the joined attributes will be available in REST (and in JavaScript applications). the joined data will not be editable (just like in ArcMap)
... View more
02-27-2013
10:00 AM
|
0
|
0
|
849
|
|
POST
|
mike is definitely right that using the onDrawEnd event is your best opportunity to capture the values from a sketched point. heres a fiddle that shows how its done.
dojo.connect(tb, "onDrawEnd", writeCoordinates);
...
function writeCoordinates(geometry) {
dojo.byId("coordinateInfo").innerHTML = "X coordinate is: " + geometry.x.toFixed(3) + ", Y coordinate is: " + geometry.y.toFixed(3);
}
...
<span id="coordinateInfo"></span>
i adapted it from this sample...
... View more
02-27-2013
08:22 AM
|
0
|
0
|
1510
|
|
POST
|
very cool. thanks for taking the time to explain in detail.
... View more
02-27-2013
07:52 AM
|
0
|
0
|
3075
|
|
POST
|
awesome fix! i dont see any properties or methods in our API for VETiledLayer related to origin. would you be able to explain in a little more detail how you made the change?
... View more
02-27-2013
06:07 AM
|
0
|
0
|
3075
|
|
POST
|
new map constructor options in version 3.3 of our API have simplified the process of controlling the initial extent of the map. i put together a simple app to display map center and zoom level to try and make the process even easier.
... View more
02-13-2013
11:13 AM
|
0
|
0
|
8395
|
|
POST
|
Rahul/Jun, Feature services have been available since 10.0, they were not added in 10.1. Please check "What's New" in REST for more information. Jun, are you certain you updated the line of code in the application which defines the location of your new proxy? are you hosting your application over http? i would recommend continuing to test with our sample service before substituting your own layers.
... View more
02-11-2013
06:50 AM
|
0
|
0
|
2977
|
|
POST
|
this obviously wouldn't work when passing hardcoded addresses like in your example, but in a real app, couldn't you pull the information directly from the textbox? console.log("Bad address: " + dojo.byId("address").value); also, are you getting results from our world geocoding service for just city and state when you geocode "Broadway & NoName St, Denver, CO"? i get zero candidates.
... View more
02-08-2013
09:28 AM
|
0
|
0
|
1031
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-16-2014 02:35 PM | |
| 1 | 03-15-2013 04:25 PM | |
| 1 | 06-01-2016 10:51 AM | |
| 1 | 12-28-2015 04:46 PM | |
| 1 | 12-28-2015 05:26 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|