|
POST
|
The url can be retrieved from the portion of the page that is indicated in the attached image. To add it to the application then just use a WMSLayer in the JS API.
... View more
09-04-2020
07:05 AM
|
2
|
2
|
2118
|
|
POST
|
Gilberto, If you clear the eSearch results does the second label go away?
... View more
09-03-2020
02:30 PM
|
0
|
3
|
4984
|
|
POST
|
Did you read my reply?.. You are are try to show the info window using a polyline geometry.
... View more
09-03-2020
01:51 PM
|
0
|
0
|
1571
|
|
POST
|
Kafil, You are passing a Polyline to the map infowindow show method and it is expecting a point geometry. <Point> location - Required - An instance of esri.geometry.Point that represents the geographic location to display the popup.
... View more
09-03-2020
12:36 PM
|
0
|
2
|
1571
|
|
POST
|
John, Direct DOM manipulation is a good route: <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="initial-scale=1,maximum-scale=1,user-scalable=no"
/>
<title>
Edit features with the Editor widget | Sample | ArcGIS API for JavaScript
4.16
</title>
<link
rel="stylesheet"
href="https://js.arcgis.com/4.16/esri/themes/light/main.css"
/>
<script src="https://js.arcgis.com/4.16/"></script>
<style>
html,
body,
#viewDiv {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
.esri-editor .esri-item-list__scroller {
max-height: 350px;
}
</style>
<script>
require([
"esri/WebMap",
"esri/views/MapView",
"esri/widgets/Editor"
], function (WebMap, MapView, Editor) {
// Create a map from the referenced webmap item id
let webmap = new WebMap({
portalItem: {
id: "6c5d657f1cb04a5eb78a450e3c699c2a"
}
});
let view = new MapView({
container: "viewDiv",
map: webmap
});
view.when(function () {
view.popup.autoOpenEnabled = false; //disable popups
// Create the Editor
let editor = new Editor({
view: view
});
editor.viewModel.watch('state', function(state){
if(state === 'ready'){
setTimeout(function(){
document.getElementsByClassName('esri-editor__title esri-heading')[0].innerHTML = 'Blah Editor';
var actions = document.getElementsByClassName("esri-editor__feature-list-name");
Array.from(actions).forEach(function(ele){
if(ele.innerHTML==='Edit feature'){
ele.innerHTML = 'blah blah Edit';
}
if(ele.innerHTML==='Add feature'){
ele.innerHTML = 'blah blah Add';
}
});
}, 50);
}
})
// Add widget to top-right of the view
view.ui.add(editor, "top-right");
});
});
</script>
</head>
<body>
<div id="viewDiv"></div>
<div id="editorDiv"></div>
</body>
</html>
... View more
09-03-2020
10:47 AM
|
3
|
5
|
6308
|
|
POST
|
Michael, The WAB team takes the JS API and further customizes and extends it. So the fact that they appear different is not surprising.
... View more
09-03-2020
10:12 AM
|
0
|
3
|
2453
|
|
POST
|
Here is a sample for that: <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
<meta name="description" content="[Highlight features with hover events - 4.16]">
<!--
ArcGIS API for JavaScript, https://js.arcgis.com
For more information about the view-hittest sample, read the original sample description at developers.arcgis.com.
https://developers.arcgis.com/javascript/latest/view-hittest/index.html
-->
<title>Highlight features with hover events - 4.16</title>
<style>
html,
body,
#viewDiv {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
</style>
<link rel="stylesheet" href="https://js.arcgis.com/4.16/esri/css/main.css">
<link rel="stylesheet" href="https://js.arcgis.com/4.16/dijit/themes/claro/claro.css">
<script src="https://js.arcgis.com/4.16/"></script>
<script>
var dialog, dRenderer;
require([
"esri/core/watchUtils",
"esri/Map",
"esri/views/MapView",
"esri/layers/FeatureLayer",
"esri/renderers/UniqueValueRenderer",
"esri/symbols/SimpleLineSymbol",
"dojo/dom",
"dojo/dom-style",
"dijit/popup",
"dojo/domReady!"
], function (
watchUtils,
Map,
MapView,
FeatureLayer,
UniqueValueRenderer,
SimpleLineSymbol,
dom,
domStyle,
dijitPopup
) {
var layer = new FeatureLayer({
url: "https://services.arcgis.com/8Pc9XBTAsYuxx9Ny/arcgis/rest/services/BuildingFootprint2D_gdb/FeatureServer/0",
outFields: ["*"]
});
var map = new Map({
basemap: "dark-gray",
layers: [layer]
});
var view = new MapView({
container: "viewDiv",
map: map,
center: [-80.135073, 25.774479],
zoom: 16
});
view.when(function () {
view.whenLayerView(layer).then(function (lview) {
let highlight, lResult = {attributes:{OBJECTID:null}};
watchUtils.whenFalseOnce(lview, "updating", function () {
// Set up a click event handler and retrieve the screen x, y coordinates
view.on("pointer-move", function (evt) {
view.hitTest(evt)
.then(function (response) {
const result = response.results[0];
if (result) {
if(result.graphic.layer.id === layer.id){
if(lResult.attributes.OBJECTID !== result.graphic.attributes.OBJECTID){
highlight && highlight.remove();
highlight = lview.highlight(result.graphic);
lResult = result.graphic;
document.getElementById("viewDiv").style.cursor = "pointer";
}
}else{
highlight && highlight.remove();
document.getElementById("viewDiv").style.cursor = "default";
lResult = {attributes:{OBJECTID:null}};
}
}else{
highlight && highlight.remove();
document.getElementById("viewDiv").style.cursor = "default";
lResult = {attributes:{OBJECTID:null}};
}
});
});
});
});
});
});
</script>
</head>
<body>
<div id="viewDiv"></div>
</body>
</html>
... View more
09-03-2020
06:41 AM
|
0
|
0
|
3274
|
|
POST
|
Kiro, Then you would use code like I provided above to do the direct DOM manipulation. But you would make the query generic and loop through all the results.
... View more
09-03-2020
05:09 AM
|
0
|
0
|
1812
|
|
POST
|
Michael, Sorry I don't have time to help with that now.
... View more
09-02-2020
10:24 AM
|
0
|
1
|
1644
|
|
POST
|
Here is what you need: .esri-popup__feature-menu-viewport {
max-height: none !important;
height: 600px !important;
}
... View more
09-02-2020
10:22 AM
|
0
|
1
|
2146
|
|
POST
|
Michael, That is a very large task. I have not looked into that As I have no need for it, so there is nothing I can really say on this subject.
... View more
09-02-2020
09:54 AM
|
0
|
0
|
4280
|
|
DOC
|
Nope definitely not seeing that. I just did some testing and could not reproduce that. What theme are you using when you see this?
... View more
09-02-2020
05:17 AM
|
0
|
0
|
17373
|
|
DOC
|
Nope 2.17. When I look at your test sites source code for the widget it is missing line 6 below and that is the crucial piece. closeWidget: function() {
if(this.inPanel){
//console.info(this.inPanel);
if(this.appConfig.theme.name === 'JewelryBoxTheme'){
PanelManager.getInstance().minimizePanel(this.inPanel);
html.addClass(this.map.container.parentNode, 'sideBarHidden');
...
... View more
09-01-2020
02:18 PM
|
0
|
0
|
17373
|
|
DOC
|
Amy, Look at the live preview site like at the top of this post it is using the new version and has the AT widget open by default and everything is working fine...
... View more
09-01-2020
02:11 PM
|
0
|
0
|
17373
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-14-2020 11:36 AM | |
| 17 | 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 |
| Online Status |
Offline
|
| Date Last Visited |
06-08-2026
06:27 AM
|