POST
|
Hello Robert, yes I'm. Can you explain me what do you mean with unique value renderer and how to use it? Thanks a lot
... View more
11-07-2017
06:54 AM
|
0
|
8
|
1062
|
POST
|
Hello, I have some feature layers created in my code from feature collection. In the feature collection I have defined a default icon for this layer. Further in the code I change the icon for some features according some parameters. When I open Attribute Table widget with this layer and select the feature with different icon than default and after that unselect this feature it have default icon not the icon I defined for this feature. How can I preserve the defined icon in such cases? Thanks a lot!
... View more
11-06-2017
11:48 PM
|
0
|
10
|
1394
|
POST
|
Hello I need to send a request with a header Accept "application/json;odata=verbose" because I need an answer in JSON format. I use esri request with RequestPreCallback function and it does what I need. function myCallbackFunction(ioArgs) {
ioArgs.headers.Accept = "application/json;odata=verbose"
return ioArgs;
}
esriRequest.setRequestPreCallback(myCallbackFunction);
var requestSHP = esriRequest({
url: "https://server.domain/_api/web/lists/GetByTitle(%27AttachmentReason%20Type%27)/items",
handleAs: "json"
}), But when the request is send login pop up for authentication on this site is shown. I need all request to be send under one specific user so I want to use an esri proxy with domain, user and password parametrs for this site. I configured the proxy and into the code for esri request I add { useProxy:false } parametr. But now the response from the request is in xml format so my header Accept is not honored. Can anyone help me please? Thanks Zdenek
... View more
07-03-2017
10:48 PM
|
0
|
0
|
839
|
POST
|
Robert, Thank you that help partly but I still had a problem with my onReceiveData function. Function with the same name is in the Attribute Table widget. Somehow these functions with the same names didn't cooperate. So I renamed my function in my feature action and in my widget and now it works fine.
... View more
06-21-2017
10:48 PM
|
1
|
0
|
739
|
POST
|
Try and Catch is my workaround that works but I would prefer more clear solution.
... View more
06-19-2017
07:37 AM
|
0
|
2
|
739
|
POST
|
Robert, I think that isFeatureSupported function is ignored in this case. Here is the function isFeatureSupported: function (featureSet, layer) {
if (!featureSet || !layer || !layer.id) {
return false;
}
try {
console.log("isfeauresuported")
console.log(featureSet)
console.log(layer)
var layerInfos = LayerInfos.getInstanceSync();
console.log(layerInfos)
console.log(layer.id)
var layerInfo = layerInfos.getLayerInfoById(layer.id);
console.log(layerInfo)
//musi byt splneny vsechny podminky aby byla akce dostupna
return featureSet.features.length && layerInfo.id.match(/eZadost_VMP*/) || layerInfo.id.match(/eZadost_VPD*/) && layerInfo && layerInfo.getSupportTableInfo()
.then(function (tableInfo) {
return tableInfo && tableInfo.isSupportedLayer && tableInfo.isSupportQuery;
});
}
catch(err){
//console.log(err)
return false;
}
}, In the case of searching in Search widget when isFeatureSupported function is called the layerInfo object is null and I have defined layerInfo object in return. So I think it shouldn't call the function but it does.
... View more
06-19-2017
07:36 AM
|
0
|
3
|
739
|
POST
|
Robert, I know which variable is causing my errors but I need this variable in isFeatureSupported function.
... View more
06-19-2017
06:45 AM
|
0
|
0
|
739
|
POST
|
Robert, I have it the same the file is in folder of one widget and the feature action is only in manifest.json file in this widget. But the feature actions is called even if I search in Search Widget. And when I once open this widget and after that open the attribute table function onReceiveData from code below is called. WidgetManager.getInstance().triggerWidgetOpen(this.widgetId)
.then(function (attrWidget) {
// console.log(layerInfo);
// console.log(featureSet);
attrWidget.onReceiveData(null, null, {
target: "ShowInVES",
layerInfo: layerInfo,
featureSet: featureSet
});
}); The code is from featureaction js file.
... View more
06-19-2017
05:57 AM
|
0
|
2
|
739
|
POST
|
Hello, I have a feature action that load data from feature in map to widget. I need this feature action available only from feature's pop up. But the isFeatureSupported function is called also when I want to use the Search widget where the feature layer is configured for searching and even when I open the Attribute table. The feature action should read information from specific feature after select the feature in the map so in Search widget and Attribute table widget the feature action doesn't know needed data and I recive a lot of errors. It's possible to disable somehow this feature action in this two widgets? Thanks for any help Zdenek
... View more
06-19-2017
05:34 AM
|
0
|
9
|
1194
|
POST
|
Hello, is it possible to use image sprite's images as icon for FeatureLayer's features? And if so can someone help me how? I have my image sprite loaded in my style.css .imageSprite {
background-image: url('images/custom-icons.png');
background-repeat: no-repeat;
width: 42px;
height: 49px;
text-align: center;
}
.imageSpriteCam {
background-position: 0px,0px
}
.imageSpriteCluster {
background-position: 42px,0px
}
.imageSpriteCrash {
background-position: 0px,49px
}
.imageSpriteCrossroad {
background-position: 0px,98px
} My FL is made from Feature Collection but when I would use PictureMarkerSymbol as icon there is no style attribute or something like this. So I don't know how to use it if it's even possible. Thanks for help.
... View more
05-03-2017
06:04 AM
|
0
|
0
|
906
|
POST
|
Robert, Sure. Here is an ortophoto map with SP 102067 ortofoto (MapServer)
... View more
04-28-2017
10:02 AM
|
0
|
3
|
960
|
POST
|
Robert, In my widget I use web services to read data I need. You wouldn't have an access to this web services so I change my code and there is one point in one FL made from FeatureCollection. Here you can download the widget. https://uloz.to/!V3C2N0jtpa9h/position-rar
... View more
04-28-2017
06:16 AM
|
0
|
5
|
960
|
POST
|
Anthony, I have the same problem as you. I need to create a Feature Layer from FeatureCollection. My layer is a point FL. And I need to show labels on this layer. I have read this thread, add mapOptions.showLabels = true to the jimu.js/MapManager.js as Robert recomanded, add showLabels": true to the config.json as you recomanded but no labels are shown. I tested FL made from url and it works but FL from FeatureCollection doesn't. Do you have any suggestions what else should I do? Thank you for help Regards Zdenek
... View more
04-28-2017
03:43 AM
|
0
|
1
|
576
|
POST
|
Robert, I used a halo property of the TextSymbol and it's good enough for me. So thank you a lot for your help. Zdenek
... View more
04-28-2017
01:54 AM
|
0
|
0
|
481
|
Title | Kudos | Posted |
---|---|---|
1 | 11-01-2016 06:40 AM | |
1 | 06-21-2017 10:48 PM | |
2 | 02-17-2018 10:03 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|