Reference/Distribution
Distributionhybriddistribution

MapplsGeofenceUI Plugin for iOS

mappls-geofence-ui-ios-distribution-base

A versioned iOS distribution package used to integrate maps, routes navigation, tracking telematics, widgets deep links, capture feedback, identity platform into an application.

Integration notice

This repository distributes a package rather than defining the complete product contract. Pair it with the owning SDK or product guide.

What this surface enables

A versioned iOS distribution package used to integrate maps, routes navigation, tracking telematics, widgets deep links, capture feedback, identity platform into an application.

Why this source is classified hybrid

The source identity names a capture, feedback, geofence, analysis, or guided-operation surface where provider calls and application-owned workflow state must be separated.

Authority: Source Identity · Evidence: geofence
Platforms

iOS

Product areas

MapsRoutes NavigationTracking TelematicsWidgets Deep LinksCapture FeedbackIdentity Platform

Languages found

SwiftText

Authentication signals

No explicit authentication signal detected

Prepare the integration

  1. An iOS project with Xcode and the package manager required by the source release
  2. The corresponding product entitlement enabled for the developer application
Production guardrailsPin package versions and record the source fingerprint.Keep server credentials out of client binaries and logs.Test failures, timeouts, quota limits, upgrades, and rollback.Validate legacy examples against current authentication contracts.

Setup and usage examples

These examples were extracted from the canonical public source document and sanitized for credential-like values. Check the source branch and package version before copying into a production application.

mappls-geofence-ui-ios-distribution-base examples
import MapplsMap
import MapplsGeofenceUI
var geofenceView: MapplsGeofenceView!
 override func viewDidLoad() {
        super.viewDidLoad()
  // If you're on a background thread and want to execute code on the main thread, you need to call async()
 DispatchQueue.main.async {
let geofenceInstance: MapplsGeofenceView =  {
geofenceView = MapplsGeofenceView.init(geofenceframe: self.view.bounds)
geofenceView?.autoresizingMask = [.flexibleWidth, .flexibleHeight]
 return geofenceView
}()
geofenceInstance.delegate = self
self.view.addSubview(geofenceInstance)
}
}

Operate the whole lifecycle

This operational model supplements the repository-level setup instructions. Adapt its resource names and transitions to the owning product contract.

1
Define intent

Create a bounded application request or draft with purpose, policy, revision, and lifecycle owner before provider UI or capture begins.

2
Launch

Give one screen, controller, subscription, or callback generation explicit ownership of configuration, cancellation, timeout, and cleanup.

3
Normalize

Treat provider output as a candidate; validate and copy a narrow portable value instead of persisting an opaque SDK or UI object.

4
Commit or review

Use application-owned versioning, idempotency, review, and audit when a candidate affects a durable business decision.

5
Dispose and recover

Stop listeners and native resources once, ignore late generations, and restore only application-owned state after restart.

Topics documented by the source

01Introduction

Mappls Geofence Plugin SDK provides the functionalities to create a geofence in circle and polygon shape.

02Getting Started

Anyone can integrate the Mappls Geofence Plugin by following simple steps.Please note that this Plugin for iOS supports iOS SDK 9.0 and above.

To integrate Geofence SDK, it is important to pass an object of MapplsMapView which is part of Mappls's MapplsMap SDK.

03Installation

To add a package dependency to your Xcode project, select File > Swift Packages > Add Package Dependency and enter its repository URL. See Adding Package Dependencies to Your App.

04MapplsAPICore

It is required to set Mappls keys to use any MAPPL's SDK. Please refer the documentatation here.

05Step 3 :- Initialization of GeofenceViewUI

To Initialize, add MapplsGeofenceUI and MapplsMap Framework in your controller File.

User must implement the MapplsGeofenceViewDelegate protocol class to use delegate methods of MapplsGeofenceView

Thats All! The plugin is added in your application.

This highly customizable plugin offers a wide range of properties can be edited based on the requirements of the users. Lets have alook at them.

06Customizing the Geofence using various properties:

