All Projects → Esri → maps-app-ios

Esri / maps-app-ios

Licence: Apache-2.0 License
Your organisation's mapping app built with the Runtime SDK for iOS

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to maps-app-ios

maps-app-dotnet
Your organization's suite of cross platform mapping apps built with the ArcGIS Runtime SDK for .NET
Stars: ✭ 20 (+25%)
Mutual labels:  arcgis, runtime, geocoding, directions, open-source-app
google maps
🗺 An unofficial Google Maps Platform client library for the Rust programming language.
Stars: ✭ 40 (+150%)
Mutual labels:  geocoding, maps, directions
data-collection-ios
Mobile data collection app using the iOS Runtime SDK.
Stars: ✭ 24 (+50%)
Mutual labels:  arcgis, runtime, open-source-app
Google Maps
Google Maps Web Services API wrapper for .NET
Stars: ✭ 171 (+968.75%)
Mutual labels:  geocoding, maps
Maps Api For Javascript Examples
Self-contained examples for Maps API for JavaScript v3.
Stars: ✭ 130 (+712.5%)
Mutual labels:  geocoding, maps
Benmaps.fr
Web maps that don't track you.
Stars: ✭ 147 (+818.75%)
Mutual labels:  geocoding, maps
Google Maps Services Js
Node.js client library for Google Maps API Web Services
Stars: ✭ 2,432 (+15100%)
Mutual labels:  maps, directions
Data Collection Dotnet
Data collection application built using the .NET Runtime SDK.
Stars: ✭ 17 (+6.25%)
Mutual labels:  arcgis, runtime
Geo Golang
Go library to access geocoding and reverse geocoding APIs
Stars: ✭ 394 (+2362.5%)
Mutual labels:  arcgis, geocoding
Arcgis Appstudio Samples
Collection of samples available in AppStudio for ArcGIS desktop to learn and help build your next app.
Stars: ✭ 78 (+387.5%)
Mutual labels:  arcgis, runtime
geocoder
Geocoder is a Typescript library which helps you build geo-aware applications by providing a powerful abstraction layer for geocoding manipulations
Stars: ✭ 28 (+75%)
Mutual labels:  arcgis, geocoding
GoogleMapsHelper
An easy to integrate Model Based Google Maps Helper (SVHTTPClient, AFNetworking) That lets you Geo Code , Reverse Geocode, Get Directions , Places Autocomplete.
Stars: ✭ 21 (+31.25%)
Mutual labels:  maps, directions
Mobile Sdk
CARTO Mobile SDK core project
Stars: ✭ 116 (+625%)
Mutual labels:  geocoding, maps
Examples
Self-contained examples for the legacy Maps API for JavaScript.
Stars: ✭ 78 (+387.5%)
Mutual labels:  geocoding, maps
Googleapi
C# .NET Core Google Api (Maps, Places, Roads, Search, Translate). Supports all endpoints and requests / responses.
Stars: ✭ 346 (+2062.5%)
Mutual labels:  geocoding, maps
geoservices-js
Deprecated - please consider using @esri/arcgis-rest-js
Stars: ✭ 53 (+231.25%)
Mutual labels:  arcgis, geocoding
svelte-mapbox
MapBox Map and Autocomplete components for Svelte (or Vanilla JS)
Stars: ✭ 267 (+1568.75%)
Mutual labels:  geocoding, maps
open route service
An encapsulation made around openrouteservice API for Dart and Flutter projects. Made for easy generation of Routes and Directions on Maps, Isochrones, Time-Distance Matrix, Pelias Geocoding, POIs, Elevation and routing Optimizations using their amazing API.
Stars: ✭ 20 (+25%)
Mutual labels:  geocoding, maps
Mapnews
Today's News on a Map
Stars: ✭ 20 (+25%)
Mutual labels:  geocoding, maps
carto-react
CARTO for React packages
Stars: ✭ 17 (+6.25%)
Mutual labels:  maps

Maps App iOS

The Maps App for iOS shows how a robust application can be built around the ArcGIS Platform using the ArcGIS Runtime SDK for iOS and Swift. It demonstrates best practices around some simple but key functionality of the ArcGIS Runtime. You can use the Maps App as is, or extend it to meet your specific needs.

Maps App for iOS


Features

  • Place Search
  • Geocode addresses
  • Reverse Geocode
  • Turn-by-turn Directions
  • Dynamically switch basemaps
  • Open Web Maps
  • Work with ArcGIS Online or an on-premise ArcGIS Portal
  • OAuth authentication

Detailed Documentation

Read the docs for a detailed explanation of the application, including its architecture and how it leverages the ArcGIS platform, as well as how you can begin using the app right away.

Best Practices

The project also demonstrates some patterns for building real-world apps around the ArcGIS Runtime SDK.

  • Defining a modular, decoupled UI that operates alongside a map view
  • Asynchronous service and UI coding patterns
  • Internal application communication patterns

Get Started

Make sure you've installed Xcode and the ArcGIS Runtime SDK for iOS and that they meet these requirements.

Fork the repo

Fork the Maps App repo

Clone the repo

