|
POST
|
@ChrisCarter3 I don't see anything wrong with your code above. What version of EB are you using? There was some changes to the Tabs component in the last release I think. Your code above should work fine in EB 1.7
... View more
04-13-2022
12:28 PM
|
1
|
1
|
1247
|
|
DOC
|
@JorgeKappa The patch is for 1.6 only you are at 1.7 so it is unnecessary. Could be causing you an issue. I would start with a clean 1.7 install and try again. Also just to be sure we are not miscommunicating. The browsers web console is different then the Command window that you are showing in your attachments above. Once you do your clean install and try and add the print widget check your browsers web console for any errors.
... View more
04-13-2022
12:23 PM
|
0
|
0
|
22993
|
|
DOC
|
@JorgeKappa Are there any errors in the web-console? What version of EB are you using?
... View more
04-13-2022
10:03 AM
|
0
|
0
|
23012
|
|
POST
|
@KarthikAditya You specify a specific function in the module to import. import {selectFeature} from 'dist/widgets/arcgis/arcgis-map/src/runtime/utils'
... View more
04-11-2022
05:42 AM
|
0
|
0
|
1041
|
|
POST
|
@MarkJTurnbull This is how I select features in a DS. const dsManager = DataSourceManager.getInstance()
const featureDS = dsManager.getDataSource(myDSId) as FeatureLayerDataSource
featureDS.query({objectIds:[ObjectId_Array]}).then(qr=>{
MessageManager.getInstance().publishMessage(
new DataRecordsSelectionChangeMessage(this.props.id, qr.records)
)
featureDS.selectRecordsByIds?.(qr.records.map((item) => item.getId()))
})
... View more
04-11-2022
05:22 AM
|
3
|
3
|
3181
|
|
POST
|
@Anonymous User It doesn't show points that are in another coordinate system like TUREF I am not familiar with another coordinate system like TUREF... I also have no experience working with the data aggregation widget, so sorry I can not help.
... View more
04-05-2022
05:48 AM
|
0
|
1
|
1459
|
|
DOC
|
@KARIMLABIDI does the FL that does not work have a popup defined in the webmap? Is the popup using Arcade?
... View more
04-01-2022
07:10 AM
|
0
|
0
|
13390
|
|
POST
|
@RodWoodfordOld This is what my custom feature panel widget is designed for. https://community.esri.com/t5/experience-builder-custom-widgets/feature-panel-widget-1-7-0-2-24-22/ta-p/1147687
... View more
03-30-2022
05:21 AM
|
0
|
1
|
1652
|
|
DOC
|
@zrs and @KristinaMarkocevic This 2.23 release addressed some issue with relates. You should give it a try.
... View more
03-29-2022
01:29 PM
|
0
|
0
|
18211
|
|
DOC
|
@PriscillaThoopthong The workflow for what you are describing is to select the polygon using the point drawn and then switch to the By Spatial tab and buffer there and set the search features from to your desired search layer and click your desired spatial relationship button.
... View more
03-28-2022
12:53 PM
|
0
|
0
|
18232
|
|
POST
|
@NickIrwin In 4.13 the draw action had a native property. I am not sure when it was removed but now in 4.23 there is no native property returned in the DrawAction. I mentioned this above to vlagebmap back on 06-25-2021. This is what it would look like in 4.23 (vanilla JS) <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no" />
<title>Select by Point</title>
<link rel="stylesheet" href="https://js.arcgis.com/4.23/esri/themes/light/main.css" />
<script src="https://js.arcgis.com/4.23/"></script>
<style>
html,
body,
#viewDiv {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
</style>
<script>
require([
"esri/views/draw/Draw",
"esri/Map",
"esri/Graphic",
"esri/layers/GraphicsLayer",
"esri/layers/FeatureLayer",
"esri/geometry/Point",
"esri/geometry/Multipoint",
"esri/views/MapView"
], function (Draw, Map, Graphic, GraphicsLayer, FeatureLayer, Point, Multipoint, MapView) {
const pntGraphics = new GraphicsLayer();
let viewClickEvtHandler = null, viewMouseMoveEvtHandler = null;
var renderer = {
type: "simple", // autocasts as new SimpleRenderer()
symbol: {
type: "simple-fill", // autocasts as new SimpleFillSymbol()
color: [255, 255, 255, 0.5],
style: "none",
outline: { // autocasts as new SimpleLineSymbol()
color: "white",
width: 2
}
}
};
const statesLyr = new FeatureLayer({
url: 'https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/2',
renderer: renderer,
outFields: ['*']
});
const cityFeatureLayer = new FeatureLayer({
url: 'https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer/0',
outFields: ['*'],
});
let drawPnt, graphic, ctrlKey = false, moveCtrlKey = false, highlight, statesLyrView;
const map = new Map({
basemap: 'streets-vector',
layers: [pntGraphics, statesLyr, cityFeatureLayer]
});
const view = new MapView({
container: "viewDiv",
map: map,
center: [-98.43750059604514, 38.1986442207947],
scale: 25000000,
ui: {
components: ['zoom', 'compass'],
}
});
statesLyr.when(function(){
view.whenLayerView(statesLyr).then(function(layerView) {
statesLyrView = layerView;
});
})
const draw = new Draw({
view: view
});
var sym = {
type: "simple-marker",
style: "circle",
color: [0, 255, 255, 0.6],
size: "8px",
outline: {
color: [0, 255, 255, 1],
width: 1
}
};
view.ui.add("point-button", "top-left");
document.getElementById("point-button").onclick = drawPoint;
function drawPoint() {
if(viewMouseMoveEvtHandler){
viewMouseMoveEvtHandler.remove()
viewMouseMoveEvtHandler = null
}
if(viewClickEvtHandler){
viewClickEvtHandler.remove()
viewClickEvtHandler = null
}
const action = draw.create("point");
viewMouseMoveEvtHandler = view.on('pointer-move', (evt) => {
if (evt.native.ctrlKey) {
moveCtrlKey = true;
}else{
moveCtrlKey = false;
}
})
viewClickEvtHandler = view.on('pointer-down', (evt)=>{
if (evt.native.ctrlKey) {
ctrlKey = true;
}else{
ctrlKey = false;
}
})
if (highlight) {
highlight.remove();
}
// Give a visual feedback to users as they move the pointer over the view
action.on("cursor-update", function (evt) {
view.graphics.removeAll();
drawPnt = new Point({
x: evt.coordinates[0],
y: evt.coordinates[1],
spatialReference: view.spatialReference
});
graphic = new Graphic({
geometry: drawPnt,
symbol: sym
});
view.graphics.add(graphic);
if(ctrlKey && !moveCtrlKey){
draw.reset();
view.graphics.removeAll();
selectStates();
}
});
action.on("draw-complete", function (evt) {
drawPnt = new Point({
x: evt.coordinates[0],
y: evt.coordinates[1],
spatialReference: view.spatialReference
});
graphic = new Graphic({
geometry: drawPnt,
symbol: sym
});
pntGraphics.add(graphic);
if (ctrlKey) {
drawPoint();
} else {
view.graphics.removeAll();
selectStates();
}
});
view.focus();
};
function selectStates(){
ctrlKey = false
moveCtrlKey = false
if(viewMouseMoveEvtHandler){
viewMouseMoveEvtHandler.remove()
viewMouseMoveEvtHandler = null
}
if(viewClickEvtHandler){
viewClickEvtHandler.remove()
viewClickEvtHandler = null
}
let mp = new Multipoint({
spatialReference: view.spatialReference
});
let pntArray = pntGraphics.graphics.map(function(gra){
mp.addPoint(gra.geometry);
});
const query = {
geometry: mp,
outFields: ["*"],
outSpatialReference: view.spatialReference,
returnGeometry: true
};
statesLyr.queryFeatures(query)
.then(function(results){
const graphics = results.features;
// remove existing highlighted features
if (highlight) {
highlight.remove();
}
// highlight query results
highlight = statesLyrView.highlight(graphics);
pntGraphics.removeAll();
}).catch(function(err){
console.error(err);
})
}
});
</script>
</head>
<body>
<div id="viewDiv">
<div id="point-button" class="esri-widget esri-widget--button esri-interactive" title="Select Countries">
<span class="esri-icon-map-pin"></span>
</div>
</div>
</body>
</html>
... View more
03-28-2022
06:20 AM
|
1
|
0
|
4844
|
|
DOC
|
@RezaTehranifar2 https://community.esri.com/t5/web-appbuilder-custom-widgets-documents/popup-panel-widget-version-2-17-9-1-2020/tac-p/1156440/highlight/true#M6547
... View more
03-25-2022
07:10 AM
|
0
|
0
|
18261
|
|
DOC
|
@PriscillaThoopthong Same as any widget you want to "open at start" https://developers.arcgis.com/web-appbuilder/guide/widgets-tab.htm The widget added from the widgets collection can be set to open automatically when the app starts. To do so, click the dot on the widget to change it to dark green. A maximum of two widgets can open automatically: one is on the controller and another in the placeholder.
... View more
03-24-2022
09:48 AM
|
0
|
0
|
16671
|
|
DOC
|
@PriscillaThoopthong @KeithMiller3 just created a widget to allow all popups in WAB to be movable.
... View more
03-23-2022
08:55 AM
|
0
|
0
|
16693
|
| Title | Kudos | Posted |
|---|---|---|
| 16 | 05-17-2021 01:51 PM | |
| 1 | 07-06-2020 05:32 AM | |
| 1 | 07-10-2018 05:49 AM | |
| 9 | 01-28-2022 10:58 AM | |
| 1 | 03-28-2022 06:20 AM |
| Online Status |
Offline
|
| Date Last Visited |
10 hours ago
|