• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Esri/arcgis-runtime-samples-ios: Swift samples demonstrating various capabilitie ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

Esri/arcgis-runtime-samples-ios

开源软件地址:

https://github.com/Esri/arcgis-runtime-samples-ios

开源编程语言:

Swift 96.7%

开源软件介绍:

ArcGIS Runtime SDK for iOS Samples

This repository contains Swift sample code demonstrating the capabilities of ArcGIS Runtime SDK for iOS and how to use them in your own app. The project can be opened in Xcode and run on a simulator or a device. Or you can download the app from the App Store on your iOS device.

Samples app

The main branch of this repository contains samples configured for the latest available version of ArcGIS Runtime SDK for iOS. For samples configured for older versions of the SDK, look under the Releases tab for a specific version.

Features

  • Maps - Open, create, interact with and save maps
  • Layers - Display vector and raster data in maps and scenes
  • Features - Work with feature layers and geodatabases
  • Display Information - Show graphics, popups, callouts, and sketches
  • Search - Find addresses, places, and points of interest
  • Edit Data - Add, delete, and edit features and attachments
  • Geometry - Create geometries and perform geometric operations
  • Route & Directions - Calculate routes between locations and around barriers
  • Analysis - Perform spatial analysis via geoprocessing tasks and services
  • Cloud & Portal - Search for webmaps and list portal group users
  • Scenes - Visualize 3D environments and symbols
  • Utility Network - Work with utility networks, performing traces and exploring network elements
  • Augmented Reality - View data overlaid on the real world through your device's camera

Requirements

The ArcGIS Runtime SDK Samples app has a Target SDK version of 14.0, meaning that it can run on devices with iOS 14.0 or newer.

Building Samples Using Swift Package Manager

  1. Fork and then clone the repository
  2. Open the arcgis-ios-sdk-samples.xcodeproj project file

    The project has been configured to use the arcgis-runtime-toolkit-ios package, which provides the ArcGISToolkit framework as well as the ArcGIS framework.

  3. Run the arcgis-ios-sdk-samples app target

To add the Swift packages to your own projects, consult the documentation for the ArcGIS Runtime iOS Toolkit and ArcGIS Runtime iOS SDK.

Building Samples Using CocoaPods

  1. Fork and then clone the repository
  2. Install the ArcGIS Runtime SDK for iOS by running the pod install command in the folder where you cloned this repository
  3. Open the arcgis-ios-sdk-samples.xcworkspace workspace file
  4. Select the arcgis-ios-sdk-samples project node, go to the Package Dependencies tab, and delete the arcgis-runtime-toolkit-ios package

    This Swift package conflicts with CocoaPods and is only required when using the Swift Package Manager as described in the previous section.

  5. Run the arcgis-ios-sdk-samples app target

Building Samples Using Installed SDK

  1. Fork and then clone the repository
  2. Install the ArcGIS Runtime SDK for iOS to a central location on your mac as described here
  3. Open the arcgis-ios-sdk-samples.xcodeproj project file. Select the arcgis-ios-sdk-samples project node, go to the Package Dependencies tab, and delete the arcgis-runtime-toolkit-ios package

    This Swift package conflicts with manual installation and is only required when using the Swift Package Manager as described in the previous section.

  4. Download the arcgis-runtime-toolkit-ios from here, and follow the instructions to add it as a local Swift package

    The manual installation method allows you to use a local installation ArcGIS Runtime SDK for iOS by making minor edits to the toolkit's Swift package manifest. Follow the instructions in Package.swift to uncomment the lines for localArcGISPackage and use it as the package dependency instead of the hosted version.

  5. Run the arcgis-ios-sdk-samples app target

Sample Data

Some sample data is too large to store in the repository, so it is automatically downloaded at build time. The first time the app is built, a build script downloads the necessary data to Portal Data. The script only downloads data files that do not already exist, so subsequent builds will take significantly less time.

Configure API key

To build this app locally, follow the steps to add an API key to a secrets file stored in the project's root directory, $(SRCROOT)/.secrets.

  1. Create a hidden secrets file in the project's root directory.
touch .secrets
  1. Add your API Key to the secrets file aforementioned. Adding an API key allows you to access a set of ready-to-use services, including basemaps. Acquire the keys from your dashboard. Visit the developer's website to learn more about API keys.
echo ARCGIS_API_KEY=your-api-key >> .secrets

Replace 'your-api-key' with your keys.

Please see Configure App Secrets for adding license key and other details.

Additional Resources

  • Want to start a new project? Setup your dev environment
  • New to the API? Explore the documentation : Guide | API Reference
  • Got a question? Ask the community on our forum

Issues

Find a bug or want to request a new feature? Please let us know by submitting an issue.

Contributing

Esri welcomes contributions from anyone and everyone. Please see our guidelines for contributing.

Licensing

Copyright 2022 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.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Yummypets/YPImagePicker: 发布时间:2022-06-21
下一篇:
QuickBlox/quickblox-ios-sdk: QuickBlox iOS SDK for messaging and video calling发布时间:2022-06-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap