|
POST
|
If the goal is to provide a visual cue to the user based on symbols then you might want to check out the getShapeDescriptors(...) method. It provides the internal details about the GFX representation of the symbol. Note: GFX provides a browser independent abstraction of the symbol. Using the sample code provided in the api you can display the symbols in a dom node. esri/symbols/jsonUtils | API Reference | ArcGIS API for JavaScript 3.18
... View more
10-31-2016
09:24 AM
|
1
|
1
|
1503
|
|
POST
|
Try setting the width via css: .field-PARCELID{
width:300px !important;
}
... View more
10-13-2016
03:49 PM
|
3
|
3
|
2205
|
|
POST
|
This is what I do before calling 'toMap()'... toMapPoint: function (evt) {
var adjustedX = evt.clientX - this.view.position[0];
var adjustedY = evt.clientY - this.view.position[1];
return this.view.toMap(adjustedX, adjustedY);
}
... View more
09-14-2016
04:57 PM
|
1
|
0
|
866
|
|
POST
|
SceneView.constaints doc says 0.5 to 179.5 degrees. Have you tried setting the constraints.tilt.max explicitly?
... View more
08-26-2016
08:28 AM
|
2
|
1
|
1114
|
|
POST
|
There are many different ways this could be done, but in this particular case you don't need QueryTask as the attributes in the county service include the state name. Here's one possible approach: State Name from Popup - JSFiddle You can assign the InfoTemplate to the service sublayer then listen to when the Popup has a selected feature. Based on the attributes of the selected feature you can update the contents of the Popup. If the necessary information only exists as attributes in two different services or sublayers, then one of several different approaches could be taken. In the extreme case of having to use two QueryTasks, the approach would be to use dojo/promise/all to wait for both QueryTasks to complete before inspecting the results of both calls.
... View more
08-24-2016
03:20 PM
|
1
|
0
|
570
|
|
POST
|
It's been some time since I tried this, but I believe another option if your data is being accessed via an ArcGIS Server Map Service (10.1+) is to switch to an ArcGISDynamicMapServiceLayer and use the LayerDrawingOptions so the symbol is rendered on the server.
... View more
08-23-2016
11:58 AM
|
0
|
1
|
1735
|
|
POST
|
- The 'queryFeatures(...)' method returns a FeatureSet (FeatureLayer) So in this line: var tranQuery = lyrMobBnds.queryFeatures(queryTran).then(function(mobResult) ...the variable 'mobResult' is a FeatureSet. As Robert suggests above, you might need to assign a popup template to each Graphic before passing them into the popup.
... View more
08-22-2016
08:54 AM
|
1
|
1
|
1800
|
|
POST
|
Make sure the returned features (mobResult.features) in the resulting FeatureSet have the popupTemplate defined.
... View more
08-19-2016
12:37 PM
|
1
|
3
|
1800
|
|
POST
|
I wonder if this would work: app.activeView.popup.open({
features: mobResult.features,
location: qPoint
});
... View more
08-19-2016
08:47 AM
|
2
|
6
|
1800
|
|
POST
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
<title>Load Portal Item</title>
<style>
html,
body {
font-family: sans-serif;
padding: 0;
margin: 0 !important;
height: 100%;
width: 100%;
}
#item-node {
width: 100%;
height: 100%
}
</style>
<script src="https://js.arcgis.com/4.0/"></script>
<script>
require([
"esri/portal/PortalItem",
"dojo/dom",
"dojo/json",
"dojo/domReady!"
], function(PortalItem, dom, json) {
var portalItem = new PortalItem({
id: "6ada2b1c6a0a43e0861d72938dcdcb92"
});
portalItem.load().then(function(loadedItem) {
dom.byId("item-node").innerHTML = json.stringify(loadedItem, null, " ");
},function(error){
dom.byId("item-node").innerHTML = json.stringify(error, null, " ");
});
});
</script>
</head>
<body>
<pre id="item-node"></pre>
</body>
</html>
... View more
08-02-2016
08:36 AM
|
2
|
0
|
326
|
|
POST
|
One way to avoid the error is by not assigning an id, that way a new unique id is generated each time; this works ok as long as you don't need to know the id of the FilteringSelect, as for example when trying to find it via registry.byId(...). However, a better solution is to create the FilteringSelect once and then just set the store property whenever you create a new store.
... View more
06-25-2016
09:49 AM
|
3
|
2
|
1780
|
|
POST
|
Check out the sample here: https://jscore.esri.com/javascript/jsapi/esri.symbols.jsonutils-amd.html#getshapedescriptors
... View more
02-24-2016
03:48 PM
|
1
|
3
|
4109
|
|
POST
|
Here's another one you could try out: jgrayson-apl/LayerListOpacity · GitHub
... View more
11-20-2015
10:21 AM
|
2
|
0
|
1474
|
|
POST
|
For this particular use case, you'll have to make sure you densify the line as you only have 4 points. Since the Polyline SR is 4326, you can call geodesicUtils.geodesicDensify instead of normalizeUtils.normalizeCentralMeridian.
... View more
02-26-2015
11:19 AM
|
1
|
1
|
2779
|
| 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
|