|
POST
|
Did it before with no issues. However, it may not work well with custom widgets.
... View more
11-26-2020
11:57 AM
|
0
|
1
|
1865
|
|
POST
|
You can define the new web map id by changing it in the app config.json file. Look for the itemId value found under the map object. "map": { "3D": false, "2D": true, "position": { "left": 0, "top": 40, "right": 0, "bottom": 0 }, "itemId": "<your map id>", "mapOptions": { "extent": { "xmin": -14304987.782245828, "ymin": 3965994.21067048, "xmax": -12185541.861955022, "ymax": 5115607.116079226, "spatialReference": { "wkid": 102100 }
... View more
11-19-2020
02:44 PM
|
1
|
1
|
3569
|
|
POST
|
You can use third party library to plot scatter graph in a custom widget An example of third party library https://plotly.com/javascript/ An example of how to use third party library in the arcgis js. https://community.esri.com/t5/web-appbuilder-custom-widgets/bar-chart-cedar-widget-v1-3-04-18-2018/ta-p/905837 Another example: https://esri.github.io/esri-leaflet/examples/dynamic-chart.html Scatter plot wiidget based on 3.x JS API https://github.com/Esri/dashboard-samples/tree/master/scatterPlotWidget
... View more
11-13-2020
08:46 AM
|
1
|
1
|
2952
|
|
POST
|
Thank you.I was not aware of the window.opener. Very useful. It works! So,the culprit was the link to the index.js file in tool.html which changed the scope?
... View more
09-09-2020
11:39 AM
|
0
|
1
|
3762
|
|
POST
|
I did. No change. Robert, just to make sure we are on the same place, let me clarify the workflow. First, the index.html with the index.js starts and loads the map. It also loads a button. When the button is clicked, another page opens up which has another button. When you click that button, it sends the global variable window.check(url) to the index.js to update the map with new fL. The purpose of this workflow is to be able to update a map by using external pages. Attached are the three files: index.html, index.js and the second page tool.html. Thank you. https://community.esri.com/docs/DOC-15441-testingzip
... View more
09-09-2020
10:14 AM
|
0
|
3
|
3762
|
|
POST
|
The console.log for lines 9 and 10 are shown below. They are not null but it it seems there are no data. Then I made the esrimap and view global, but same result. window.esrimap = new Map({....
window.view = new MapView({....
check = function check1(value) {
oldvalue = ""
console.log(value)
//undefined === oldvalue && (oldvalue = value);
trailheadsLayer = new FeatureLayer({
url: value
});
console.log(esrimap)
console.log(view)
console.log(trailheadsLayer)
if (trailheadsLayer) {
esrimap.add(trailheadsLayer)
}
}
... View more
09-09-2020
09:47 AM
|
0
|
5
|
3762
|
|
POST
|
Thank you for moving the question to the correct forum. No, they are not. Since the check function is local with the esrimap and view I didn't see the reason to make them global. Is the assumption incorrect?
... View more
09-09-2020
09:20 AM
|
0
|
7
|
3762
|
|
POST
|
Another page is calling a global function named check and passes on a url to this file, line 19 The console.log on line 21 verifies that the variable (url) is passed on, but the map is never updated with the new fL. Tried refreshed but no showing. Suggestions? require([
"esri/Map", 'dojo/_base/lang',
"esri/views/MapView",
"esri/layers/FeatureLayer"
], function (Map, lang, MapView, FeatureLayer) {
esrimap = new Map({
basemap: "topo-vector"
});
view = new MapView({
container: "viewDiv",
map: esrimap,
center: [-118.80543, 34.02700],
zoom: 13
});
check = function check1(value) {
console.log(value)
trailheadsLayer = new FeatureLayer({
url: value
});
console.log(trailheadsLayer)
esrimap.add(trailheadsLayer)
}
});
... View more
09-08-2020
05:20 PM
|
0
|
9
|
3851
|
|
DOC
|
I noticed that when I add the popup widget to an app, the AT loses its horizontal scroll bar. Did anyone else notice that?
... View more
09-01-2020
04:08 PM
|
0
|
0
|
16866
|
|
POST
|
ok Got it. In my case is a bit more work because I am using the featurelayer.setRenderer. I don't assign the symbol on each feature. So I do need an extra fL with the second color. Then I have to make sure that layerlist and legend don't list the extra fL. Thanks.
... View more
08-19-2020
01:23 PM
|
0
|
1
|
2395
|
|
POST
|
Did you mean something like this. IT seems that only the first linesymbol is drawn. sfs = new SimpleRenderer(new SimpleLineSymbol(
SimpleLineSymbol.STYLE_SOLID,
new Color([255, 236, 176]),
3),
new SimpleLineSymbol(
SimpleLineSymbol.STYLE_SOLID,
new Color([0, 0, 0]),
5)
)
... View more
08-19-2020
12:52 PM
|
0
|
3
|
2395
|
|
POST
|
ok Thanks. I read the posting at geonet at a number of places like at: https://community.esri.com/thread/231763-simplelinesymbol-with-line-border Read the last response.
... View more
08-19-2020
12:39 PM
|
0
|
0
|
2395
|
|
POST
|
I read in geonet that: "In version 3.X of the API you could specify the outline color separately from the inner color, but I the 4.X LineSymbol does not have that property. " So, in 3.x how would you modify/add the below to add a black outline. sfs = new SimpleRenderer(new SimpleLineSymbol(
SimpleLineSymbol.STYLE_SOLID,
new Color([255, 236, 176, 3]),
5)
) Thanks,.
... View more
08-19-2020
11:52 AM
|
0
|
6
|
2453
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 3 weeks ago | |
| 1 | 4 weeks ago | |
| 1 | 06-19-2025 10:13 PM | |
| 3 | 02-06-2026 10:44 AM | |
| 1 | 01-08-2026 12:50 PM |
| Online Status |
Offline
|
| Date Last Visited |
Wednesday
|