POST
|
Anyway, I got it. I can use either definition query or selection/hide approach.
... View more
11-24-2015
09:09 AM
|
0
|
0
|
346
|
POST
|
Hi, I am trying to implement this function with ArcGIS Server JavaScript API: I have a web map created by ArcGIS Online (or a web map created on the fly using JSON). Within the web map, I have a point feature layer (or MapServer layer). Initially the entire layer is shown on the map. Now I am receiving a list of feature IDs received from another server, and I need to hide those points with the feature IDs on the map whilst maintaining the visibility of other points. I am receiving the lists of feature IDs every 5 mins. Once a new set of IDs is received, I need to make the corresponding point invisible. If a previously hidden point is not included in the new list, they need to be turned back on again on the map. Any ideas on how to implement this? Thank you!! Eric
... View more
11-23-2015
01:50 PM
|
0
|
1
|
2705
|
POST
|
see http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/#ags_proxy "... The application creates requests that exceed 2048 characters. While there is no official maximum length for a URL some modern browsers have imposed limits. Using a proxy works around this issue by performing a POST request rather than a GET request. POST requests are not limited by the 2048 character maximum because the information is transferred in the header instead of the URL. Common situations where you may exceed the URL length are: -Buffer complex polygons then use the buffered geometry with a query task. -Specify a spatial reference using well-known text (wkt)..." Thanks Domenico. Actually I am using POST other than GET. The URL I posted is just an example. The problem happened whenever the json geometry shape is long. Meng
... View more
03-05-2013
09:24 AM
|
0
|
0
|
1172
|
POST
|
Hi, I am having problems in using the query API. I need to use a polygon geometry to query a point layer so it returns all the intersecting points. The formatted query looks something like: http://myarcgisservice/MapServer/0/query?geometryType=esriGeometryPolygon&geometry={%22spatialReference%22:{wkid:xxx},%22rings%22:[[[x1,y1],[x2,y2],[x3,y3],...,[xn, yn],[x1,y1]]]}&f=json It works fine when the geometry is not complex, but as the number of vertices is getting bigger, it starts to return me "400 Bad request" and "404" error. For example, if I have a polygon of more than 50 vertices, the query will return me "400" error... I am wondering if there is a constraint/threshold on number of vertices of a polygon? Or there is a length constraint on the request (say, 255 characters)? I can't seem to find documentations on this... Thanks!
... View more
03-05-2013
07:41 AM
|
0
|
4
|
5650
|
POST
|
Hi, I am sure I am missing something but I just cannot discover it... I created a map in Flex and added two feature layers using ActionScript (note that I did not put any <esri:ArcGISDynamicMapServiceLayer>tag under <esri:Map id="map"> in mxml). Then under the map tag, I assigned an editor <esri:Editor id="editor" map="{map} toolbarVisible="true" /> In the map initialize function, I added two feature layers using the following code: // Initialize layer1 layer1= new com.esri.ags.layers.FeatureLayer(url1); layer1.id = "layer1"; map.addLayer(layer1); // Initialize layer2 layer2= new com.esri.ags.layers.FeatureLayer(url2); caLayer.id = "layer2"; map.addLayer(layer2); Finally in the initialize function I assigned the editor with the two feature layers: // Assign feature layers to the editor editor.featureLayers = [layer1, layer2]; The effect is I can see the two feature layers in my Flex application, and I can also see the editor with correct layer information (shape and symbol). However, when I click on any of those features on the map, the attribute inspector is only showing the first attribute of the feature and there is no scroll bar. Anyone knows why? Thanks in advance!!!!
... View more
09-30-2011
11:19 AM
|
0
|
2
|
759
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|