|
POST
|
So the issue is that the tooltip text is showing up at a different part of the web page? Sounds like a CSS issue... did you include the CSS similar to what is being used in the sample? Do you have a jsbin or similar that shows the problem? <link rel="stylesheet" href="https://js.arcgis.com/4.4/esri/css/main.css">
<link rel="stylesheet" href="https://js.arcgis.com/4.4/dijit/themes/claro/claro.css">
... View more
07-20-2017
10:33 AM
|
2
|
1
|
1942
|
|
POST
|
Ryan, check the order of the classes in your require... make sure they're declared and used in the same order.
... View more
07-18-2017
10:58 AM
|
2
|
1
|
4475
|
|
POST
|
Ryan, please note that this question was posted to the ArcGIS API for Javascript group. Regardless, I think you have an incorrect URL as the first part should point to the user content url (<usercontent-url>). Follow the SDK links to track down the full url: //<usercontent-url>/addItem //<content-url>/users/<username>/addItem //<root-url>/content/users/<username>/addItem //www.arcgis.com/sharing/rest//content/users/<username>/addItem Also, since we're dealing with an operation specific to a user I normally use the organization url instead of "www.arcgis".
... View more
07-18-2017
09:02 AM
|
0
|
0
|
702
|
|
POST
|
Is "Number of Local Employees" the name of field? Make sure you specify the field name, not the alias. Also, please note that the above sample has many slices (even though only one field is specified) because it uses all the returned records for the specific feature accessed via the relationship which is available to the service. If not using a relationship, then each value in the specified fields for that feature becomes a slice.
... View more
07-12-2017
01:30 PM
|
0
|
1
|
1501
|
|
POST
|
In the Network tab, can you see if the request is being made as GET or POST? If it still uses GET, one suggestion is to try using a boolean instead of a string for the 'usePost' parameter. It also helps if you have a JSBin or similar so we can see the code and issue in action. {usePost:true}
... View more
06-13-2017
09:54 AM
|
4
|
0
|
5142
|
|
POST
|
This only happens the first time the text symbol editor is created. One possible workaround is to activate the edit toolbar with a temp graphic and then remove it. var otherGraphic = new Graphic(point, text);
map.graphics.add(otherGraphic);
editTool.activate(Edit.SCALE, otherGraphic);
editTool.deactivate();
map.graphics.remove(otherGraphic);
... View more
06-09-2017
12:28 PM
|
1
|
0
|
1407
|
|
POST
|
Check out this other post as the solution might apply to this situation as well. The solution involves modifying the request parameters before it's sent to the REST endpoint via the setRequestPreCallback() method (esri/request | API Reference | ArcGIS API for JavaScript 3.20 ) Related Post:RouteTask Travel Mode
... View more
05-31-2017
10:32 AM
|
2
|
1
|
2337
|
|
POST
|
The ioArgs is passed to your function by setRequestPreCallback, so don't call your function, just reference it: esriRequest.setRequestPreCallback(travelModeCallback); - I would suggest you log an issue Tech Support so it's in the system and the dev team can take a look at this.
... View more
05-26-2017
08:56 AM
|
0
|
1
|
2081
|
|
POST
|
Q: What version of the JS API are you using? Q: Check the parameters being sent to the REST endpoint (Network tab in the browser dev pane) and verify that 'travelMode' is being sent. If the parameter is missing, you could try appending it via 'setRequestPreCallback(...)'. Here's a sample, but you'll have to modify it to match the your code: // APPEND TRAVEL MODE TO SERVICE AREA REQUEST //
esriRequest.setRequestPreCallback((ioArgs) => {
if((ioArgs.url.search(/solveServiceArea/ig) > -1) && (this.currentTravelModeInfo != null)) {
ioArgs.content.travelMode = this.currentTravelModeInfo.TravelMode;
}
return ioArgs;
});
... View more
05-25-2017
06:16 PM
|
0
|
0
|
2081
|
|
POST
|
No need to convert it to a string, but you do need to convert the JS object to JSON: return promiseUtils.resolve({data: env.toJSON()}); You can then recreate the Extent in your main thread by passing in the JSON directly to the Extent constructor:
... View more
05-16-2017
10:44 AM
|
1
|
1
|
2028
|
|
POST
|
This allows you to resolve paths to your worker scripts relative to your app so you don't have to provide a full url when calling connection.open(...). config | API Reference | ArcGIS API for JavaScript 4.3
... View more
05-16-2017
10:14 AM
|
0
|
0
|
2028
|
|
POST
|
From AttributeInspector | API Reference | ArcGIS API for JavaScript 3.20 - "The AttributeInspector widget honors the domains and subtypes as defined by the Feature Service." This means that a dropdown list of appropriate values will be presented to the user, and this is the best way to add the functionality you need as you're ensuring only one of the correct values are used and these constraints are available throughout the system and not just your app. Additionally, if you need more control, you can specify your own dijit to handle the update for a specific field by using the 'customField' property when specifying the 'fieldInfos' of a 'layerInfo' in the AttributeInspector constructor.
... View more
05-12-2017
12:06 PM
|
2
|
1
|
2296
|
|
POST
|
The Editor gives you access to the Edit toolbar: Editor | API Reference | ArcGIS API for JavaScript 3.20 Just listen for the 'activate' event which give you the current graphic: Edit | API Reference | ArcGIS API for JavaScript 3.20 You can update the desired attribute of the graphic, then refresh the AttributeInspector: AttributeInspector | API Reference | ArcGIS API for JavaScript 3.20
... View more
05-11-2017
04:08 PM
|
2
|
4
|
2296
|
|
POST
|
Use the 'container' constructor property: Search | API Reference | ArcGIS API for JavaScript 4.3 JS Bin - Collaborative JavaScript Debugging
... View more
05-11-2017
03:57 PM
|
2
|
0
|
664
|
|
POST
|
A different approach is to disable menu items based on the item clicked on (my bin was messed up, so below the relevant code, including an update for hiding instead of disabling). Regarding your 'one off' issue; could it be that the store items don't have a unique id? var grid = new OnDemandGrid({
store: new Memory({ data: [{ id:"A", label: "A" },{ id:"B", label: "B" }] }),
columns: { label: "Label" }
}, "grid");
grid.startup();
var cellMenu = new Menu({targetNodeIds:[grid.domNode]});
var menuItemA = new MenuItem({
label:"Label_A Menu",
iconClass:"dijitEditorIcon dijitEditorIconCopy",
onClick: function(){alert('A was clicked')}
});
var menuItemB = new MenuItem({
label:"Label_B Menu",
iconClass:"dijitEditorIcon dijitEditorIconCut",
onClick: function(){alert('B was clicked')}
});
cellMenu.addChild(menuItemA);
cellMenu.addChild(menuItemB);
cellMenu.startup();
grid.on(".dgrid-content .dgrid-row:contextmenu", function(evt) {
evt.preventDefault();
var row = grid.row(evt);
var activeItemLabel = row.data.label;
//menuItemA.attr("disabled",(activeItemLabel !== "A"));
//menuItemB.attr("disabled",(activeItemLabel !== "B"));
domStyle.set(menuItemA.domNode, "display", (activeItemLabel !== "A") ? "none": "inline-block");
domStyle.set(menuItemB.domNode, "display", (activeItemLabel !== "B") ? "none" : "inline-block");
});
... View more
04-26-2017
05:55 PM
|
0
|
0
|
1016
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-07-2024 04:14 PM | |
| 1 | 02-23-2024 12:40 PM | |
| 1 | 03-01-2024 10:48 AM | |
| 2 | 08-03-2023 02:34 PM | |
| 2 | 07-19-2023 12:05 PM |
| Online Status |
Offline
|
| Date Last Visited |
10-24-2024
06:01 PM
|