Giter Site home page Giter Site logo

esri / mapbook-wpf Goto Github PK

View Code? Open in Web Editor NEW
19.0 15.0 17.0 9.61 MB

Offline Mapbook example app built with WPF and the ArcGIS .NET Runtime SDK

License: Apache License 2.0

C# 100.00%
wpf-application arcgis runtime dotnet offline-maps native-development open-source-app

mapbook-wpf's Introduction

Offline Mapbook WPF

This repo provides an open source app called Offline Mapbook built in WPF with the ArcGIS Runtime SDK for .NET. With very little customization, you can change the app to use your own data. Screenshots of the app and more detailed documentation can be found on the Developers Site.


Features

  • Mobile map packages
  • Feature layers
  • Identify
  • Table of Contents
  • Legend
  • Locators with autosuggestions
  • Bookmarks
  • Portal Authentication using IWA and OAuth2

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.

Development Instructions

This Offline Mapbook repo is a Visual Studio 2017 Project that can be directly cloned and imported into Visual Studio 2017 or higher.

Fork the repo

Fork the Offline Mapbook WPF repo.

Clone the repo

Once you have forked the repo, you can make a clone.

Command line Git

  1. Clone the Offline Mapbook repo
  2. cd into the mapbook-wpf 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 (fow 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/mapbook-wpf.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 withupstream/master. Note: Your local changes will be retained and your fork's master branch will be in sync with the upstream repository.

Requirements

Resources

Issues

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

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

Generation of this and other documents' table of contents in this repository was performed using the MDTOC package for Atom.

Licensing

Copyright 2017-2019 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

https://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.

mapbook-wpf's People

Contributors

doneill avatar esreli avatar mikewilburn avatar nathancastle avatar ncastle1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mapbook-wpf's Issues

Bookmarks

Bookmarks are retrieved from the map document and listed in listview.
When user clicks on bookmark:

  • they are zoomed/panned to the extent of the bookmark

Main screen

Create main screen of the app to contain:

  • mmpk name
  • mmpk thumbnail
  • mmpk description
  • mmpk download date
  • all maps in mmpk
    • map name
    • map description
    • map thumbnail
    • clicking the map navigates to the map screen
  • button to refresh (download) the mmpk

Cannot remove search pin once dropped

After a feature has been searched, the pin remains on the map (with no obvious way to dismiss/remove it). Granted, it can be moved if a new feature is searched, but doesn't appear possible to remove it altogether.

image

Add OAuth2 authentication

Reason: During design phase of the application, the decision was made that the app would use IWA since that is a very common pattern in enterprise WPF application. Post completion, it was decided to change authentication type in favor of OAuth2.

Map screen

Create map screen for the app to contain:

  • name of the map
  • map itself
  • button bar with all tool buttons
  • back button to navigate back to mains screen

Create download functionality

Add download functionality to the app.
Initial App Load

  1. User is prompted for folder to store mmpk
  2. App uses IWA to connect to portal
  3. App downloads mmpk
  4. App shuts down if unable to download mmpk

Subsequent App Loads

  1. App loads, searches for mmpk existing mmpk. Compares download date to modified date
  2. App downloads mmpk if not found locally or if newer version is available
  3. App uses existing mmpk if unable to download new version

Identify features

Perform identify on features:

  • when user taps on the map, run Identify on all available layers
  • return popups for all features

Esri.ArcGISRuntime.Toolkit.WPF - version 100.2.0-beta3.42.g654578e5e6

I am just trying to build version upgraded to to 100.2 and there is reference to Esri.ArcGISRuntime.Toolkit.WPF - version 100.2.0-beta3.42.g654578e5e6. But the latest version I could find so far is 100.1.0-beta2 and that one is obviously not working well. Is that 100.2.0-beta available somewhere?

Locator

Use locator(s) to search for a feature:

  • locator(s) are created in Pro and added inside the mmpk
  • search bar allows user to type in search value
  • locator suggestions are used to autocomplete search
  • when user clicks on suggestion, locator returns best match for the searched value
  • a pin is dropped in the searched location
  • user is zoomed/panned to the searched location

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.