Once you have forked the repo, you can make a clone and open maps-app-ios.xcodeproj in Xcode.

Command line Git

  1. Clone the Maps App
  2. cd into the maps-app-ios folder
  3. Make your changes and create a pull request

Configuring a Remote for a Fork

If you make changes in the fork and would like to sync those changes with the upstream repository, you must first configure the remote. This will be required when you have created local branches and would like to make a pull request to your upstream branch.

  1. In the Terminal (for Mac users) or command prompt (for Windows and Linux users) type git remote -v to list the current configured remote repo for your fork.
  2. git remote add upstream https://github.com/Esri/maps-app-ios.git to specify new remote upstream repository that will be synced with the fork. You can type git remote -v to verify the new upstream.

If there are changes made in the Original repository, you can sync the fork to keep it updated with upstream repository.

  1. In the terminal, change the current working directory to your local project
  2. Type git fetch upstream to fetch the commits from the upstream repository
  3. git checkout master to checkout your fork's local master branch.
  4. git merge upstream/master to sync your local master branch with upstream/master. Note: Your local changes will be retained and your fork's master branch will be in sync with the upstream repository.

Configure the app

The app can be run as is, but it's recommended you do some configuration to set up OAuth to be relevant to your users (certainly it should not be deployed without these changes):

  1. Register an ArcGIS Portal Application.
  2. Configure the Maps App project to reference that application.
  3. License the app to remove the Developer Mode watermark.

1. Register an Application

For OAuth configuration, create a new Application in your ArcGIS Portal to obtain a Client ID and configure a Redirect URL. The Client ID configures the ArcGIS Runtime to show your users, during the log in process, that the application was built by you and can be trusted. The Redirect URL configures the OAuth process to then return to your app once authentication is complete.

  1. Log in to https://developers.arcgis.com with either your ArcGIS Organizational Account or an ArcGIS Developer Account.
  2. Register a new Application. Register new application
  3. In the Authentication tab, note the Client ID and add a Redirect URL, e.g. my-maps-app://auth. We will use this URL in the Configuring the project section below. Configure new application

2. Configuring the project

Configure Redirect URL

  1. Open the project in Xcode and browse to the maps-app-ios target's Info panel and expand the AGSConfiguration dictionary (see steps 1-4 in the screenshot below).
  2. Set the AppURLScheme value to match the Redirect URL scheme (the part before the ://, e.g. my-maps-app) configured in "Register an Application" above. Note how the AppURLScheme and AuthURLPath combine to construct the Redirect URL. Configure the App URL Scheme
  3. Expand the URL Types section and modify the existing entry.
    1. The Identifier doesn't matter, but should be unique (e.g. com.my-org.my-maps-app).
    2. The URL Scheme should match the Redirect URL scheme (the part before the ://, e.g. my-maps-app) configured in "Register an Application" above.

Configure Client ID

  1. In the Navigator pane, click to expand the group maps-app-ios/Maps App to reveal a file named AppSettings.swift.
  2. Within AppSettings.swift set the value of the static variable clientID to the application's Client ID noted above.

Configure the License Key

3. License the app for deployment

Remove the Licensed for Developer Use Only watermark on the map view by setting the Runtime License Key.

This step is optional during development, but required for deployment.

  1. Get your Runtime Lite License Key by clicking the Show my ArcGIS Runtime Lite license key at the top-right of the Licensing Your ArcGIS Runtime App page (you must be logged in).
  2. Open the project in Xcode and navigate to AppSettings.swift, the same file used to configure your applications client id.
  3. Set the value of the static variable licenseKey to the value from step 1.

Learn More

Learn more about ArcGIS open source apps here.

Requirements

  • Xcode 11 and Swift 5
  • ArcGIS Runtime SDK for iOS, version 100.10.
  • For directions and to browse Web Maps you will also need an ArcGIS Online Organizational account or an ArcGIS Online Developer account.
  • Device or Simulator running iOS 13.0 or later.

Note: Starting from the 100.8 release, the ArcGIS Runtime SDK for iOS uses Apple's Metal framework to display maps and scenes. However, Xcode does not support Metal based rendering in any version of iOS simulator on macOS Mojave. If you are developing map or scene based apps in these environments, you will need test and debug them on a physical device instead of the simulator.

Note: The 100.10 release of the ArcGIS Runtime SDK for iOS replaces the installed "fat framework" ArcGIS.framework with a new binary framework ArcGIS.xcframework. It also changes the location of the installed framework file and removes the need for the strip-frameworks.sh Build Phase. These changes have been incorporated in the lastest release of the Maps App for iOS.

Contributing

Anyone and everyone is welcome to contribute. We do accept pull requests.

  1. Get involved
  2. Report issues
  3. Contribute code
  4. Improve documentation

MDTOC

Generating table of contents for documents in this repository was performed using the MDTOC package for Atom.

Licensing

Copyright 2017 Esri

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

A copy of the license is available in the repository's LICENSE file.

For information about licensing your deployed app, see License your app.

3rd Party Component Licensing

Some great open source components are available out there for iOS developers. The following have been used in this project, with much gratitude to their authors.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].