|
POST
|
can you share something more, like error message or code?
... View more
12-03-2015
09:47 AM
|
1
|
5
|
3940
|
|
POST
|
Hello Aditya, You can setup the map.onclick event online when the other inputs are filled. or you can have a variable which checks if that required value is present and if not then just escape from the click event without doing any thing. Hope this was helpful. Thejus
... View more
12-03-2015
05:53 AM
|
1
|
1
|
1130
|
|
POST
|
Can you also share the html part where the info node is.
... View more
11-30-2015
09:30 AM
|
0
|
1
|
2062
|
|
POST
|
You need to expand the search extent. Usually if you just pass a point for query/identify tasks, chances of getting a result back is less, unless it is a polygon layer. And you are trying to identify a pointl layer, the chance of a point intersecting another is very rare. Hence you need to provide a buffered geometry instead of point. var extent = new Extent(event.mapPoint.X - 5, event.mapPoint.Y - 5, event.mapPoint.X + 5,event.mapPoint.Y + 5, map.spatialReference);
... View more
11-20-2015
06:01 AM
|
0
|
0
|
967
|
|
POST
|
Because, the layer.onClick event is executed before the event for edit toolbar, which I think should be map.onclick. when that happens the event is stopped by "event.stop(evt);" code. Hence nothing happens.
... View more
11-20-2015
05:46 AM
|
0
|
0
|
1047
|
|
POST
|
Found the issue, in the require for draw toolbar you need you use "esri/toolbars/draw" and not "esri/toolbars/Draw" the change is case is not getting the required js file which fails.
... View more
11-16-2015
12:30 PM
|
1
|
1
|
3488
|
|
POST
|
The drawToolbar is a local variable in initToolbar function hence, you cannot use it in addGraphics method. hence, I had asked you to move that variable outside like befow var drawToolbar;
function initToolbar(){
...
drawToolbar = new Draw(mapMain, { ...
....
} then, you can use that variable in addGraphics method. Strange, that you are still getting the error. let me ask you a basic question. when do you get the error at the time of loading or after you draw a grometry? Can you set up a jsBin or something?
... View more
11-16-2015
11:17 AM
|
0
|
3
|
3488
|
|
POST
|
apart from drawToolbar.deactivate in addGraphics. there is another error var drawToolbar = new Draw({
map: mapMain,
drawTime: 25,
tolerance: 4
}); the correct syntax is var drawToolbar = new Draw(mapMain, {
drawTime: 25,
tolerance: 4
}); Hope this helps
... View more
11-16-2015
10:15 AM
|
1
|
5
|
3488
|
|
POST
|
the error is in the addGraphics function the drawToolbar is out of scope. the Scope of drawToolbar is within initDrawTool method only. Try to move the variable definition out of the function.
... View more
11-16-2015
09:12 AM
|
0
|
7
|
3488
|
|
POST
|
Hello Meghna, If my understanding is correct, you are storeing the search result and creating a list of span and not displaying them on the map. and OnClick of the span you add/display them on the map with its popup window open. Also before adding you are converting the point into polygon with a buffer distance (I didn't understand why you are doing this). Now about the "the second, third ..etc result", do you mean you wish to show all the seach result at once. It is possible you need to loop through results and add them to map. but, you will not be able to show the popup window for all the results. You may have to set up on click or mouse over event to show popup window for each of the results. Thejus
... View more
11-16-2015
06:04 AM
|
0
|
1
|
1064
|
|
POST
|
You could enable the save button in attribute-change event, to ensure that the changes are applied before user can click save.
... View more
11-10-2015
10:39 AM
|
0
|
2
|
3048
|
|
POST
|
I asked this part of code to understand how the feature parameter was passed. Well I would suggest you to debug and see if the attributes are actually changed/updated before the applyedits are called. That way we can be sure that it is not updating. In the sample, the main part where the attributes are updates is attInspector.on("attribute-change", function(evt) {
//store the updates to apply when the save button is clicked
updateFeature.attributes[evt.fieldName] = evt.fieldValue;
}); ensure that the correct feature is updated in that event. Otherwise, you will be just passing the original feature and it will send success without updating any values. Hope this was helpful. Thejus
... View more
11-10-2015
10:07 AM
|
1
|
4
|
3048
|
|
POST
|
Could you also share the part where you call or setup the click event to call the saveClickFunction function.
... View more
11-10-2015
09:34 AM
|
0
|
6
|
3048
|
|
POST
|
If you want to get the layer index of layers within the Dynamic map service, Jon's sample works. But, if you want to know the index of layers added to the map, then you would need to maintain a local array of values. First of all I would like to clarify that the LayerId and index of a layer are 2 different things. The values you get from Map.layerIds and graphicsLayerIds are unique names for the layers added to the map, it does not mean that they are in the same order on the map. To Identify the index you could use the getLayerVisibleAtScale method to get a list of layers and get the index for the layerId you need. This will work if there is no min/maxScale set for the layers. ie., all layers are visible at all levels. There is also an internal property of map "_layers" which contains the list of all the layers. I would suggest to use this with caution. Hope this was useful. Warm Regards, Thejus
... View more
11-10-2015
06:35 AM
|
1
|
1
|
5666
|
|
POST
|
Hello Aditya, I think the map.load event is already executed before you call the maptips function. So I think you should do something like this. if(map.loaded){ map.graphics.enableMouseEvents(); well.on("mouse-out", closeDialog); } else{ map.on("load", function(){ map.graphics.enableMouseEvents(); well.on("mouse-out", closeDialog); }); } or use the layer-add-result event and make sure you add the layer after seting up the event. Thejus
... View more
11-09-2015
07:11 AM
|
2
|
1
|
2893
|
| 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
|