1. Set Geofence Mode: To set Geofence mode as a circle or a polygon

2. Show/Hide Default Slider: To show/hide CircleSlider. Defaults to true.

3. Mode Panel: To show/hide modePanel for Circle and Polygon. Defaults to true.

4. Polygon Delete Button Image: To change PolygonDelete button default image

5. Polygon Drag Point To Move DeleteImage: To change polygonDeleteImage while dragging to any point.

6. Circle Fill Color: To set fill color of circle

07Sample App

In the Sample Version 0.5.0, we have added some more functionalities like:

081. Polygon points Check (Anticlockwise or Clockwise)

To see if the polygon points are drawn clockwise or antoclockwise, draw polygon points in sampleApp. We have one button that shows direction in top right corner of custom geofence class.

092. Draw Geofence Shape View

To view your geofence created shape by clicking on Apply button(In customGeofenceVC Class). When the user clicks on Apply button, it will navigate to related list in class(DrawCircleVC).

103. Edit Geofence Shape

In Class (DrawCircle) we are showing one option to edit on click. It will navigate to the related geofence screen with current shape, here, user can modified it.

After clicking Apply button, it will reflect in (DrawCircleVCClass).

114. Delete Geofence Shape

We have provided a delete button in (rawCircleVC Class). Clicking on this, will delete the current shape in the list.

12Our many happy customers:

For any queries and support, please contact:

Email us at apisupport@mappls.com

Support Need support? contact us!

[](https://about.mappls.com/blog/)[](https://github.com/mappls-api)

[](https://twitter.com/mappls)[](https://www.linkedin.com/company/mappls/)[](https://www.youtube.com/channel/UCAWvWsh-dZLLeUU7J9HiOA)

@ Copyright 2022 CE Info Systems Pvt. Ltd. All Rights Reserved.

Service references found

URLs are sanitized during ingestion and may include documentation or legacy hosts. Use them to trace the source, not as a substitute for the current API contract.

https://www.mapmyindia.com/apihttps://developer.apple.com/documentation/xcode/adding-package-dependencies-to-your-app).https://www.mapmyindia.com/api/img/logos1/PhonePe.png)![](https://www.mapmyindia.com/api/img/logos1/Arya-Omnitalk.png)![](https://www.mapmyindia.com/api/img/logos1/delhivery.png)![](https://www.mapmyindia.com/api/img/logos1/hdfc.png)![](https://www.mapmyindia.com/api/img/logos1/TVS.png)![](https://www.mapmyindia.com/api/img/logos1/Paytm.png)![](https://www.mapmyindia.com/api/img/logos1/FastTrackz.png)![](https://www.mapmyindia.com/api/img/logos1/ICICI-Pru.png)![](https://www.mapmyindia.com/api/ihttps://about.mappls.com/api/https://about.mappls.com/contact/https://stackoverflow.com/questions/tagged/mappls-api)[![](https://www.mapmyindia.com/api/img/icons/blog.png)](https://about.mappls.com/blog/)[![](https://www.mapmyindia.com/api/img/icons/gethub.png)](https://github.com/mappls-api)[https://www.npmjs.com/org/mapmyindiahttps://www.facebook.com/Mapplsofficial)[![](https://www.mapmyindia.com/june-newsletter/icon2.png)](https://twitter.com/mappls)[![](https://www.mapmyindia.com/newsletter/2017/aug/llinkedin.png)](https://www.linkedin.com/company/mappls/)[![](https://www.mapmyindia.com/june-newsletter/icon3.png)](https://www.youtube.com/channel/UCAWvWsh-dZLLeUU7_J9HiOAhttps://about.mappls.com/api/terms-&-conditionshttps://www.mappls.com/about/privacy-policyhttps://www.mappls.com/pdf/mappls-sustainability-policy-healt-labour-rules-supplir-sustainability.pdfhttps://www.mappls.com/pdf/Health-Safety-Management.pdfhttps://www.mappls.com/pdf/Environment-Sustainability-Policy-CSR-Report.pdf