|
POST
|
Since, you are using the "streets" basemap, the map gets the spatial reference from that layer. which is not Sweref99_TM. The graphics is not automatically projected to the map's spatial reference. You need to do that before adding to the map.
... View more
12-16-2015
05:43 AM
|
1
|
0
|
1122
|
|
POST
|
quick question, the layer.identifyTask, are you adding this property to a esri Layer object, or it is your own object?
... View more
12-15-2015
09:08 AM
|
0
|
1
|
1569
|
|
POST
|
Sorry my bad, I wanted you to look at the arguments variable in the cosole.
... View more
12-15-2015
09:05 AM
|
0
|
0
|
1569
|
|
POST
|
Could you also share the signature of the "identifyCallback". Does it has 3 parameters? the syntax for the dojo/promise/all seems wrong. it should be something like all(identifies).then( function(results){ //here your code }); but you seem to have replaced it with lang.hitch. but it does not have a error callback. may be thats what's wrong. break inside the identifyCallback function and check the arguments parameter and check what values are returned.
... View more
12-15-2015
08:17 AM
|
0
|
4
|
1569
|
|
POST
|
That was exactly how I have it in my implemenation. For some reason, it used to fail to get the measurement js file. and it was not regular. I could not determine the root cause. but added the require as mentioned above, resolved the issue for me. @Kelly - similar implementation can be found in cmv framework.
... View more
12-15-2015
06:58 AM
|
0
|
0
|
3567
|
|
POST
|
Hello Charles, I am not sure using, setContent which takes html string, will immediately allow you to access the it as dom object. i.e. $f("playerdiv") might not return an object. Please check if it not null. Also, should it be "$" or "$f". Consdering, it works, the getWebCamsCSVTextContent function is supposed to return a string or deferred object which will be displayed in the info window. since you are not returning anything, may be it is clearing the content that you have update. Is it possible to setup a jsbin to take a look at it. Thejus
... View more
12-14-2015
06:12 AM
|
1
|
0
|
1020
|
|
POST
|
Hello Alok, The code is not the problem, you need a proxy service/application setup in order to process request. Check this out, it will give information about proxy and how to set it up. Using the proxy | Guide | ArcGIS API for JavaScript Hope this was helpful. Thejus
... View more
12-14-2015
05:34 AM
|
1
|
0
|
2115
|
|
POST
|
Have you setup the proxy as mentioned in that sample?
... View more
12-11-2015
05:45 AM
|
2
|
2
|
2115
|
|
POST
|
Could you share your code? I had faced similar error, but different message. the measurement widget js was not loading properly. I was loading the widgets within a custom widget in my case. To fix it, I included the measurement widget in the require present in the html page. this ensured that the required js are retrieved before it loads my custom widget. May be you could also do something similar. Hope this was helpful. Thejus
... View more
12-08-2015
07:41 AM
|
0
|
2
|
3567
|
|
POST
|
You need to enable support for dynamic layer on the map service in ArcGIS Server. Has it been enabled?
... View more
12-07-2015
11:07 AM
|
1
|
1
|
1288
|
|
POST
|
Hello Rickey, The above solution show the way to replace the codedDomain values before the dgrid store has been set. but, if you want to change the value using the formatter, then it is also possible. But, you need to make sure that the function passed to the formatter has access to the FeatureLayer and information regarding the field name. you need to get the field from the featurelayer for the fieldname. Then you can use the method provided in the other thread (QueryTask and coded domain values) to return the value instead of the code. Hope this was helpful. Thejus
... View more
12-04-2015
09:28 AM
|
0
|
0
|
460
|
|
POST
|
you should try without the "<" ">" signs. also feature does not contain the fields property. if you see my code, I am getting the fields from the stateLayer and not feature.
... View more
12-04-2015
08:30 AM
|
1
|
2
|
2444
|
|
POST
|
Hello Brad, I think you can use a FeatureService to create a FeatureLayer, you dont need to use GraphicLayer. It may not be possible to use AttributeInspector on GraphicsLayer, as it is client only and does not have method or applying edits. also some required information like fields etc does not exist. If you must use GraphicsLayer, I would suggest you use "infoWindow.setContent" to build a form like display and save the updated attributes to the graphic. You can then save it as json string till the user has completed filling the other non-gis form and save is by called the rest endpoints of the FeatureService. Hope this was helpful. Warm Regards, Thejus
... View more
12-04-2015
08:28 AM
|
1
|
0
|
1879
|
|
POST
|
Hello Rickey, You need to do if before you set the data to dgrid. like below statesLayer.on("load", function(evt) {
var query = new Query();
query.where = "1=1";
evt.layer.queryFeatures(query, function(featureSet) {
var items = array.map(featureSet.features, function(feature) {
var attributes = lang.clone(feature.attributes);
var fields = statesLayer.fields;
//Replace the attributes values for domain values here.
return attributes;
});
//idProperty must be set manually if value is something other than 'id'
var memStore = new Memory({
data: items,
idProperty: "ObjectID"
});
window.grid.set("store", memStore);
window.grid.set("sort", "STATE_NAME");
grid.on(".field-ObjectID:click", function(e) {
//retrieve the ObjectId when someone clicks on the magnifying glass
if (e.target.alt) {
zoomRow(e.target.alt);
}
});
});
}); Thejus
... View more
12-04-2015
08:06 AM
|
1
|
4
|
2444
|
|
POST
|
Hello Brian, why dont you simply make a single global Error handling function, pass that as your error callback for all your task request. This will work if you dont have any task specific error handler. otherwise, you can just call the global error handling function in each of your error callbacks. Hope this was helpful. Warm Regards, Thejus
... View more
12-04-2015
05:47 AM
|
0
|
1
|
3079
|
| 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 |
05-13-2026
09:55 AM
|