POST
|
Hi! The problem is that this code if (layer is FeatureLayer) returns false. How can I set a layer's lable? Thanks Alexander
... View more
05-01-2021
09:27 AM
|
0
|
0
|
688
|
POST
|
Привет всем! Как я могу отображать ярлыки слоями в загруженной сцене из AGOL? Я загружаю сцену так: val scene = ArcGISScene (currentScene) Я использую ArcGIS Runtime SDK для Android 100.9.0
... View more
04-26-2021
09:40 AM
|
0
|
0
|
232
|
POST
|
Hi! I'm using the ArcGIS Runtime SDK Android How do I get FeatureLayer from SceneView to install label? I tried like this : mArView!!.sceneView.scene.operationalLayers.forEach { layer -> if (layer is FeatureLayer) { val l = layer.featureTable val featureLayer = FeatureLayer(l) featureLayer.labelDefinitions.add(labelDefinition) } } How do I set a lable for a layer? Thank you in advance!
... View more
04-24-2021
07:02 AM
|
0
|
3
|
786
|
POST
|
Здравствуйте! Я использую ArcGIS Runtime SDK для Android. Хотелось бы понять, как увеличить масштаб сцены.
... View more
02-06-2021
03:07 AM
|
0
|
1
|
661
|
POST
|
Hi! Is it possible to limit the visibility of objects in the scene (for example, 100 meters) using the arcgis sdk android?
... View more
01-06-2020
04:10 AM
|
0
|
1
|
422
|
POST
|
Hi! Is it possible in Runtime SDK for Android 100.6 to turn off the standard gesture navigation in Scene?
... View more
11-09-2019
07:51 AM
|
0
|
1
|
709
|
POST
|
Thanks Luke! Replaced with this markup and everything worked! <include
layout="@layout/layout_calibration_controls"
app:layout_constraintBottom_toTopOf="@+id/calibrateButton"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
android:visibility="gone"/>
... View more
10-29-2019
09:23 AM
|
0
|
1
|
1244
|
POST
|
Hi Luke! Сlean up and rebuild the project did not help. When you click on the button "NAV_BUTTON" crashes with the same error. Google ArCore is installed on the phone. Thanks for the answer!
... View more
10-29-2019
08:59 AM
|
0
|
3
|
1243
|
POST
|
Hi Luke! This solution did not help. Unless you need to make changes to the toolkit, you don't need to include it as a local module like so: implementation project(path: ':arcgis-android-toolkit-100.6.0') What I would recommend is removing that line and adding the following: implementation "com.esri.arcgisruntime:arcgis-android-toolkit:100.6.0" Source project Thanks for the answer!
... View more
10-28-2019
09:17 AM
|
0
|
5
|
1243
|
POST
|
Hi! An error occurs from the example. dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
implementation 'com.esri.arcgisruntime:arcgis-android:100.6.0'
implementation project(path: ':arcgis-android-toolkit-100.6.0')
implementation 'org.apache.directory.studio:org.apache.commons.lang:2.6'
implementation 'com.google.code.gson:gson:2.8.4'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.google.ar.sceneform.ux:sceneform-ux:1.12.0'
// Alternatively, use ArSceneView without the UX dependency.
implementation 'com.google.ar.sceneform:core:1.12.0'
annotationProcessor "androidx.lifecycle:lifecycle-compiler:2.0.0"
implementation "androidx.lifecycle:lifecycle-runtime:2.0.0"
implementation "androidx.lifecycle:lifecycle-extensions:2.0.0"
implementation "androidx.lifecycle:lifecycle-common-java8:2.0.0"
}
... View more
10-25-2019
08:28 AM
|
0
|
7
|
1518
|
POST
|
Hello! There was a problem with the identification of objects. mGeoElements equal to zero. what is the reason? how can I fix it? I can't get attributes because of this. ArcGIS Runtime SDK for Android 100.4.1 mSceneView.setOnTouchListener(new DefaultSceneViewOnTouchListener(mSceneView){
@Override
public boolean onSingleTapConfirmed(MotionEvent e) {
// get the screen point where user tapped
android.graphics.Point screenPoint = new android.graphics.Point((int) e.getX(), (int) e.getY());
// ...
final ListenableFuture<List<IdentifyLayerResult>> identifyFuture = mSceneView.identifyLayersAsync(screenPoint, 5,
false);
identifyFuture.addDoneListener(new Runnable() {
@Override
public void run() {
try {
List<IdentifyLayerResult> identifyLayersResults = identifyFuture.get();
StringBuilder message = new StringBuilder();
for (IdentifyLayerResult identifyLayerResult : identifyLayersResults) {
if (identifyLayerResult.getElements().size() > 0) {
GeoElement topmostElement = identifyLayerResult.getElements().get(0);
if (topmostElement instanceof Feature) {
Feature identifiedFeature = (Feature)topmostElement;
attr = topmostElement.getAttributes();
Set<String> keys = attr.keySet();
for (String key : keys) {
Object value = attr.get(key);
if(value != null) {
message.append(key + " | " + value + "\n");
}
}
}
}
}
showDialog(attr);
... View more
06-21-2019
10:46 AM
|
0
|
1
|
438
|
POST
|
Hi! How to implement the deletion of all objects .shp, caught fully in the specified range? ArcObjects SDK .NET Help, please
... View more
04-04-2019
10:32 PM
|
0
|
0
|
311
|
POST
|
Hi! There is a web map downloaded from ArcGIS Online. How do I make a selection to get the desired layers by attribute? for example, floor = 3 Portal portal = new Portal("http://www.arcgis.com");
PortalItem mapPortalItem = new PortalItem(portal, "---ID---");
ArcGISMap map = new ArcGISMap(mapPortalItem);
mMapView.setMap(map); I know about mFeatureLayer.setDefinitionExpression, but how to apply it to mapView?
... View more
04-01-2019
10:24 AM
|
0
|
0
|
346
|
POST
|
Hi! It became even more unclear How to call selectFeature?
... View more
03-29-2019
09:36 AM
|
0
|
0
|
762
|
POST
|
I was able to choose only one layer, how to implement for multiple layers? for (final Layer Layer: mSceneView.getScene().getOperationalLayers()) {
if (Layer instanceof ArcGISSceneLayer) {
sceneLayer = ((ArcGISSceneLayer) Layer);
}
}
mSceneView.setOnTouchListener(new DefaultSceneViewOnTouchListener(mSceneView) {
@Override
public boolean onSingleTapConfirmed(MotionEvent motionEvent) {
// clear any previous selection
sceneLayer.clearSelection();
android.graphics.Point screenPoint = new android.graphics.Point(Math.round(motionEvent.getX()),
Math.round(motionEvent.getY()));
// identify clicked feature
ListenableFuture<IdentifyLayerResult> identify = mSceneView
.identifyLayerAsync(sceneLayer, screenPoint, 10, false, 10);
identify.addDoneListener(() -> {
try {
// get the identified result and check that it is a feature
IdentifyLayerResult result = identify.get();
List<GeoElement> geoElements = result.getElements();
if (!geoElements.isEmpty()) {
Log.d(TAG, "geoelement not empty");
GeoElement geoElement = geoElements.get(0);
if (geoElement instanceof Feature) {
// select the feature
sceneLayer.selectFeature((Feature) geoElement);
}
}
} catch (InterruptedException | ExecutionException e) {
String error = "Error while identifying layer result: " + e.getMessage();
Log.e(TAG, error);
Toast.makeText(MainActivity.this, error, Toast.LENGTH_LONG).show();
}
});
return true;
}
});
... View more
03-28-2019
09:36 AM
|
0
|
2
|
762
|
Online Status |
Offline
|
Date Last Visited |
05-01-2021
10:58 AM
|