|
POST
|
Interesting result. Unfortunately, I don't think there is something you can do with the legend dijit result. I would try two alternatives: 1. Use agsjs.dijit.TOC developed by nliu. (http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109) 2. It's not too hard to develop a custom one using REST API, especially if you only want to display the legend, not to have it also works as Table of Content.
... View more
08-16-2013
06:45 AM
|
0
|
0
|
1055
|
|
POST
|
I am trying to narrow down the issue whether your custom module can be located or something needs to be changed with your custom module due to the change of dojo source. JS API v3.6 is using dojo 1.8.3. Unless you have used some new dojo features that are available in dojo 1.8.5, but not 1.8.3, otherwise I would be surprised it is the code issue if works for dojo 1.8.5. I would check the module url using Developer Tools making sure it is correct. If so, I would make some breakpoints inside the entry function of the module when it's loaded, and see which step fails.
... View more
08-16-2013
06:24 AM
|
0
|
0
|
1504
|
|
POST
|
Try this: Hide the infoWindow when the edit toolbar is activated; var infoWinCopy = map.infoWindow;
aspect.before(drawTool, "activate", function() {
[INDENT]map.infoWindow = null;[/INDENT]
}); Restore the infoWindow when drawing is completed. drawTool.on("drawEnd", function() {
[INDENT]map.infoWindow = infoWinCopy;[/INDENT]
});
... View more
08-15-2013
03:18 PM
|
2
|
0
|
1746
|
|
POST
|
Use Chrome to load your page, and open Developer Tools (Ctrl-SHIFT-i), in which click Network. Then refresh your page and check the url of the request to your custom module. More than likely, the url is incorrect. Correct it if possible.
... View more
08-15-2013
03:00 PM
|
0
|
0
|
1504
|
|
POST
|
mouse-over on onMouseOver should be the one you are looking for. Here is what event description: Fires when the mouse moves into the map region of the HTML page.
... View more
08-15-2013
02:53 PM
|
0
|
0
|
545
|
|
POST
|
To my understanding, Editor dijit and Edit toolbar are mainly designed to allow the users to interact with the edit, meaning user click to add a new feature or click on an existing feature and drag to move a new location. In your case, the user needs not to change the location manually. I don't think using Editor dijit and/or Edit toolbar is needed. What you can do is to create a feature layer that will be edited. Then as you mentioned in the workflow, select an existing feature, then in the callback function. Below code is using dojo/on event. To use dojo.connect, follow the legacy way mentioned in the api. featLayer.on("click", function(response) {
[INDENT]var geom = response.graphic.geometry;
geom.setLatitude(lat);
geom.setLongitude(lon);
featLayer.applyEdits(null, [response.graphic], null);[/INDENT]
});
... View more
08-15-2013
02:49 PM
|
0
|
0
|
689
|
|
POST
|
I would echo Russell's suggestion. Often times, the attachments have already been set up in the feature class. The end users will only need to access them via the web map instead of editing them. It will be nice to make the attachments available for identify and query operations. A flag variable may be good to have to control if attachments will be returned.
... View more
08-15-2013
10:13 AM
|
0
|
0
|
1010
|
|
POST
|
Thanks John for looking into this issue. To be honest, I am not good at documenting the issues I've experienced. I know maxRecordCount is a read-only property since we tried to control how many features can be returned at the feature layer level and failed. It cannot be even controlled at the map service level via JS api. The only way to control is to change the settings via ArcGIS Server Manager or ArcCatalog (maybe?). In general, I know Javascript allows modifying any property of an object. The only issue is whether JS API will honor the change or not. I can easily tell a property is read-write if there is a setter method for it. Otherwise, I will need to guess.
... View more
08-15-2013
10:03 AM
|
0
|
0
|
408
|
|
POST
|
Do you want to popup the infoWindow for one feature when the map is loaded? If so, as to the cluster sample, you can invoke a function, like queryMyFeature, near the end of function addClusters. queryMyFeature will query a feature or features that you like to display the infoWindow. Then inside the callback function of the query, you can use var popLocation = response.features[0].geometry; map.infoWindow.setFeatures(response.features); map.infoWindow.show(popLocation);
... View more
08-15-2013
09:33 AM
|
0
|
0
|
510
|
|
POST
|
Here is one example: featureLayer.maxRecordCount. I thought I can set the value, but turned out it's a value carried over from the map service. Actually there is no way to control the record count at the feature layer level. I am not sure if this property should exist in the api if its value cannot be set and be honored.
... View more
08-15-2013
09:06 AM
|
0
|
0
|
1966
|
|
POST
|
It took me quite a while to figure out that the layer properties will be populated when it's loaded. In addition, the documentation should also mention what properties are read-only, and what are read-write. For constructors, which parameters are required, and which are optional. These are the key info for developers to use the api properly. I couldn't remember how many times I spent lots of effort trying to figure out these simple things which should be documented. ESRI does need to improve the documentation.
... View more
08-15-2013
07:47 AM
|
0
|
0
|
1966
|
|
POST
|
Try: var damValue = $.trim($("input[name='damname']").val()); var hazValue = $.trim($("input[name='HAZCLASS']").val()); var damExpr = "damname = '" + damValue + "'"; var hazExpr = hazValue ? "HAZCLASS = " + hazValue : ""; query.where = damExpr + hazExpr ? " OR " + hazExpr : "";
... View more
08-15-2013
07:02 AM
|
0
|
0
|
1228
|
|
POST
|
If the definition expression is for one field, use IN operator then. wellFeatureLayer.setDefinitionExpression("welltype IN ('Gas','Geothermal','Water')"); Refer to http://resources.arcgis.com/en/help/main/10.1/index.html#//00s500000033000000 for more details.
... View more
08-15-2013
06:46 AM
|
0
|
0
|
727
|
|
POST
|
Some required print parameters are missing. Are you using the Print dijit or PrintTask?
... View more
08-14-2013
07:35 AM
|
0
|
0
|
1029
|
|
POST
|
I agree with John. What you need to do is to open the print templates in ArcMap and modify them the way you like, including adding the scalebar. The print templates are located under <arcgisserver folder>/templates folder on the arcgis server. Once you finish editing the templates and save them, the print tool should pick up the change. Good luck!
... View more
08-14-2013
07:32 AM
|
0
|
0
|
404
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-17-2013 05:16 AM | |
| 1 | 11-06-2013 04:34 AM | |
| 1 | 08-29-2013 10:58 AM | |
| 6 | 10-20-2020 02:09 PM | |
| 1 | 11-20-2013 06:09 AM |
| Online Status |
Offline
|
| Date Last Visited |
10-17-2024
08:41 AM
|