POST
|
We cannot access the URL you provide. A WMTS service can contain multiple layers in a hierarchy. A WMTS layer can be constructed directly with a URL to a service and the uniquely identifying name of the desired layer. Alternatively, a WMTS service can be used to programmatically explore the available layers and allow the user to choose layers at run time. So if you have multiple layers to add, you have to add them by layer ID one by one.
... View more
04-08-2024
11:23 AM
|
0
|
0
|
500
|
POST
|
Do you have the device info on when the crash happened?
... View more
03-13-2024
08:31 AM
|
0
|
1
|
557
|
POST
|
You have to use the setViewInsets to adjust the size of MapView, the values of the insets should match the margins you try to resize the MapView in your App. If you still have problems, we need to see your layout.xml.
... View more
12-31-2019
08:45 AM
|
0
|
0
|
722
|
POST
|
The 60MB VTPK is a fair size, for local VTPK we don't cache anything, only relevance tiles are in memory for display, the memory usage should go up and down when zooming in/out. There are no options in SDK to limit memory usage. Could you assure you VTPK file creation following the guideline, that will make the performance difference, Author a map for vector tile creation—ArcGIS Pro | ArcGIS Desktop Or unless you share app or data to debug it. By the way, what's kind of Android device are you using?
... View more
09-18-2019
04:01 PM
|
0
|
0
|
801
|
POST
|
Could you provide more info about your crash? What SDK version are you using? How big is your VTPK file? Could you use the Profiler of the Android Studio to monitor the Native memory when zooming in/out? Does the Native memory keep increasing when you zoom in or out? A screenshot will be helpful. Thanks
... View more
09-11-2019
11:56 AM
|
0
|
2
|
801
|
POST
|
Sketch geometry created by freehand should be movable, but vertexes are not editable. You can convert the geometry to JSON string, then start sketch editor with the geometry as input (converted back from Json). Or you can append a point (x, y) programmatically to the current sketch.
... View more
08-07-2019
09:09 AM
|
0
|
1
|
1183
|
POST
|
If you draw the geometries by polygon, it should be editable. if it is drawn by freehand, they are not editable
... View more
08-01-2019
05:15 PM
|
0
|
1
|
1183
|
POST
|
Could you try this, after a vertex is inserted, switch back to use original gesture listener. @Override public boolean onUp(MotionEvent e) { boolean ret = super.onUp(e); //Check any other condition to add a vertex when the magnifier is up. boolean isStarted = mMapView.isMagnifierEnabled(); //&& SketchEditor is started if (isStarted) { Point point = mMapView.screenToLocation(new android.graphics.Point((int)e.getX(), (int)e.getY())); mSketchEditor.insertVertexAfterSelectedVertex(point); if (mSketchEventListenerRestore != null) { mMapView.setOnTouchListener(mSketchEventListenerRestore); } } return ret; }
... View more
08-01-2019
09:44 AM
|
0
|
0
|
744
|
POST
|
Yes, the sketch geometry can be moved, but not scaled or rotated - predefined geometry types, such as Rectangle, Circle, and Triangle under consideration! Thanks
... View more
08-01-2019
09:22 AM
|
0
|
3
|
1183
|
POST
|
Try to repo your issue, could you please provide the coordinates, 1. "correct location", "incorrect location" in the map spatial reference. 2. "incorrect location" from the input, you can use the location changed listener: mLocationDisplay.addLocationChangedListener(location -> {
Point point1 = location.getLocation().getPosition();
Point prjPoint = (Point) GeometryEngine.project(point1, mMap.getSpatialReference());
Log.d(TAG, "location position-->" + point1.toJson());
Log.d(TAG, "Projected point-->" + prjPoint.toJson());
});
... View more
07-24-2019
11:19 AM
|
0
|
0
|
1447
|
POST
|
1. Could you try to set your map using the well-know id, like //https://developers.arcgis.com/rest/services-reference/geographic-coordinate-systems.htm map = new ArcGISMap(SpatialReference.create(4756)); 2. What type of layer the usaLayer is? is it possible to share it?
... View more
07-23-2019
05:44 PM
|
0
|
1
|
1447
|
POST
|
Your problem is still under investigation, the default location data precision is dependent upon the network provider of your device. Questions : is the usaLayer in the same the spatial reference as the wkString defined?
... View more
07-22-2019
05:48 PM
|
0
|
1
|
1447
|
POST
|
Look at the branch https://github.com/Esri/arcgis-runtime-samples-android/tree/cs/sketch_editor_magnifier_work_around, Go to sketch-editor sample, which illustrates the workaround in the main activity. There is a button in the MapView to allow to enable magnifier during sketching. When the release is up, the magnifier will add a sketch vertex.
... View more
07-22-2019
04:32 PM
|
0
|
1
|
744
|
POST
|
Currently, SketchEdtior doesn't work with the magnifier seamlessly. By default, when the magnifier is released up, it doesn't do anything. There is a workaround for your consideration : 1. The workflow is to create a new inner TouchListener class to the class where your MapView resides, swap the default sketch touch listener when you want to enable the magnifier to add a vertex when it is released, and swap back the original sketch touch listener. The like this : private DefaultMapViewOnTouchListener mSketchEventListenerRestore;
private AddVertexMagnifierListener mAddVertexMagnifierListener; class AddVertexMagnifierListener extends DefaultMapViewOnTouchListener { /** * Constructs a DefaultMapViewOnTouchListener with the given Context and MapView. * * @param context the context from which this is being created * @param mapView the MapView with which to interact * @since 100.0.0 */ public AddVertexMagnifierListener(Context context, MapView mapView) { super(context, mapView); } @Override public boolean onUp(MotionEvent e) { boolean ret = super.onUp(e); //Check condition to add a vertex when the magnifier is up. boolean isStarted = mMapView.isMagnifierEnabled(); //&& SketchEditor is started if (isStarted) { Point point = mMapView.screenToLocation(new android.graphics.Point((int)e.getX(), (int)e.getY())); mSketchEditor.insertVertexAfterSelectedVertex(point); } return ret; } } 2. When you start the SketchEditor, save the default the listener, mSketchEditor.start(SketchCreationMode.POLYGON, mSketchEditor.getSketchEditConfiguration());
//save the default sketch listener
sketchEventListenerRestore = (DefaultMapViewOnTouchListener) mMapView.getOnTouchListener();
3. When you enable the magnifier, use the new touch listener or use the original one. /**
* Toggles showing the magnifier
*/
private void toggleMagnifier() {
mMapView.setMagnifierEnabled(!mMapView.isMagnifierEnabled());
if (mMapView.isMagnifierEnabled()) {
if (mAddVertexMagnifierListener == null) {
mAddVertexMagnifierListener = new AddVertexMagnifierListener(this, mMapView);
}
mMapView.setOnTouchListener(mAddVertexMagnifierListener);
} else {
mMapView.setOnTouchListener(mSketchEventListenerRestore);
}
Toast.makeText(this, "Magnifier="+mMapView.isMagnifierEnabled(), Toast.LENGTH_LONG).show();
} Hope this is helpful to you. We may consider making the magnifier work closely with SketchEditor in the future release.
... View more
07-15-2019
04:47 PM
|
0
|
3
|
744
|
POST
|
Do you have the uses-permission in the manifest file? <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
... View more
05-31-2019
02:14 PM
|
0
|
1
|
542
|
Title | Kudos | Posted |
---|---|---|
2 | 04-25-2019 04:57 PM |
Online Status |
Offline
|
Date Last Visited |
04-09-2024
11:56 PM
|