|
POST
|
yes, but how can i point selected featurelayer (one from three editable layer) here?: const featureForm = new FeatureForm({
container: "formDiv",
layer: lr,
fieldConfig: [
{
name: "komentari",
label: "komentari",
}
]
}); attributes are same for all three featurelayer, but when i click on e.g. RED featurelayer i want get attribute info from RED, when i click GRAY get Gray info and same for YELLOW.
... View more
08-20-2020
05:55 AM
|
0
|
5
|
3429
|
|
POST
|
Hello there, Robert Scheitlin, GISP Any tips for my problem please, if you have any code example and share i will appreciate, here is what i do: i have three editable layer on my webmap and custom HTML form for editing, in form i have dropdown list for my three layer to chose which of them to edit, but i can not edit my layers added on map, using drop down i create additional featurelayer for editing and then edit it. Questionis: how can i use my layers which i have on map to edit without creating new layer? using drop down or just clicking on layer on map. Code: $(function xaxvi() {
$("#DropSearch").on("change", function () {
switch ($(this).val()) {
case "1":
$("#divText").html("");
break;
case "Wa":
$("#divText").html("localhost:6080/arcgis/rest/services/test/aragvi_service/FeatureServer/2");
break;
case "urduli":
$("#divText").html("localhost:6080/arcgis/rest/services/test/aragvi_service/FeatureServer/4");
break;
case "vantuzi":
$("#divText").html("localhost:6080/arcgis/rest/services/test/aragvi_service/FeatureServer/3");
}
console.log($("#divText").html()) // აქ გავუშვა ლინკი
//console.log($(this).val()) // აქ გავუშვა Expression
lrpopup = {
title: "ჭა კამერა",
lastEditInfoEnabled: false,
content: [{
type: "fields",
fieldInfos: [{
fieldName: "mdgomareoba",
label: "მდგომარეობა",
visible: true
}
]
}],
actions: [measureThisAction, openFileList, uploadFileList, saveFileList]
}
var myURLO = $("#divText").html()
const lr = new FeatureLayer({url: myURLO,
outFields: ["*"],
listMode: "hide",
popupEnabled: true,
popupTemplate: lrpopup,
id: "xaxvi",
symbol:{
type: "simple-marker", // autocasts as new SimpleMarkerSymbol()
style: "square",
color: "#8A2BE2",
size: "16px",
outline: { // autocasts as new SimpleLineSymbol()
color: [255, 255, 255],
width: 3
}
},
})
lr.opacity = 0;
map.add(lr);
const featureForm = new FeatureForm({
container: "formDiv",
layer: lr,
fieldConfig: [
{
name: "komentari",
label: "komentari",
}
]
}); Thanks in advance.
... View more
08-20-2020
12:29 AM
|
0
|
7
|
3571
|
|
POST
|
Hi guys, After i ApplyEdits to my featureLayer it updates, but without refresh page i can't see changes in popup. I have not checked in the beginning, but i think It started after i change HTML to PHP. Any ideas what is wrong? Thank you
... View more
08-17-2020
04:27 AM
|
0
|
0
|
938
|
|
POST
|
Thanks Robert, It works great. in this case It uses popup value right?
... View more
07-28-2020
12:02 AM
|
0
|
2
|
1806
|
|
POST
|
Hi all, Robert Scheitlin, GISP I use ajax in Arcgis Javascript and hitTest to select some data and show it in modal window (these are uploaded images on server side in folders, each feature in map layer is connected to these folders using Wis_invent_N), but i have problem, e.g. i clicked several feature on map (e.g. 3 features) and on each click on map i get different info, but if i click info button (i have these button in popup window) again and again it shows these selected features one by one even though i have selected different feature on map, it stores data and does not show correct info when i continue click and get info from a map. I use 'cache: false' in $.ajax but it's not working. here is a piece of code i use view.on("click", function (event) {
view.hitTest(event).then(function (response) {
if (response.results.length) {
var graphic = response.results.filter(function (result) {
return result.graphic.layer === Wa;
})[0].graphic;
//console.log(graphic.attributes);
$(document).on('click', '#vf', function() // see uploaded images
{
var folder_name = 'inv_images/' + graphic.attributes.Wis_invent_N;
var action = "fetch_files";
$.ajax({
cache: false,
url: "action.php",
method: "POST",
data:{action:action, folder_name:folder_name},
success: function(data)
{
$('#file_list').html(data);
$('#filelistModal').modal('show');
}
})
});
var openFilebtn = document.getElementById("vf");
function openFilesbtn(){openFilebtn.click()};
view.popup.on("trigger-action", function(event) {
if (event.action.id === "filelist") {
openFilesbtn();
}
});
}
});
});
... View more
07-26-2020
11:47 PM
|
0
|
4
|
1876
|
|
POST
|
Thanks Robert, i thought the same, just needed to be sure from more competent person. I opened new question and check it too please. Thanks.
... View more
07-26-2020
11:12 PM
|
0
|
0
|
1172
|
|
POST
|
Hi guys, Robert Scheitlin, GISP I need to clear hitTest result, because i have PHP modal to see uploaded image on server (file name i get using hitTest) and when i click another feature and click see attached files, first time it shows current clicked feature image an on second click it returns previously clicked feature result. Help please
... View more
07-24-2020
03:36 AM
|
0
|
2
|
1221
|
|
POST
|
Hi Guys, Hope you are all ok. So, i am trying to add hyperlink in my popup, for link i use image directory which is shared folder, so my images link looks like: K:\gwp-gis\operator.jpg; Code for popup i use is this: var Wapopup = {
title: "Holes",
content: "<b>My hole</b><br>" +
"<a href={fotosuraTi}>Images</a>"
};
For internet link it works, but for shared folder it does not. Any help please. Thanks in advance
... View more
06-30-2020
03:13 AM
|
0
|
1
|
1150
|
|
POST
|
Hi guys, I am using default editor widget, what i want is that, when i click another feature (one is already selected) i want to edit it's attributes to be appeared immediately in attributes window. Default action is to hit BACK arrow in widget and select another feature, i do not want this BACK arrow, i want to directly select another feature. Is there any way to do it so? Thanks in advance
... View more
05-15-2020
06:57 AM
|
0
|
0
|
680
|
|
POST
|
Hi guys, I got problem. I can add new feature without problem, but when i want to select and update feature it does not select to update. I use JS 4.15 Version. Here is a code i use. Help please //Add Regulator
var urduli = new FeatureLayer({url: "http://LocalHost:6080/arcgis/rest/services/test/aragvi_service/FeatureServer/4",
title:"Regulator",
visible: true,
outFields:["*"],
})
map.add(Regulator)
var editor = new Editor({
view: view,
layerInfos: [{
layer: Regulator, // pass in the feature layer
fieldConfig: [ // Specify which fields to configure
{
name: "Comments",
label: "კომენტარი"
}],
enabled: true, // default is true, set to false to disable editing functionality
addEnabled: true, // default is true, set to false to disable the ability to add a new feature
updateEnabled: true, // default is true, set to false to disable the ability to edit an existing feature
deleteEnabled: true // default is true, set to false to disable the ability to delete features
}]
});
view.ui.add(editor, "top-right");
... View more
05-13-2020
04:13 PM
|
0
|
6
|
2296
|
|
POST
|
Hi guys, I have attachments in my popup, but it shows only default image thumbnail, but i want to show attached image thumbnail. i checked it on ESRI but could not find. Any ideas?
... View more
05-06-2020
07:00 AM
|
0
|
1
|
1118
|
|
POST
|
Aaah, i used 4.14 version, switch to 4.15 it works. Thanks my friend
... View more
05-05-2020
05:52 AM
|
0
|
0
|
2150
|
|
POST
|
Robert, I tried but it did not work. But if i do it like i show in this code, it changes ATTACHMENTS color, but title stays same. div.esri-feature__attachments-title {
content: "Blah Blah";
color:#dc2d5e;
text-indent: 0;
display: block;
line-height: initial;
}
.esri-feature__attachments > h2 {
text-indent: -9999px;
line-height: 0;
}
.esri-feature__attachments > h2::after {
content: "Blah Blah";
text-indent: 0;
display: block;
line-height: initial;
}
... View more
05-05-2020
01:34 AM
|
0
|
2
|
2150
|
|
POST
|
Hi all, I want to change Attachment's title (see Pic.) I know how to override CSS defaults, but what to do with DIV elements i do not know. Any help please
... View more
05-01-2020
01:48 AM
|
0
|
4
|
2227
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-22-2022 11:57 PM | |
| 1 | 08-31-2022 12:41 AM | |
| 1 | 08-23-2022 02:49 AM | |
| 1 | 05-10-2022 05:12 AM | |
| 1 | 01-13-2022 10:03 AM |
| Online Status |
Offline
|
| Date Last Visited |
05-13-2025
03:20 AM
|