|
POST
|
Quick question, why are you passing circleBuffer.getExtent, and then looping through the response to find if it is within the circle. pass the circle directly and get the result. I am not sure how the client contains logic is implemented. nor if the point size is considered to identify if it is within or not.
... View more
06-02-2015
11:22 AM
|
0
|
2
|
1090
|
|
POST
|
From what you mentioned, I assume you need to pass some specific values to the button click event, values from graphics. Is my understanding correct? In that case you can use a function instead of node infoTemplate.setContent(setTemplateContent);
var Count = 0;
function setTemplateContent(graphic) {
var objectId = graphic.attributes['OBJECTID'];
Count++;
return '<div style="background-color:grey;color:white; height:60px">Graphic ' + Count +
'<button onclick=\"buttonClick(' + objectId + ')\" >Button for Graphic ' + Count + '</button>' +
'</div>'
}
function buttonClick(objId){
// your code here
} something like this. please note, the above code is not tested
... View more
06-02-2015
08:33 AM
|
0
|
1
|
2594
|
|
POST
|
Your example did not have any events. Is the button visible as expected? my point is that you need to build proper template string and not use dom-construct.
... View more
06-02-2015
07:07 AM
|
0
|
3
|
2594
|
|
POST
|
Hello Sumit, the infoTemplate.setContent takes string | Function try infoTemplate.setContent(templateDiv.outerHTML);
... View more
06-02-2015
06:45 AM
|
0
|
5
|
2594
|
|
POST
|
The reason you are not see any point(at first), the loading is based on selection. check out the code below, I just used another one of the FeatureServer from the same server, and this works for me heres the code below.
... View more
05-29-2015
01:12 PM
|
0
|
1
|
1330
|
|
POST
|
The code you provided worked perfectly for me. Except for 2 things. 1. the Layer you have provided was not accessible to me so, I had to use another one, so different Layer and names. 2. I do not have a proxy setup. So, I had to check the alwaysUseProxy = false. (and this is not something you are worried about) I main guess would be, some issue with the service itself. Check if you are trying to access a secured service.
... View more
05-29-2015
09:57 AM
|
0
|
3
|
1330
|
|
POST
|
Can you provide the code atleast. I think something might be wrong in the flow
... View more
05-29-2015
09:03 AM
|
0
|
0
|
2479
|
|
POST
|
Ken is right, In you case you wont be able to get details through dom you need to use the registry.byId
... View more
05-29-2015
08:51 AM
|
0
|
0
|
452
|
|
POST
|
If you could setup a sandbox or provide us the code it would be really helpful. If you cannot. check if the dom.byId("fieldSelect") is returning the proper node you need. also the getElementById returns an element. I think you dont need to get value of it. like below var selectedField = document.getElementById('fieldSelect'); var index = selectedField.options[selectedField.selectedIndex].value; Also, check registry.byId. make sure you add the registry module to require.
... View more
05-29-2015
08:32 AM
|
1
|
1
|
2479
|
|
POST
|
FeatureLayer has a infoTemplate property and you can use it to change the content. Check out this example Format info window content | ArcGIS API for JavaScript
... View more
05-29-2015
08:13 AM
|
0
|
1
|
1784
|
|
POST
|
you need to push it to searchFields not findParams... small typo
... View more
05-29-2015
07:54 AM
|
1
|
1
|
2479
|
|
POST
|
try this out findParams.searchFields = [dom.byId("fieldSelect").value];
... View more
05-29-2015
07:43 AM
|
1
|
0
|
2479
|
|
POST
|
Hi Chris, I am not able to access the service. Is the feature layer correct??? Thejus
... View more
05-29-2015
07:00 AM
|
0
|
0
|
1330
|
|
POST
|
I don't find any problem with the sample application, that you have posted above. The legend control seem to work as expected. I can see that the 2 layers are visible on the map and the legends for those 2 layers. And when you zoom out the layers are not visible and there is no legends as well. What do you find not working in this?
... View more
05-29-2015
06:53 AM
|
1
|
2
|
1285
|
|
POST
|
It all depend, which task you are using and how you are implementing. If you use QueryTask, you may not achieve it without providing a buffered geometry. Analysis widget is a whole other thing. check out Working with Analysis Widgets | Guide | ArcGIS API for JavaScript and see what works for you.
... View more
05-26-2015
10:28 AM
|
0
|
0
|
464
|
| 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
|