|
POST
|
Hello Thomas, You have mentioned that "You should be able to query by attributes though", how can this be achieved when you cannot use the Query.where?
... View more
03-17-2017
07:29 AM
|
0
|
1
|
2305
|
|
POST
|
I am talking about 3.XX version api, It may send a request to the server, if the FeatureLayer does not contain the data/features you wish to select. If you are doing a spatial query and the geometry type is not an "Extent", then also the FeatureLayer will sends a request to the server, even though it may have the data on the client side. In 4.XX, its different, FeatureLayer always sends request to service. If you need to query data from the client side you need to use FeatureLayerView. To query features/graphics available to or visible in the View on the client rather than making a server-side query, you must use the FeatureLayerView.queryFeatures() method.
... View more
03-17-2017
06:52 AM
|
1
|
1
|
1218
|
|
POST
|
1. Query task is a task used to query features from server, whereas, FeatureLayer is a type of map layer where the data is downloaded from server to client and displayed on map. These are two different things. We can use FeatureLayer to query features, that is because it would be redundant to send request to server and get data which is already in the client for FeatureLayers. If you are querying feature from DynamicLayers or Tables or even services which is not added to map, then you would have to use QueryTask. 2. Yes, then main purpose of the QueryTask to to find/query features from a service. we can use both/either attribute (where property) or spatial (geometry property) to find the Features.
... View more
03-16-2017
05:55 AM
|
2
|
4
|
1218
|
|
POST
|
If you are using, cached map service. Then you could use the LOD.resolution to calculate the width of the map. Just multiple it with the pixel width of the map and you will get the map extent width.
... View more
03-15-2017
06:12 AM
|
2
|
1
|
1385
|
|
POST
|
Can you be more specific. Also which version of JS Api are you using? If it is about just requiring nodejs module in AMD. you can do it like below. // This:
var fs = require("fs");
// Would become:
require([ "dojo/node!fs" ], function(fs){
// Utilise the "fs" module
}); Complete details can be found here Dojo and Node.js - Dojo Toolkit Tutorial Hope this was helpful.
... View more
03-13-2017
06:05 PM
|
1
|
3
|
2102
|
|
POST
|
Hello Dorothy, I have reviewed the point in question. I find that the accuracy of the points differ. The coordinates in the map service is X: -1.3676985192200001E7 and Y: 5654847.198399998 whereas, the latitude_dec: 45.21129 and longitude_dec: -122.862434 but if you convert the point coordinates to WGS84 I get lat : 45.21129548364 and long :-122.86244838829631. It is almost same, but slightly different. The difference does not affect on higher map-scale, but at lower map-scale you will be able to see the difference visibly. You need to decide which value is correct and updated the other value accordingly. Hope this was helpful.
... View more
03-13-2017
10:20 AM
|
1
|
1
|
1967
|
|
POST
|
Ok so, you add a point to the map as Graphic object. How is the other point added to map. FeatureLayer or Dynamic Layer? and which SpatialReference is that layer in. And the coordinates for both the points are same? even all the decimal places?
... View more
03-13-2017
09:03 AM
|
0
|
3
|
1967
|
|
POST
|
What is the SpatialReference of the basemap used? Can you share the values of the coordinates.
... View more
03-13-2017
08:29 AM
|
0
|
5
|
1967
|
|
POST
|
The fiddler you have setup, contains localhost which is not available to us. So we are not able to test the fiddler. However, I see in the code that you are trying to select features, even before the layer has been added to the map. This is not possible and probably the reason why you are getting the error. If you are trying to limit the visible features from a feature layer based on selection from the dropdown. You may want to try it, by setting the definitionExpression of the FeatureLayer. Again the layer needs to be added to the map or you can pass it in the options parameter, while initializing the FeatureLayer. Hope this is helpful.
... View more
03-11-2017
08:47 AM
|
1
|
4
|
1706
|
|
POST
|
Have you looked at the valueExpression in the ClassBreaksRenderer. It uses the new Arcade format, which can be used to small calculation and use that as alternative for attributeField.
... View more
03-09-2017
06:56 AM
|
0
|
0
|
1610
|
|
POST
|
You cannot add a field into a FeatureLayer at runtime. Unless, you do it every time the FeatureLayer updates itself. What kind of mode are you using for the FeatureLayer. If it is AUTO or ONDEMAND, you might have problems, because the content keeps getting updated when ever the map extent changes. You might have better luck with SNAPSHOT as the features are retrieved only once.
... View more
03-09-2017
06:30 AM
|
0
|
0
|
1610
|
|
POST
|
Yes it is possible, but you would have to build the map, using ArcGIS JS API, and not just the Legend.
... View more
03-08-2017
06:06 AM
|
0
|
3
|
1488
|
|
POST
|
What would you do with that ClassBreaksDefinition? Its purpose is to create renderer, which you will be then using to update the symbology of a graphicslayer or featurelayer. If there is no field with the values in the array, the symbology will not work. If you are talking about creating class breaks, with values(min, max symbol etc) stored in an array. that might be possible. You need not use GenerateRendererTask. You can simply create a new ClassBreaksRenderer and update the infos property with the desired valid values.
... View more
03-08-2017
06:02 AM
|
0
|
2
|
1610
|
|
POST
|
Hello Manisha Does you application has anything to do with ArcGIS or ArcGIS JavaScript API? It doesn't look like you are using it.
... View more
03-07-2017
08:19 AM
|
0
|
5
|
1488
|
|
POST
|
Which map are we talking about? Please be more descriptive about the issue you are facing. Below are some point that you can add to you post which will make the other developers understand the problem and provide you solutions. Provide a brief background what you trying to achieve. Provide the version of API you are using. Provide the error information, if you are getting any. Try to add some code about what you have tried so far, or the part where the error occurs.
... View more
03-07-2017
08:04 AM
|
1
|
7
|
1488
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-24-2017 07:15 AM | |
| 1 | 09-13-2016 06:27 AM | |
| 1 | 05-21-2015 08:06 AM | |
| 1 | 12-16-2015 05:43 AM | |
| 1 | 07-20-2015 09:33 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-29-2024
02:34 AM
|