|
POST
|
Hi David, I shall try to explain my finding, I dont understand their reason for doing this way. If someone from ESRI can explain this then great. Here I go. The ability to hide or show pagination in Editor's AttributeInspector is controlled by hideNavButtons parameter which can be passed only through constructor. Bydefault this value is linked to Editor._usePopup property. which again is set if map.infoWindow has "_setPagerCallbacks" method implemented or not. This method is only part of Popup class. Hence, I suggested to use something other then Popup which is default for map.infoWindow. Regarding, Search failing, there seems to be some relationship between map.infoWindow and Search dijit. probably you could set enableInfoWindow to false, if you dont need this. you need to figure it out. Another way is to create your own AttributeInspector and pass it to Editor as settings.attributeInspector, and you can control what to show or hide. Again this has not been documented clearly. Hope I was helpful. Thejus
... View more
07-24-2015
11:45 AM
|
1
|
1
|
3037
|
|
POST
|
Hello eric, There are a couple of way you can do this. if you are creating the custom list in esriBasemaps as shown here esri/basemaps | API Reference | ArcGIS API for JavaScript then you can set basemap you want while initializing the map itself. otherwise, you could save your custom as json string instead of just saving the name and then pass while initializing the map. Once the map is loaded you can use select(id) to sync the map and BasemapGallery.
... View more
07-24-2015
10:58 AM
|
1
|
6
|
5961
|
|
POST
|
Sorry for jumping the gun there. Could you comment out the line 14 updateLayerVisibility(); and let me know what happens.
... View more
07-24-2015
09:23 AM
|
0
|
2
|
3518
|
|
POST
|
The value of targetSelectMenu is wrong. targetSelectAll will be equal to 'aBIEAP', but you are looking for 'BIEAP' so the resulting targetSelectMenu will be "#divMemuaBIEAP" which does not exist.
... View more
07-24-2015
08:46 AM
|
1
|
4
|
3518
|
|
POST
|
The reason you get error, if when click the "selectall", the event.srcElement.className is neither of the switch case value and hence the inputs will not be populated and you get error on line var inputCount = inputs.length; change it to var inputCount=0, inputs && (inputCount = inputs.length); but that may still not work of toggeling on/off, as individual checkbox change event will be responsible to updating it. you need to check the whole flow.
... View more
07-24-2015
06:27 AM
|
1
|
6
|
3518
|
|
POST
|
Satya, Sorry, I was just trying to explain why your FilteringSelect was not working. I shall try to explain a bit more. Even though the app.outFields contains the STATE_NAME and NAME it is not adding them to the dropdown item source by excluding them since they are not part of the app.Fields. probably instead of telling you to add it to app.Fields I should have said to exculde your name field from while populating items source. see the below line of code if ( arrayUtils.indexOf(f.split("_"), "NAME") == -1 ) { // exclude attrs that contain "NAME"
fieldNames.items.push({ "name": app.fields[f], "value": f });
} It is excluding/skipping for STATE_NAME & NAME, to be more precise, if any field name, contains word NAME after splitting with '_' as delimiter. So the name fields will not be part of dropdown list. For identify apart from template, you also need to look at below line of code where the title is being set for info window.
var name = evt.graphic.attributes.NAME + " County",
ca = app.currentAttribute,
content = app.fields[ca] + ": " + number.format(evt.graphic.attributes[ca]);
app.map.infoWindow.setTitle(name); Hope this carifies all your doubts.
... View more
07-24-2015
06:06 AM
|
1
|
1
|
2473
|
|
POST
|
that query is part of jQuery. check the require arguments if you have defined another query there than that might be conflicting with jQuery. and yes you are right query(".enviro_list_item") returns all the nodes where that class has been defined.
... View more
07-23-2015
03:12 PM
|
1
|
8
|
3518
|
|
POST
|
you should find more information here Spatial references—ArcGIS Runtime SDK for iOS | ArcGIS for Developers The UIView is usually in pixel values and the WebMap will be having geographic values. In your case, if you just want to use a single user location then just pass the mapPoint and increase the tolerance in IdentifyParameters to the pixel value in you case 400. That should work for you.
... View more
07-23-2015
02:58 PM
|
0
|
1
|
1500
|
|
POST
|
I dont know about iOS. but In general when you do a buffer for point the output would be circle and not extent. also when using buffer you should also pass the unit. if all you need is extent then you could simply create a new extent object and update the values with half of the buffer distance. xmax = gpsPoint.x + 50 xmin = gpsPoint.x - 50 ymax = gpsPoint.y + 50 ymin = gpsPoint.y - 50 or if you want all graphic with in the visible extent then the map control should have extent property on it.
... View more
07-23-2015
01:06 PM
|
0
|
3
|
1500
|
|
POST
|
I think the AttributeTable is not part of the standard widgets provided by CMV. so you would need to get it directly from the github and just take apart of them into you new version of cmv.
... View more
07-23-2015
12:57 PM
|
0
|
0
|
2430
|
|
POST
|
Yes, you can use it to Identify. It will easily get you result if you are identifing against polygons. whereas for line and points, you would have to make sure it intersects with the geometries. Ideally it is a better way to first buffer the points and then use the buffer geometry in the IdentifyTask. Does that make sense.
... View more
07-23-2015
11:11 AM
|
0
|
5
|
1500
|
|
POST
|
you should probably would like to use the domNode type and also provide srcNodeRef. check out the AttributeTable widget, provide in one of the contributed widgets. tmcgee/cmv-widgets · GitHub
... View more
07-23-2015
10:45 AM
|
0
|
3
|
2430
|
|
POST
|
Hello Satya, I have been explaining the same thing as mentioned earlier. Adding only the new fields in app.outFields will cause problems as they are using that variable to populated the dropdown. That means you would also need to add a corresponding value to app.Fields collection as well. Please note that the app.Fields is a name value object like below. app.fields = {
"sde.sde.CONST_WISE_HOUSING.total_bens": "Total Beneficiaries",
"sde.sde.CONST_WISE_HOUSING.sc": "SC Beneficiaries",
"sde.sde.CONST_WISE_HOUSING.st": "ST Beneficiaries",
"sde.sde.CONST_WISE_HOUSING.bc": "BC Beneficiaries",
"sde.sde.CONST_WISE_HOUSING.others": "Others Beneficiaries" ,
"sde.sde.CONST_WISE_HOUSING.bbl": "Below Basement Level Stage",
"sde.sde.CONST_WISE_HOUSING.bl": "Basement Level Stage",
"sde.sde.CONST_WISE_HOUSING.ll": "Lentel Level Stage",
"sde.sde.CONST_WISE_HOUSING.rl": "Roof Level Stage",
"sde.sde.CONST_WISE_HOUSING.completion":"Completed Stage"
}; so along with adding "sde.sde.AP_Const.asmbname" to app.outFields. you need to add "sde.sde.AP_Const.asmbname" : "asmbname". As far as Identify is concerned only the app is set up to show only the selected attribute value as per the below mentioned code. ca = app.currentAttribute,
content = app.fields[ca] + ": " + number.format(evt.graphic.attributes[ca]);
app.map.infoWindow.setTitle(name);
app.map.infoWindow.setContent(content); Hope this was helpful and if you are still not able to fix it then please send the complete code and I shall take a look at it.
... View more
07-23-2015
06:04 AM
|
0
|
3
|
2473
|
|
POST
|
you need to add both field name and label with collen delimited like "sde.sde.CONST_WISE_HOUSING.sc": "SC Beneficiaries" but, then the dropdown will show this value also, If you dont want it to show in need to ensure you dont add it to the fieldNames.items.
... View more
07-22-2015
11:47 AM
|
0
|
5
|
2473
|
|
POST
|
Is it possible to create a jsFiddler or somthing. so that I can take a look at it. Does anybody know if there is a bug reported for this issue(next & previous missing)?
... View more
07-22-2015
11:39 AM
|
0
|
3
|
3037
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-24-2017 07:15 AM | |
| 1 | 09-13-2016 06:27 AM | |
| 1 | 05-21-2015 08:06 AM | |
| 1 | 12-16-2015 05:43 AM | |
| 1 | 07-20-2015 09:33 AM |
| Online Status |
Offline
|
| Date Last Visited |
05-13-2026
09:55 AM
|