User Tools

Site Tools


map_suite_ios_getting_started

This is an old revision of the document!


Editing Map Suite iOS Getting Started

Video Overview

GettingStarted

GettingStarted (Xamarin Forms)

Introduction

The Getting Started Learning Sample for Map Suite iOS Edition shows how to begin creating and using your customizable iOS mapping app.

Interacting with the Map

Panning the map is performed by touching the screen with one finger and dragging. Zooming is accomplished by touching the screen with two fingers and pinching. It is also possible to zoom in and out by tapping the + and – symbols in the top left. Use the left and right arrows at the bottom of the screen to move between previous and future extents, like back and forward on a web browser.

Tap the map anywhere to show the latitude and longitude of that location. Double tap to zoom into a location. On a long press, a menu appears that allows the user to select zoom level 2, 5, 10, 16, or 18. The higher the zoom level, the higher the zoom. Zoom level 5 shows the continental United States, while zoom level 10 shows roughly a state.

Tap the target icon in the bottom left to show the current location. Press the globe icon to show the entire world at zoom level 2.

A Look at the Code

Main.cs is the entrance to the app. It opens AppDelegate.cs. Storyboards contain UI and the relationship between UIs, but for this sample they are blank.

MainViewController.cs contains the UI. MapView is the ThinkGeo map control. ViewDidLoad() is the iOS event for page load. InitializeMap() sets up the map projection, the current extent, touch events, and the basemap overlay (using ThinkGeo’s World Map Kit).

map_suite_ios_getting_started.1452568724.txt.gz · Last modified: 2016/01/12 03:18 by tgwikiupdate