|
POST
|
search.on('search-complete', function(result){
map.emit('click', {mapPoint: results[0].results[0].feature.geometry});
});
... View more
09-08-2020
06:54 AM
|
1
|
5
|
6764
|
|
POST
|
You Can NOT use a WAB widget inside JS API 4.x. Several reasons 1. 2D widget are written for 3.x JS API 2. Widget have MANY dependencies on the jimu library that is a part of WAB.
... View more
09-05-2020
03:28 PM
|
2
|
2
|
1915
|
|
POST
|
Gene, Sorry I just noticed the issue in the code. LayerInfos is expecting an array not a single object. _createLegend: function(layer) {
var legendParams = {
arrangement: 0,
autoUpdate: true,
map: map,
layerInfos: [{
layer: layer,
title: "Lakes Bathymetry"
}]
};
var legend = new Legend(legendParams, this.legendDiv);
console.log("legend', legend); ///only 1 childNode, no legend node
legend.startup();
},
... View more
09-04-2020
02:12 PM
|
0
|
1
|
5844
|
|
POST
|
Add your layer as an ArcGISDynamicMapServiceLayer and then use the hideLayers property of the legends LayerInfos object.
... View more
09-04-2020
01:34 PM
|
0
|
3
|
2054
|
|
POST
|
I noticed in the docs that the layerInfos object layer property list two valid layer types. A layer to add to the legend. Valid layer types are: ArcGISTiledMapServiceLayer,ArcGISDynamicMapServiceLayer.
... View more
09-04-2020
01:16 PM
|
0
|
5
|
3790
|
|
POST
|
If you do NOT provide the layerInfos property to the legend dijit does it show all layers with their legends?
... View more
09-04-2020
12:48 PM
|
0
|
9
|
3790
|
|
POST
|
Franklin, Shouldn't your legendParams have the map property as this.map?
... View more
09-04-2020
11:35 AM
|
0
|
13
|
3790
|
|
POST
|
Your code view.on("click", function (evt) {
var longitude = evt.mapPoint.longitude;
var latitude = evt.mapPoint.latitude;
// Round the coordinates for visualization purposes
var lon = Math.round(longitude * 1000) / 1000;
var lat = Math.round(latitude * 1000) / 1000;
console.log(lat);
console.log(lon);
}); is just getting the point that the user clicks on the view and is not attempting to get the exact well point. You need to do a view hitTest to see if the user clicked on an actual graphic in the view. view.on("click", function (evt) {
view.hitTest(evt)
.then(function (response) {
const result = response.results[0];
if (result) {
let long = result.graphic.attributes.longitude;
let lat = result.graphic.attributes.latitude;
console.info(long, lat);
}
...
... View more
09-04-2020
09:59 AM
|
1
|
1
|
2573
|
|
POST
|
Gilberto, Do you see a hide labels option in the eSearch results layer menu (like indicated in the attached image)?
... View more
09-04-2020
09:49 AM
|
0
|
1
|
4977
|
|
POST
|
Gilberto, I can not find any reason in the eSearch widget code that would cause the eSearch Results to label. Have you made any code changes to your eSearch widget or this app?
... View more
09-04-2020
08:42 AM
|
0
|
3
|
4977
|
|
POST
|
Gilberto, I am have trouble reproducing this. Can you provide the config.json for the eSearch widget that you are using in this app?
... View more
09-04-2020
07:37 AM
|
0
|
1
|
4977
|
| 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
|