POST
|
Hi all, I'm using mmpk project with group layers, when I want to turn on featureCollectionLayers the code layer.isVisible = true works fine, however after I've updated the sdk to 100.7.0 the code to make layers visible doesn't work any more: layers.forEach {
if (it is GroupLayer){
legendGroupMap[it.name] = it.layers
it.layers.forEach{ mLayers->
mLayers.isVisible = true
}
} how do i make layers inside a group layer visible in 100.7.0? thanks in advance.
... View more
02-23-2020
12:47 PM
|
0
|
0
|
275
|
POST
|
Hello, when trying to display a LegendInfo of a FeatureLayer we've come across a problem: normally, this doesn't display the huge gap between the layer name to the symbology this happens when we have a unique value in the layer code for display: inal LegendInfo legendInfo = mLegendInfoList.get(position);
holder.legendName.setText(legendInfo.getName().trim()); oddly enough, if we do not take the legendInfo.getName() the gap disappears sincerely.
... View more
01-11-2020
11:12 PM
|
0
|
0
|
202
|
POST
|
hi, we've created user inputted geometry using this, then we've tried to send the geometry.tojson() to our gis arcgis pro worker. however he is unable to convert the json to a shp file on his arc gis pro. thanks in advance.
... View more
01-03-2020
05:42 AM
|
0
|
1
|
341
|
POST
|
I'm currently using the android sdk and displaying info from a MMPK made by arcgis pro. in the arcgis pro layers can be inserted into sub directories which are collapsible im trying to make a legend similar to this question done by recreating the sub directories from arcgis pro but i found no way to retrace them
... View more
12-24-2019
11:08 PM
|
0
|
1
|
369
|
POST
|
brilliant! subLayerResults solved it! I was looking at the wrong place thank you dearly
... View more
12-21-2019
02:22 PM
|
0
|
0
|
874
|
POST
|
fields only return field aliases, is there any way to get attributes for the table?
... View more
12-21-2019
01:30 PM
|
0
|
3
|
874
|
POST
|
Hello, I'm using this this guide to identify which layers were clicked on MapView. it works perfectly for every layers I have except from Feature Collection Layers. where the attributes are in a feature table and not elements. how do I get the attributes inside a feature table? to identify layers: fun identifyClickedLayerResults(point: android.graphics.Point, mMap: MapView, callback: (MutableList<IdentifyLayerResult>) -> Unit){
val TAG = "ClickedLayerResults"
var identifyLayerResult: MutableList<IdentifyLayerResult>
val identifyLayerResultsFuture = mMap
.identifyLayersAsync(point, 12.0, false, 5)
identifyLayerResultsFuture.addDoneListener {
try {
identifyLayerResult = identifyLayerResultsFuture.get()
callback(identifyLayerResult)
} catch (e: InterruptedException) {
Log.e(TAG, "Error identifying results: " + e.message)
} catch (e: ExecutionException) {
Log.e(TAG, "Error identifying results: " + e.message)
}
}
} to get attributes: fun layerDetails(forLayer: IdentifyLayerResult): ArrayList<Map<String, String>>{
val resultGeoElements = forLayer.elements
if (forLayer.layerContent.name == "Feature Collection"){
//doesn't work here
}
var mAttributesString = ArrayList<String>()
var layersAttributeList = ArrayList<Map<String, String>>()
if (!resultGeoElements.isEmpty()){
resultGeoElements.forEach {
if (it is ArcGISFeature){
val mArcGISFeature = it as? ArcGISFeature
mAttributesString.add(mArcGISFeature?.attributes.toString())
var mTempMap = mutableMapOf<String, String>()
mArcGISFeature?.attributes?.forEach {
if (!it.value.toString().isEmpty() && !it.key.toString().isEmpty()
&& !it.key.toString().contains(".FID"))
mTempMap[it.key.toString()] = it.value.toString()
}
layersAttributeList.add(mTempMap)
}
}
}
return layersAttributeList
} what i got now : private fun featureCollectionDetails(forLayer: IdentifyLayerResult){
var featureCollectionLayer = forLayer.layerContent as FeatureCollectionLayer
var mFeatureTable = featureCollectionLayer.layers[0].featureTable
} the code is in kotlin, its ok if the answer will be in java
... View more
12-21-2019
07:55 AM
|
0
|
5
|
969
|
POST
|
Hello, Currently, I'm working by taking one mmpk from a server per project using the android runtime sdk. The problem is, each mmpk is about 2gb+, which makes updating them on the server an expensive and time consuming process. I was considering working with two separate mmpks per project, one for the layers and one for the images, but I realise there is no way to upload two mmpks simultaneously. In that case, what is the most effective way to update the mmpks on the server? sincerely.
... View more
07-08-2019
01:15 AM
|
0
|
1
|
512
|
Online Status |
Offline
|
Date Last Visited |
07-22-2021
04:33 AM
|