POST
|
Hello, Currently you cannot customize the style on the callout in 200.x . This part of the functionality is not released yet. We have logged an enhancement request to support this in an upcoming release.
... View more
02-22-2024
03:48 PM
|
0
|
0
|
108
|
POST
|
You can try using the layerViewStateChanged callback on the GeoView that gives you the LayerViewStatus on individual layers in the MapView. When the tiles in the WebTiledLayer are not successfully loaded you will get the Warning LayerViewStatus. If you get that then the LayerViewState.error property will provide more details about the specific problem which was encountered.
... View more
02-22-2024
01:49 PM
|
0
|
0
|
91
|
POST
|
In order to fetch the table and location data from the MMPK file, you will first have to create and instance of MobileMapPackage and load it. Here is a sample which shows how create a map from a mobile map package and displays it. Once you have the map created from the MobileMapPackage, you can iterate over its operationalLayers to find the FeatureTable that has all your location data and can even perform a query operation on it to filter data based on a query string. val featureLayer = mmpk.maps[0].operationalLayers.filterIsInstance<FeatureLayer>().first() // gives the first FeatureLayer in the operationLayers of the map
// then you can get the feature table from the feature layer
val featureTable = featureLayer.featureTable Alternatively, You can iterate over the ArcGISMap's tables and find the feature table there. val mapPackage = MobileMapPackage(filePath)
mapView.map = mapPackage.maps.first()
val featureTable = mapView.map.tables.first()// gives the first table in map's table list To find out how to query the feature table you can refer to this sample
... View more
02-19-2024
06:42 PM
|
0
|
0
|
116
|
POST
|
You can set how a tile request that returns 'No Data' is resampled by setting noDataTileBehavior property on the WebTiledLayer, This lets you choose what to display where the tile should have been displayed, NoDataTileBehavior.UpSample - Resample the pixels from a lower level of detail tile. NoDataTileBehavior.Blank - The 'NoData' pixels will show the raster picture as being blank (or disappearing). NoDataTileBehavior.Show - This will show the raster picture with the text 'No Data' stamped over it once you pass the lowest level-of-detail scale. https://developers.arcgis.com/kotlin/api-reference/arcgis-maps-kotlin/com.arcgismaps.mapping.layers/-image-tiled-layer/no-data-tile-behavior.html
... View more
02-17-2024
08:58 AM
|
0
|
1
|
134
|
POST
|
The error signifies that you are trying to access a resource that is secured and not public. You will need to provide username/password for the NetworkAuthenticationChallenge to access that service. You can provide username/password by providing the implementation for the NetworkAuthenticationChallengeHandler interface class PasswordCredentialAuthenticator(private val passwordCredential: PasswordCredential) :
NetworkAuthenticationChallengeHandler {
override suspend fun handleNetworkAuthenticationChallenge(challenge: NetworkAuthenticationChallenge): NetworkAuthenticationChallengeResponse {
return when (challenge.networkAuthenticationType) {
NetworkAuthenticationType.UsernamePassword -> {
NetworkAuthenticationChallengeResponse.ContinueWithCredential(passwordCredential)
}
else -> NetworkAuthenticationChallengeResponse.Cancel
}
}
} and in your code you will set an instance of it on the AuthenticationManager, val passwordCredential = PasswordCredential("username", "password")
ArcGISEnvironment.authenticationManager.networkAuthenticationChallengeHandler =
PasswordCredentialAuthenticator(passwordCredential)
... View more
02-15-2024
12:20 PM
|
0
|
0
|
165
|
POST
|
You can specify that on ArcGISMap, https://developers.arcgis.com/kotlin/api-reference/arcgis-maps-kotlin/com.arcgismaps.mapping/-arc-g-i-s-map/index.html?query=class%20ArcGISMap%20:%20GeoModel,%20JsonSerializable#-1452695815%2FProperties%2F-1844196645 https://developers.arcgis.com/kotlin/api-reference/arcgis-maps-kotlin/com.arcgismaps.mapping/-arc-g-i-s-map/index.html?query=class%20ArcGISMap%20:%20GeoModel,%20JsonSerializable#433310567%2FProperties%2F-1844196645 https://developers.arcgis.com/kotlin/api-reference/arcgis-maps-kotlin/com.arcgismaps.mapping/-arc-g-i-s-map/index.html?query=class%20ArcGISMap%20:%20GeoModel,%20JsonSerializable#1266561869%2FProperties%2F-1844196645
... View more
02-14-2024
03:14 PM
|
0
|
0
|
116
|
POST
|
>The MapView comes with default gestures to allow users to pan, zoom, and rotate the map specific to each platform. Platforms also allow you to override these gestures with your own. You can override the mapview's default gesture implementation by calling Android(platform) View's setOnTouchListerner() and passing your own implementation for the OnTouchListener. https://developer.android.com/reference/kotlin/android/view/View#setOnTouchListener(android.view.View.OnTouchListener) You can do so in your code by calling , mapView.setOnTouchListener() >They are also marked as open. These are Events (sharedFlows) which emit a particular gesture event and will not work if you override mapview's default gesture implementation with your own.
... View more
02-01-2024
04:43 PM
|
0
|
0
|
120
|
POST
|
You can add the top level MapServer url as an ArcGISMapImageLayer https://developers.arcgis.com/kotlin/api-reference/arcgis-maps-kotlin/com.arcgismaps.mapping.layers/-arc-g-i-s-map-image-layer/index.html After that you can control each Sublayer's properties. You can see the API usage with this Android Java sample. https://github.com/Esri/arcgis-runtime-samples-android/blob/main/java/change-sublayer-visibility/src/main/java/com/esri/arcgisruntime/sample/mapimagelayersublayervisibility/MainActivity.java https://developers.arcgis.com/kotlin/api-reference/arcgis-maps-kotlin/com.arcgismaps.mapping.layers/-arc-g-i-s-sublayer/index.html#-1515161094%2FProperties%2F1086730362
... View more
08-02-2023
11:08 AM
|
0
|
0
|
407
|
POST
|
Maybe the points that are displaying are on a different FeatureLayer that you are performing the Identify operation on ? You can try using identify layers function instead. This will perform identify operation on all layers in the view.
... View more
07-25-2023
04:39 PM
|
0
|
1
|
354
|
POST
|
@NathanMeade , I would strongly recommend that you should migrate to the 200.x version right away rather than migrate to 100.x https://developers.arcgis.com/kotlin/
... View more
05-11-2023
09:04 AM
|
0
|
0
|
415
|
POST
|
We don't have that around anymore, since the product retired in ~2019 https://support.esri.com/en-us/products/arcgis-runtime-sdks/life-cycle
... View more
05-10-2023
12:40 PM
|
1
|
0
|
428
|
POST
|
>Is there somewhere else where I can find this page or information? Is there a way that this could be re-uploaded? I need to update from https://developers.arcgis.com/android/reference/migrate-to-100-x-from-10-2-x/
... View more
05-10-2023
09:39 AM
|
1
|
2
|
439
|
POST
|
Yeah, the api is similar. You can call getCredential() on Portal object Portal (ArcGIS Runtime SDK for Android 100.5.0) which would give you an OAuthTokenCredential object and you can call getAccessToken() on it. OAuthTokenCredential (ArcGIS Runtime SDK for Android 100.5.0)
... View more
06-27-2019
12:27 PM
|
0
|
0
|
335
|
POST
|
you can put a status listener on the TileLayer and listen for layer Initialized event when it becomes available from online. And before adding it to the mapView you can get the values of Full Extent and Min/Max scales. Then set these values on the MapView. To set the Extent use setMaxExtent() method.
tilelayer.setOnStatusChangedListener(new OnStatusChangedListener() {
@Override
public void onStatusChanged(Object source, STATUS status) {
// TODO Auto-generated method stub
if(source == tilelayer && status== STATUS.INITIALIZED){
mTileLayerExtent = tilelayer.getFullExtent();
mTileLayerMinScale = tilelayer.getMinScale();
mTileLayerMaxScale = tilelayer.getMaxScale();
}
}
});
mMapView.setMaxExtent(mTileLayerExtent);
mMapView.setMinScale(mTileLayerMinScale);
mMapView.setMaxScale(mTileLayerMaxScale);
... View more
01-23-2015
11:31 AM
|
0
|
1
|
912
|
POST
|
Since you are downloading a local tile cache and adding it as the first layer to the MapView, the MapView is getting limited by the min / max scale on the localTiledLayer. You can try using the workflow illustrated in the sample and add the Online tiled layer as the first layer in the Mapview, and when you add the localTiledLayer, set the visibility of the online tiled layer to false. That way by switching the visibilities you can easily toggle between the two. mMapView.getLayers()[0].setVisible(false); mMapView.getLayers()[1].setVisible(true);
... View more
01-21-2015
03:42 PM
|
0
|
3
|
912
|
Title | Kudos | Posted |
---|---|---|
1 | 05-10-2023 09:39 AM | |
1 | 05-10-2023 12:40 PM | |
1 | 12-18-2014 12:56 PM |
Online Status |
Offline
|
Date Last Visited |
03-14-2024
09:41 PM
|