POST
|
Richard thank you very much. I just didn't realize that I have to use all three selectors, till I read Anthony's answer. So I am marking Anthony's answer as correct one, but it is just because it was more obvious to me. I wish I could mark both as correct. Big THANK YOU to both of you.
... View more
02-09-2016
05:13 AM
|
0
|
2
|
947
|
POST
|
Thank you Richard, I have already played with that css selectors however without success. Here is jsfiddle if you wish to have a look: search widget width - JSFiddle My tries are commented out, so far nothing worked...
... View more
02-09-2016
03:17 AM
|
0
|
1
|
947
|
POST
|
Well, the question is already in the title. The search widget is about 280px wide, and I just need to make it about 200px to fit to my tool bar.
... View more
02-09-2016
02:04 AM
|
0
|
6
|
3415
|
POST
|
Hi, I have a dynamic Layer created by joining LayerDataSource and QueryDatasource. Everything seems to be OK, it has correct attributes and values. But when I try to apply ClassBreaksRenderer the default symbol parameter is not working at all. I mean, polygons with values that are defined with class breaks are coloured as they should be, but polygons with value „null“ are just blank. According to api reference this should be the case that default symbol from ClassBreaksRenderer is applied, but it is not. I am sure that symbol used for default symbol is ok, I have tested it on another features and I am sure that polygons with “null” values are present in the dynamic layer since I can see them from info window click. Any idea, comment, or help will be very appreciated…
... View more
11-10-2015
04:26 AM
|
0
|
0
|
3208
|
POST
|
Well I know I am a little late, but maybe this helps someone struggling with this, like I was today. Firstly, "type id filed" is definitely name of the field that holds subtype. It seems that this field is blank in feature service in case you do not have used if for symbology, or better to say to for your Feature Template. Basically if you have feature template for editing for every subtype, you will have correct type id field name and everything considering this just fine as in map service. But if you have feature template for single symbol, you will not get typeId field from feature service. I have to admit that I cannot see a good reason for this, but that is another story...
... View more
11-03-2015
10:48 PM
|
0
|
0
|
1254
|
POST
|
Jeff, thank you for your suggestion. Here is fiddle https://jsfiddle.net/kefahuchi/esc88t43/1/ I basically used esri sample for this fiddle, the important part for me is "getInfoText" function, e.g. lines 36 -65. Thank you.
... View more
09-11-2015
12:22 AM
|
0
|
0
|
440
|
POST
|
More than one month without answer? Come one, at least tell me that it is bad approach and it won' work or something 🙂 ...
... View more
09-09-2015
11:53 PM
|
0
|
2
|
440
|
POST
|
I just wish to express my thanx as well, this discussion helped me incredibly.
... View more
09-09-2015
11:50 PM
|
0
|
0
|
1966
|
POST
|
I am trying to display attribute infos and attachment in popup window. It can be quite good handled by code selected as correct answer here (https://community.esri.com/thread/159806). Basically you create two event handlers for “click” and “query-attachment-infos-complete“ and in second one you set content of infoTemplate. The problem with this approach is somehow „cosmetical“, but I would like to solve it. If you click two features that are close enough to each other you get a popup with label like „1/2“ and arrow that is supposed to switch popup conten to feature „2/2“. The problem is that on feature 2/2 the content (attachement url, or thumbnail) is the same as for feature 1/2 . It is probably because in handler for “query-attachment-infos-complete“ you set infoTemplate.content for one feature and that infoTemplate is used for second feature as well. So I am wondering if this could not be better solved with similar approach as in the tutorial here: https://developers.arcgis.com/javascript/jshelp/intro_formatinfowindow.html (at the bottom of the page, after Deferred Object bullet). In this approach you set content for infoWindow by function, let’s call it getTextContent(graphic). And inside this function you can run method featureLayer. queryAttachmentInfos(OBJECTID) which return value is deferred object. So you can implement callback function and get attachement url. I am just totally lame to get attachement url from that callback function into return variable for getTextContent function. The scratch version is like this: function getTextContent(graphic) { var deferred = editLayer.queryAttachmentInfos( graphic.attributes.OBJECTID, function (attachemntInfos) { var attachmentUrl = attachemntInfos[0].url; return attachmentUrl; }); //I wish this would be attachmentUrl... return ???attachmentUrl } Any help,idea, comment would by very appreciated.
... View more
07-28-2015
10:06 PM
|
0
|
3
|
3214
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|