|
POST
|
Dear Vignesh, You have to use ArcGIS Desktop in order to create a tpk file. As in your scenario, a number o times, I downloaded and symbolize OSM data from shapefiles, then shared map as a tpk file. There is no easier way, I am aware of. There is no option to consume a .osm file directly in ArcGIS Runtime. Regards, Adam
... View more
06-17-2017
10:40 AM
|
0
|
0
|
738
|
|
POST
|
Edgar, Indeed, JavaFX only. I would not recommend you trying to use them both. Regards, Adam
... View more
06-07-2017
01:28 AM
|
0
|
0
|
857
|
|
POST
|
Hi Daysie, Well, as far as I know, it is not possible to fill polygon graphics with pictures. Although, you may work with marker symbol for points. Here is the snippet from the guide Symbols and renderers—ArcGIS Runtime SDK for Java | ArcGIS for Developers //create a picture marker symbol
Image image = new Image("file:RedShinyPin.png");
final PictureMarkerSymbol pictureMarker = new PictureMarkerSymbol(image);
//load the symbol
pictureMarker.loadAsync();
//once the symbol is loaded it can be used to add to a graphic
pictureMarker.addDoneLoadingListener(new Runnable() {
@Override
public void run() {
//create graphic
Graphic graphic = new Graphic(location, pictureMarker);
//add the graphic to the graphics overlay
graphicsOvelay.getGraphics().add(graphic);
}});
} Regards, Adam
... View more
06-04-2017
01:03 AM
|
1
|
1
|
789
|
|
POST
|
Abir, As far as I know, currently online scene services are supported only. Please check Display a scene—ArcGIS Runtime SDK for Java | ArcGIS for Developers. I anticpate local scene packages might be supported towards the end of the year. Adam
... View more
05-25-2017
10:36 PM
|
0
|
0
|
506
|
|
POST
|
Maybe I should use token based authentication, generate token that has long expiry time for my needs. And if token expired, acquire new token. This is exactly what UserCredentials does by default. Adam
... View more
05-25-2017
03:47 AM
|
0
|
1
|
2341
|
|
POST
|
Hi, you might need to double check username which can be case sensitive. I suggest you use fiddler to debug the rest requests. Also, check this useful resource from Android SDK (Workflow 2) Working with secure ArcGIS services—ArcGIS Runtime SDK for Android | ArcGIS for Developers Hope this helps, Adam
... View more
05-24-2017
11:20 AM
|
1
|
2
|
2341
|
|
POST
|
Hi Thomas, try using the following snippet from Android SDK. I think, you might need to specify setMaxFeatures to get it working. QueryParameters query = new QueryParameters();
query.setMaxFeatures(1000);
query.setReturnGeometry(true);
query.setGeometry(bBox);
query.setOutSpatialReference(SpatialReference.create(102100));
List<Graphic> list = new ArrayList<>();
try {
ListenableFuture<FeatureQueryResult> tableQueryResult = sft.queryFeaturesAsync(query);
FeatureQueryResult result = tableQueryResult.get();
for (Iterator<Feature> iter = result.iterator(); iter.hasNext(); ) {
Feature feature = iter.next();
Polygon poly = GeometryEngine.buffer(feature.getGeometry(), 10);
list.add(new Graphic(poly, incSymbolPoly));
list.add(new Graphic(feature.getGeometry(), incSymbolPoint));
list.add(new Graphic(feature.getGeometry(), incSymbolText));
}
DisplayMap.getTrafficIncOverlay().getGraphics().addAll(list);
} catch (InterruptedException | ExecutionException e) {
Log.e("ERROR", e.getCause().getMessage());
} Hope this helps, Adam
... View more
05-13-2017
02:00 AM
|
0
|
0
|
562
|
|
POST
|
Hi Geoff, There is no equivalent class in Runtime 100.0.0 so far. As far as I know, it is unlikely that this feature is going to be added later on, but I might be wrong. I suggest you create your own implementation for this external data source. There are plenty of NMEA parser libraries i.e. Java Marine API - NMEA 0183 library for Java. To display location you can use Graphic Overlays. Hope this helps, Adam
... View more
05-08-2017
10:11 PM
|
1
|
1
|
735
|
|
POST
|
Hi Nate, not yet implemented. See https://community.esri.com/message/659951-loading-a-shapefile-with-arcgis-10000-java-sdk?q=shapefile Regards, Adam
... View more
04-24-2017
09:38 AM
|
1
|
0
|
986
|
|
POST
|
Mohammad, As I said - " create two instances of WmsDynamicMapServiceLayer", create WmsDynamicMapServiceLayer wmsLayer1 = new WmsDynamicMapServiceLayer(url, new String[] { "0"}); and WmsDynamicMapServiceLayer wmsLayer2 = new WmsDynamicMapServiceLayer(url, new String[] { "0"}); then set visibilty to those. As so far you override the first layer by the definiotion of the second one. Regards, Adam
... View more
04-13-2017
12:32 AM
|
0
|
0
|
623
|
|
POST
|
Mohammed, why don't you create two instances of WmsDynamicMapServiceLayer pointing to differents wms service endpoints? Regards, Adam
... View more
04-12-2017
10:48 PM
|
0
|
2
|
623
|
|
POST
|
Mohammed, Unfortunately not. WMS support in ArcGIS Runtime for Java 10.2.4, was so limited, that I had to create a custom solution for these purposes. Generally speaking, OGC standards were not covered well enough in 10.x versions. Hope this is going to change with 100.x version. We will see in couple of months... Regards, Adam
... View more
04-12-2017
10:45 PM
|
2
|
1
|
709
|
|
POST
|
Hi John, You can try playing with MarkerSymbol| arcgis-java setOffset methods and combine it with TextSymbol| arcgis-java setHorizontal/VerticalAlignmement methods of TextSymbol. Hope this helps, Adam
... View more
04-11-2017
10:41 PM
|
3
|
0
|
1202
|
|
POST
|
Runtime 100.0.0 is a completely new beast. No planned support for Swing components, so JMap no longer exists. Now, there is map and map view components. You need to use JavaFX controls to display map view. Check out the docs: Maps (2D)—ArcGIS Runtime SDK for Java | ArcGIS for Developers Regards, Adam
... View more
04-11-2017
02:06 AM
|
3
|
0
|
403
|
|
POST
|
Michael, If you are interested in Android app development, please post your queston in ArcGIS Runtime SDK for Android. To quickly answer your, question, you need to setup your Android Studio project with ArcGIS- gradle dependecies. Follow this tutorial Install and set up—ArcGIS Runtime SDK for Android | ArcGIS for Developers Regards, Adam
... View more
04-10-2017
10:27 PM
|
0
|
1
|
776
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-19-2024 12:19 PM | |
| 1 | 05-11-2016 06:36 AM | |
| 1 | 09-28-2023 08:17 AM | |
| 2 | 03-17-2021 12:09 PM | |
| 1 | 05-11-2016 10:40 PM |
| Online Status |
Offline
|
| Date Last Visited |
03-22-2024
10:35 PM
|