

Val uri = Uri.parse("geo:$lat,$lon?q=$lat,$lon") To open maps app which is in HUAWEI devices which contains HMS: const val GOOGLE_MAPS_APP = ".maps"Ĭonst val HUAWEI_MAPS_APP = "" Intent mapIntent = new Intent(Intent.ACTION_VIEW, navigationIntentUri)
#APPSTUDIO MAP INSTALL#
Toast.makeText(this, "Please install a maps application", Toast.LENGTH_LONG).show() Īny latitudes or longitudes used in my example are not representative of my location, any likeness to a true location is pure coincidence, aka I'm not from Africa :Pįor directions, a navigation intent is now supported with google.navigation Uri navigationIntentUri = Uri.parse("google.navigation:q=" + 12f +"," + 2f) //creating intent with latlng Intent unrestrictedIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri)) String uri = String.format(Locale.ENGLISH, " (%s)", 12f, 2f, "Where the party is at") To use your current location as the starting point (unfortunately I haven't found a way to label the current location) then use the following String uri = String.format(Locale.ENGLISH, " (%s)", destinationLatitude, destinationLongitude, "Where the party is at") įor completeness, if the user doesn't have the maps app installed then it's going to be a good idea to catch the ActivityNotFoundException, then we can start the activity again without the maps app restriction, we can be pretty sure that we will never get to the Toast at the end since an internet browser is a valid application to launch this url scheme too. Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri)) String uri = String.format(Locale.ENGLISH, "(%s)&daddr=%f,%f (%s)", sourceLatitude, sourceLongitude, "Home Sweet Home", destinationLatitude, destinationLongitude, "Where the party is at") See also Intent for Google Maps 7.0.0 with locationĪlthough the current answers are great, none of them did quite what I was looking for, I wanted to open the maps app only, add a name for each of the source location and destination, using the geo URI scheme wouldn't work for me at all and the maps web link didn't have labels so I came up with this solution, which is essentially an amalgamation of the other solutions and comments made here, hopefully it's helpful to others viewing this question. Will ignore the coordinates and search for an object with the given name between the parentheses.
#APPSTUDIO MAP WINDOWS#
The apps built with AppStudio are cross-platformthat is, they run on Android, iOS, Linux, macOS, and Windows platforms. NOTE (by Not working in Maps v.7 (latest version at the time of writing). ArcGIS AppStudio allows you to convert maps and GIS data into native apps that can be shared with others in your enterprise or to the public through popular app stores. I found a way to center the map with lat/lon and display a pin with a custom label, very nice to display and useful when asking for directions or any other action: Intent intent = new Intent(_VIEW,

With the AppStudio 5.0 release, we have improved the editing feature attribute capability to support related tables and to show the last edit time and editor. It supports viewing web maps, identifying and editing feature attributes, and viewing feature attachments. If you use the query parameter "geo:lat,lon?q=name" in order to label your geopoint, it uses the query for search and dismiss the lat/lon parameters. Map Viewer is one of the most popular templates in AppStudio. That's quite confusing, especially if you need to point to a precise place or/and ask for directions. The problem using "geo:latitude,longitude" is that Google Maps only centers at your point, without any pin or label.
#APPSTUDIO MAP ANDROID#
Keep in mind that this may affect the performance of the Story Map application and AppStudio native application when being viewed on a phone.This is a little off-topic because you asked for "directions", but you can also use the Geo URI scheme described in the Android Documentation: In the Data tab of the feature services Item Details page, alter the url of the thumbnail URL value to match the picture URL. This prevents the images from being resized when being uploaded to ArcGIS Online.Ģ.

When creating the Story Map, utilize a photo sharing site like Flickr or use images shared on your own website.
#APPSTUDIO MAP FULL SIZE#
The map tour template honors different images defined for the full size image and the thumbnail.ġ. If you wish to use the same image (or perhaps cropped version of the image) as the thumbnail you should prepare a file for this purpose before uploading it. You can also nominate a different image for the thumbnail. When you choose to upload your images to ArcGIS Online, you can choose to upload the image at the original size or resize it. The issue described here is to do with the use of the story map creation tool and in that tool, there are choices that can be made, that eliminate the problem. The issue's Additional Information section may contain further explanation. The development team has considered the issue or request and concluded it will not be addressed.
