|
POST
|
A PictureMarkerSymbol is for putting markers on a map to show the location of something. This might be a push pin for example. Can you tell me what this image is that you are trying to add to the map? If this image is spatial data (like an aerial photograph) then you shouldn't be looking at PictureMarkerSymbols. If you tell me a little more about what you are trying to do and maybe show some pictures I can help.
... View more
01-20-2020
04:31 AM
|
0
|
3
|
2664
|
|
POST
|
I don't have any of these physical devices but I'm looking into our online farm of test devices we have available. I can however confirm that during 100.7 development we were investigating an identical issue we tracked down to the PowerVR GE8310 GPU. We tested this was resolved with a Vivo Y15 phone. Coincidentally 7 of the devices you list above have exactly the same PowerVR GE8320 GPU. I'm confident moving to 100.7 will help matters with supporting these devices. In migrating to 100.7 you will need to start using AndroidX libraries if you haven't already.
... View more
01-03-2020
03:53 AM
|
0
|
0
|
6135
|
|
POST
|
Do you have any of the specific model numbers for these failures? From the crash report there is an issue with the creation of the OpenGL context so this is a hardware specific issue to a group of GPU chips. Also have you tried the 100.7 release of the SDK. We did make some improvements which might help.
... View more
01-02-2020
01:05 AM
|
0
|
6
|
6135
|
|
POST
|
How are you building the jar. Are you using Eclipse or are you running a gradle script? Are you starting you app by calling the wrapper/launcher class as we have in the example app:arcgis-runtime-samples-java/DisplayMapLauncher.java at master · Esri/arcgis-runtime-samples-java · GitHub ? This needs to be what you reference in the manifest in the jar file. In my manifast.mf file I have the following entry: Manifest-Version: 1.0 Main-Class: com.esri.samples.display_map.DisplayMapLauncher
... View more
12-05-2019
04:57 AM
|
1
|
0
|
2669
|
|
POST
|
I've not used Eclipse for many years (prefer IJ Idea) but I would start by taking a look at one of our sample apps. This is a good basic one to get going with: arcgis-runtime-samples-java/map/display-map at master · Esri/arcgis-runtime-samples-java · GitHub You will see the structure of the app contains a launcher class which is needed for JavaFX 11 apps to work in a runnable jar. If you use gradle, then run the jar task which will build you a runnable jar. In the project above this will appear in the build/libs directory. Remember that when you deploy, you will need the native libraries next to the jar. This doc explains the structure above: Deploy your app—ArcGIS Runtime SDK for Java | ArcGIS for Developers Depending on how your machine is set up you can double click on the jar or just do a 'java -jar' from the command line. Does this help?
... View more
12-04-2019
05:45 AM
|
1
|
0
|
2669
|
|
POST
|
A future is a promise to return something. You can use this asynchronously as you've show above and listen into a callback to tell you the result is ready. This will call back on a separate thread. Futures can also be made to block the thread you are on until the result comes through. If you don't bother listening to the done event, you can just call future.get. However be careful that you are not using this on the UI thread of your app!!!
... View more
11-19-2019
08:56 AM
|
2
|
1
|
2072
|
|
POST
|
Look at Project method on the GeomeryEngine class. This allows you to convert from one coordinate system to another. GeometryEngine (ArcGIS Runtime SDK for Android 100.6.0) So if your geometry is in Web Mercator and your want to convert to Lat / Long then your output spatial reference is WGS84. Does this help?
... View more
10-29-2019
08:28 AM
|
0
|
0
|
2154
|
|
POST
|
I've not understood your question, so I'm guessing here. I'm wondering if a callout is what you are wanting. This is a container you can add to your map which can contain text or an image for example. arcgis-runtime-samples-android/java/show-callout at 65533272642bd366e31af709c250063ded30219a · Esri/arcgis-runtime-sampl… The other thing you can look at is PicureMarkSymbols. There is where you can draw a graphic on the screen which is symbolised with an image. arcgis-runtime-samples-android/java/picture-marker-symbols at 65533272642bd366e31af709c250063ded30219a · Esri/arcgis-run… Does this help?
... View more
09-27-2019
07:05 AM
|
0
|
0
|
2664
|
|
POST
|
So the PointerMoved method you've seen is probably a specific method for working with WPF controls. As a start I'd take a look at this sample to see some basics of interacting with MapViews in Android controls: Feature Layer Selection | ArcGIS for Developers It shows you how you can implement a touch listener.
... View more
09-26-2019
08:21 AM
|
1
|
0
|
2089
|
|
POST
|
Yes, but before I answer the question can you confirm which SDK you are using. Are you using Android as with Android Studio, or writing a Xamarin cross platform app with Visual Studio?
... View more
09-26-2019
07:43 AM
|
0
|
2
|
2089
|
|
POST
|
You can almost certainly do all the things you mention above. If you are familiar with google maps then you might want to take a quick look at this article: Migrate from Google Maps to ArcGIS Runtime—ArcGIS Runtime SDK for Android | ArcGIS for Developers I can see from the post you originally posted on our samples reprository you are interested in putting a marker on a map at a given Lat / Long location. If you have a very basic app up and running from one of our samples then the following code shows how you can put a very simple dot on a map: @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
mMapView = findViewById(R.id.mapView);
mMap = new ArcGISMap(Basemap.Type.TOPOGRAPHIC, 34.056295, -117.195800, 16);
mMapView.setMap(mMap);
// create a graphics overlay and add to map view
GraphicsOverlay graphicsOverlay = new GraphicsOverlay();
mMapView.getGraphicsOverlays().add(graphicsOverlay);
// define a symbol style for your "dot". There are lots more styles available but this is a very simple red dot
SimpleMarkerSymbol sms = new SimpleMarkerSymbol(SimpleMarkerSymbol.Style.CIRCLE, 0xFFFF0000, 20);
// create point geometry of your dot in the WGS84 spatial reference
Point location = new Point(-117.195800, 34.056295, SpatialReferences.getWgs84());
// create a graphic from your point and style
Graphic graphic = new Graphic(location, sms);
// add the graphic to the graphics overlay so you see it on your map view
graphicsOverlay.getGraphics().add(graphic);
} Lots more to read about graphics overlays here: Add graphics and text to graphics overlays—ArcGIS Runtime SDK for Android | ArcGIS for Developers I'm not sure about your other request, but if you can explain to me exactly what you are trying to achieve I can point you at the correct sample code or documentation.
... View more
09-26-2019
07:19 AM
|
0
|
0
|
1200
|
|
POST
|
I'm not sure that you want to be changing the reference scale of your map. This is for working with annotation for example where you want to set the optimal scale for viewing your data on the map. This doesn't change the scale of the map. This explains why your app isn't functioning as you expected. I've not tried out your code, but I suspect you simply want to change the scale of your MapView. So if you wanted to alter the scale of your MapView to 1:50000 for example you would use the following code: mapView.setViewpointScaleAsync(50000); There are various methods on the MapView class which work with ViewPoints you can experiment with. MapView (ArcGIS Runtime SDK for Java 100.6.0)
... View more
09-24-2019
02:08 PM
|
0
|
0
|
1084
|
|
POST
|
The Pixelbooks run on the Chrome OS which do claim to be able to run Android apps, but you've stumbled across a big difference in the architecture. Android is almost all ARM, where as the Pixelbook is x86 (intel). You will find this with lots of Android apps which use native libraries. We don't officially support Chrome OS and we don't currently test the product on this OS. Android is our focus. Support by Chrome OS for Android apps is something we've considered in the past but the demand has been virtually non-existent. I will certainly reevaluate the position for future releases. Another potential way forward for supporting Chrome OS is to use our Java SE API. Again this isn't supported officially, but Chrome OS is Linux in the background. We support other Linux OS like Ubuntu for example. I might try this out as an exercise myself; it stands a better chance of success with that we have available now. Can you PM me as I'd like to understand your market and how big the demand for Chrome OS support is.
... View more
09-18-2019
01:03 PM
|
0
|
1
|
4445
|
|
POST
|
This is answered in a separate post: https://community.esri.com/thread/239494-help-about-zoomcontrols
... View more
09-02-2019
08:27 AM
|
0
|
0
|
1113
|
|
POST
|
It's just a case of converting your map coordinates to screen coordinates. It is actually very common to convert from screen coordinates and move to map coordinates when you listen into click events. I've shown this in the code below with an extra line of code to convert to back again: mapView.setOnMouseClicked(e-> {
// display the screen coordinate
Point2D screenPoint = new Point2D(e.getX(), e.getY());
System.out.println("screen " + screenPoint.getX() +"," + screenPoint.getY() );
// convert the screen coordinate to map coordinate
Point actualPoint = mapView.screenToLocation(screenPoint);
System.out.println("actual point " + actualPoint.getX() +"," + actualPoint.getY());
// convert the map coordinate back to the screen coordinate
Point2D calcScreenPoint = mapView.locationToScreen(actualPoint);
System.out.println("calc screen point " + calcScreenPoint.getX() + "," + calcScreenPoint.getY());
}); So if you have 2 map coordinates and convert these to screen coordinates it's just simple maths to work out the number of pixels between the 2 points. Note the import statements so you get the types correct: import com.esri.arcgisruntime.geometry.Point;
import javafx.geometry.Point2D;
Does this help?
... View more
08-31-2019
01:51 PM
|
0
|
0
|
886
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-12-2026 01:35 AM | |
| 2 | 05-07-2026 06:59 AM | |
| 1 | 08-13-2024 05:17 AM | |
| 1 | 07-10-2024 01:50 AM | |
| 1 | 04-22-2024 01:21 AM |
| Online Status |
Offline
|
| Date Last Visited |
05-13-2026
06:46 AM
|