POST
|
the `currentViewPoint` and the `layerViewState` values are available as callbacks from the Composable MapView, onViewpointChangedForCenterAndScale: ((Viewpoint) -> Unit)? = null,
onViewpointChangedForBoundingGeometry: ((Viewpoint) -> Unit)? = null,
...
onLayerViewStateChanged: ((GeoView.GeoViewLayerViewStateChanged) -> Unit)? = null, https://github.com/Esri/arcgis-maps-sdk-kotlin-toolkit/blob/main/toolkit/geoview-compose/src/main/java/com/arcgismaps/toolkit/geoviewcompose/MapView.kt#L132 https://github.com/Esri/arcgis-maps-sdk-kotlin-toolkit/blob/main/toolkit/geoview-compose/src/main/java/com/arcgismaps/toolkit/geoviewcompose/MapView.kt#L157 These callbacks are invoked everytime a new value for the viewpoint or layerViewState is available and provide you the latest value. We do have a method on the `GeoViewProxy` that you can use to find out the LayerViewState for a given layer at this time. https://github.com/Esri/arcgis-maps-sdk-kotlin-toolkit/blob/main/toolkit/geoview-compose/src/main/java/com/arcgismaps/toolkit/geoviewcompose/GeoViewProxy.kt#L305
... View more
03-20-2025
01:42 PM
|
0
|
0
|
319
|
POST
|
FYI we have this issue https://community.esri.com/t5/kotlin-maps-sdk-questions/compose-mapview-ignores-isattributionbarvisible/m-p/1415837#M405, in the current release, the fix for it will be out in the next release.
... View more
02-26-2025
08:57 AM
|
1
|
1
|
596
|
POST
|
Hello, That text is shown in the attribution bar. You can set its visibility by setting isAttributionBarVisible property.
... View more
02-26-2025
08:54 AM
|
0
|
0
|
596
|
POST
|
This looks good. Also looks like you are on the right track to display TextPopupElements using AndroidView. We are currently working on a `PopupView` component which will show the various properties of different popup element types out of the box. It should be out as a toolkit component in our next release.
... View more
05-01-2024
01:50 PM
|
0
|
0
|
1324
|
POST
|
Can you make sure that `selectedGraphic` always has a valid geometry associated with it when you call, callout.show(contentView,selectedGraphic) in the scenarios when the callout does show up vs when it does not show. Also check for the validity of the contentView. Try testing your code by showing the callout with a simple contentView which is just a text view. contentView = TextView(applicationContext).apply {
text = "lorem ipsum"
}
... View more
04-30-2024
11:20 AM
|
0
|
0
|
563
|
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
|
786
|
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
|
1
|
849
|
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
|
642
|
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
|
892
|
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
|
705
|
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
|
1
|
0
|
565
|
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
|
617
|
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
|
1301
|
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
|
1091
|
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
|
1084
|
Title | Kudos | Posted |
---|---|---|
1 | 02-26-2025 08:57 AM | |
1 | 02-14-2024 03:14 PM | |
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-20-2025
09:43 PM
|