CocoaPods trunk is moving to be read-only. Read more on the blog, there are 10 months to go.
{"payload":{"allShortcutsEnabled":false,"fileTree":{"docs/v1.0.14":{"items":[{"name":"CHANGELOG","path":"docs/v1.0.14/CHANGELOG","contentType":"directory"},{"name":"InteractiveLayers.md","path":"docs/v1.0.14/InteractiveLayers.md","contentType":"file"},{"name":"MapplsAPICore.md","path":"docs/v1.0.14/MapplsAPICore.md","contentType":"file"},{"name":"MapplsAPIKit.md","path":"docs/v1.0.14/MapplsAPIKit.md","contentType":"file"},{"name":"MapplsAnnotationExtension.md","path":"docs/v1.0.14/MapplsAnnotationExtension.md","contentType":"file"},{"name":"MapplsDirectionUI.md","path":"docs/v1.0.14/MapplsDirectionUI.md","contentType":"file"},{"name":"MapplsDrivingRangePlugin.md","path":"docs/v1.0.14/MapplsDrivingRangePlugin.md","contentType":"file"},{"name":"MapplsFeedbackKit.md","path":"docs/v1.0.14/MapplsFeedbackKit.md","contentType":"file"},{"name":"MapplsFeedbackUIKit.md","path":"docs/v1.0.14/MapplsFeedbackUIKit.md","contentType":"file"},{"name":"MapplsGeoanalytics.md","path":"docs/v1.0.14/MapplsGeoanalytics.md","contentType":"file"},{"name":"MapplsGeofenceUI.md","path":"docs/v1.0.14/MapplsGeofenceUI.md","contentType":"file"},{"name":"MapplsIntouch.md","path":"docs/v1.0.14/MapplsIntouch.md","contentType":"file"},{"name":"MapplsMap.md","path":"docs/v1.0.14/MapplsMap.md","contentType":"file"},{"name":"MapplsMapStyle.md","path":"docs/v1.0.14/MapplsMapStyle.md","contentType":"file"},{"name":"MapplsNearbyUI.md","path":"docs/v1.0.14/MapplsNearbyUI.md","contentType":"file"},{"name":"MapplsPinStrategy.md","path":"docs/v1.0.14/MapplsPinStrategy.md","contentType":"file"},{"name":"MapplsTrafficVectorTileOverlay.md","path":"docs/v1.0.14/MapplsTrafficVectorTileOverlay.md","contentType":"file"},{"name":"MapplsUIWidgets.md","path":"docs/v1.0.14/MapplsUIWidgets.md","contentType":"file"},{"name":"Predictive-Route-APIs.md","path":"docs/v1.0.14/Predictive-Route-APIs.md","contentType":"file"},{"name":"README.md","path":"docs/v1.0.14/README.md","contentType":"file"},{"name":"RasterCatalouge.md","path":"docs/v1.0.14/RasterCatalouge.md","contentType":"file"},{"name":"Regions.md","path":"docs/v1.0.14/Regions.md","contentType":"file"}],"totalCount":22},"docs":{"items":[{"name":"v1.0.0","path":"docs/v1.0.0","contentType":"directory"},{"name":"v1.0.1","path":"docs/v1.0.1","contentType":"directory"},{"name":"v1.0.10","path":"docs/v1.0.10","contentType":"directory"},{"name":"v1.0.11","path":"docs/v1.0.11","contentType":"directory"},{"name":"v1.0.12","path":"docs/v1.0.12","contentType":"directory"},{"name":"v1.0.13","path":"docs/v1.0.13","contentType":"directory"},{"name":"v1.0.14","path":"docs/v1.0.14","contentType":"directory"},{"name":"v1.0.2","path":"docs/v1.0.2","contentType":"directory"},{"name":"v1.0.3","path":"docs/v1.0.3","contentType":"directory"},{"name":"v1.0.4","path":"docs/v1.0.4","contentType":"directory"},{"name":"v1.0.5","path":"docs/v1.0.5","contentType":"directory"},{"name":"v1.0.6","path":"docs/v1.0.6","contentType":"directory"},{"name":"v1.0.7","path":"docs/v1.0.7","contentType":"directory"},{"name":"v1.0.8","path":"docs/v1.0.8","contentType":"directory"},{"name":"v1.0.9","path":"docs/v1.0.9","contentType":"directory"}],"totalCount":15},"":{"items":[{"name":"MapplsSDKDemo.xcodeproj","path":"MapplsSDKDemo.xcodeproj","contentType":"directory"},{"name":"MapplsSDKDemo","path":"MapplsSDKDemo","contentType":"directory"},{"name":"docs","path":"docs","contentType":"directory"},{"name":"LICENSE.md","path":"LICENSE.md","contentType":"file"},{"name":"Mappls.podspec","path":"Mappls.podspec","contentType":"file"},{"name":"Podfile","path":"Podfile","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"Version-History.md","path":"Version-History.md","contentType":"file"}],"totalCount":8}},"fileTreeProcessingTime":5.473671,"foldersToFetch":[],"reducedMotionEnabled":null,"repo":{"id":491393896,"defaultBranch":"main","name":"mappls-ios-sdk","ownerLogin":"mappls-api","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2022-05-12T06:38:36.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/98086022?v=4","public":true,"private":false,"isOrgOwned":true},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"main","listCacheKey":"v0:1688030274.0","canEdit":false,"refType":"branch","currentOid":"b20e647218d1b067f956afb0c93101c1af9d57fe"},"path":"docs/v1.0.14/MapplsMap.md","currentUser":null,"blob":{"rawLines":null,"stylingDirectives":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/mappls-api/mappls-ios-sdk/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null,"repoAlertsPath":"/mappls-api/mappls-ios-sdk/security/dependabot","repoSecurityAndAnalysisPath":"/mappls-api/mappls-ios-sdk/settings/security_analysis","repoOwnerIsOrg":true,"currentUserCanAdminRepo":false},"displayName":"MapplsMap.md","displayUrl":"https://github.com/mappls-api/mappls-ios-sdk/blob/main/docs/v1.0.14/MapplsMap.md?raw=true","headerInfo":{"blobSize":"35.9 KB","deleteInfo":{"deleteTooltip":"You must be signed in to make or propose changes"},"editInfo":{"editTooltip":"You must be signed in to make or propose changes"},"ghDesktopPath":"https://desktop.github.com","gitLfsPath":null,"onBranch":true,"shortPath":"2f1ce3f","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fmappls-api%2Fmappls-ios-sdk%2Fblob%2Fmain%2Fdocs%2Fv1.0.14%2FMapplsMap.md","isCSV":false,"isRichtext":true,"toc":[{"level":1,"text":"Mappls Map SDK","anchor":"mappls-map-sdk","htmlText":"Mappls Map SDK"},{"level":2,"text":"Introduction","anchor":"introduction","htmlText":"Introduction"},{"level":1,"text":"Map SDK","anchor":"map-sdk","htmlText":"Map SDK"},{"level":2,"text":"Getting Started","anchor":"getting-started","htmlText":"Getting Started"},{"level":2,"text":"Version History","anchor":"version-history","htmlText":"Version History"},{"level":2,"text":"Setup your Project","anchor":"setup-your-project","htmlText":"Setup your Project"},{"level":4,"text":"Create a new project in Xcode.","anchor":"create-a-new-project-in-xcode","htmlText":"Create a new project in Xcode."},{"level":2,"text":"Authorization","anchor":"authorization","htmlText":"Authorization"},{"level":3,"text":"MapplsAPICore","anchor":"mapplsapicore","htmlText":"MapplsAPICore"},{"level":3,"text":"MapplsMap","anchor":"mapplsmap","htmlText":"MapplsMap"},{"level":2,"text":"Usage","anchor":"usage","htmlText":"Usage"},{"level":2,"text":"Add a Mappls Map View","anchor":"add-a-mappls-map-view","htmlText":"Add a Mappls Map View"},{"level":4,"text":"By Interface Builder","anchor":"by-interface-builder","htmlText":"By Interface Builder"},{"level":4,"text":"By Programmatically","anchor":"by-programmatically","htmlText":"By Programmatically"},{"level":4,"text":"Objective C","anchor":"objective-c","htmlText":"Objective C"},{"level":4,"text":"Swift","anchor":"swift","htmlText":"Swift"},{"level":2,"text":"Map Interactions","anchor":"map-interactions","htmlText":"Map Interactions"},{"level":3,"text":"Set Zoom Level","anchor":"set-zoom-level","htmlText":"Set Zoom Level"},{"level":4,"text":"Objective C","anchor":"objective-c-1","htmlText":"Objective C"},{"level":4,"text":"Swift","anchor":"swift-1","htmlText":"Swift"},{"level":3,"text":"Set Map Center","anchor":"set-map-center","htmlText":"Set Map Center"},{"level":4,"text":"Objective C","anchor":"objective-c-2","htmlText":"Objective C"},{"level":4,"text":"Swift","anchor":"swift-2","htmlText":"Swift"},{"level":2,"text":"Map Features","anchor":"map-features","htmlText":"Map Features"},{"level":3,"text":"Current Location","anchor":"current-location","htmlText":"Current Location"},{"level":4,"text":"Objective C","anchor":"objective-c-3","htmlText":"Objective C"},{"level":4,"text":"Swift","anchor":"swift-3","htmlText":"Swift"},{"level":3,"text":"Tracking Mode","anchor":"tracking-mode","htmlText":"Tracking Mode"},{"level":4,"text":"Objective C","anchor":"objective-c-4","htmlText":"Objective C"},{"level":4,"text":"Swift","anchor":"swift-4","htmlText":"Swift"},{"level":2,"text":"Map Events","anchor":"map-events","htmlText":"Map Events"},{"level":3,"text":"Map Position Changes Events","anchor":"map-position-changes-events","htmlText":"Map Position Changes Events"},{"level":3,"text":"Loading the Map Events","anchor":"loading-the-map-events","htmlText":"Loading the Map Events"},{"level":4,"text":"-authorizationCompleted:withError:","anchor":"-authorizationcompletedwitherror","htmlText":"-authorizationCompleted:withError:"},{"level":4,"text":"-mapViewWillStartLoadingMap:","anchor":"-mapviewwillstartloadingmap","htmlText":"-mapViewWillStartLoadingMap:"},{"level":4,"text":"-mapViewDidFinishLoadingMap:","anchor":"-mapviewdidfinishloadingmap","htmlText":"-mapViewDidFinishLoadingMap:"},{"level":4,"text":"-mapViewDidFailLoadingMap:withError:","anchor":"-mapviewdidfailloadingmapwitherror","htmlText":"-mapViewDidFailLoadingMap:withError:"},{"level":4,"text":"-mapViewWillStartRenderingFrame:","anchor":"-mapviewwillstartrenderingframe","htmlText":"-mapViewWillStartRenderingFrame:"},{"level":4,"text":"-mapViewDidFinishRenderingFrame:fullyRendered:","anchor":"-mapviewdidfinishrenderingframefullyrendered","htmlText":"-mapViewDidFinishRenderingFrame:fullyRendered:"},{"level":4,"text":"-mapViewDidBecomeIdle:","anchor":"-mapviewdidbecomeidle","htmlText":"-mapViewDidBecomeIdle:"},{"level":4,"text":"-mapView:didFinishLoadingStyle:","anchor":"-mapviewdidfinishloadingstyle","htmlText":"-mapView:didFinishLoadingStyle:"},{"level":4,"text":"-mapView:didTapPlaceWithMapplsPin:","anchor":"-mapviewdidtapplacewithmapplspin","htmlText":"-mapView:didTapPlaceWithMapplsPin:"},{"level":3,"text":"SDK Error Codes","anchor":"sdk-error-codes","htmlText":"SDK Error Codes"},{"level":3,"text":"Tracking User Location Events","anchor":"tracking-user-location-events","htmlText":"Tracking User Location Events"},{"level":3,"text":"Appearance of Annotations Events","anchor":"appearance-of-annotations-events","htmlText":"Appearance of Annotations Events"},{"level":3,"text":"Annotation Views Events","anchor":"annotation-views-events","htmlText":"Annotation Views Events"},{"level":3,"text":"Selecting Annotations Events","anchor":"selecting-annotations-events","htmlText":"Selecting Annotations Events"},{"level":3,"text":"Callout Views Events","anchor":"callout-views-events","htmlText":"Callout Views Events"},{"level":2,"text":"Map Tap Events","anchor":"map-tap-events","htmlText":"Map Tap Events"},{"level":3,"text":"Single Tap Gesture","anchor":"single-tap-gesture","htmlText":"Single Tap Gesture"},{"level":4,"text":"Objective C","anchor":"objective-c-5","htmlText":"Objective C"},{"level":4,"text":"Swift","anchor":"swift-5","htmlText":"Swift"},{"level":3,"text":"Long Tap Gesture","anchor":"long-tap-gesture","htmlText":"Long Tap Gesture"},{"level":4,"text":"Objective C","anchor":"objective-c-6","htmlText":"Objective C"},{"level":4,"text":"Swift","anchor":"swift-6","htmlText":"Swift"},{"level":2,"text":"Map Overlays","anchor":"map-overlays","htmlText":"Map Overlays"},{"level":3,"text":"Add marker","anchor":"add-marker","htmlText":"Add marker"},{"level":4,"text":"Objective C","anchor":"objective-c-7","htmlText":"Objective C"},{"level":4,"text":"Swift","anchor":"swift-7","htmlText":"Swift"},{"level":3,"text":"Remove marker","anchor":"remove-marker","htmlText":"Remove marker"},{"level":4,"text":"Objective C","anchor":"objective-c-8","htmlText":"Objective C"},{"level":4,"text":"Swift","anchor":"swift-8","htmlText":"Swift"},{"level":3,"text":"Custom Marker (Change Default Marker Icon)","anchor":"custom-marker-change-default-marker-icon","htmlText":"Custom Marker (Change Default Marker Icon)"},{"level":3,"text":"Show Info Window (Callout)","anchor":"show-info-window-callout","htmlText":"Show Info Window (Callout)"},{"level":3,"text":"Custom Info Window(#Custom-Info-Window)","anchor":"custom-info-windowcustom-info-window","htmlText":"Custom Info Window(#Custom-Info-Window)"},{"level":2,"text":"Polylines","anchor":"polylines","htmlText":"Polylines"},{"level":3,"text":"Add a Polyline","anchor":"add-a-polyline","htmlText":"Add a Polyline"},{"level":4,"text":"Objective C","anchor":"objective-c-9","htmlText":"Objective C"},{"level":4,"text":"Swift","anchor":"swift-9","htmlText":"Swift"},{"level":3,"text":"Remove a Polyline","anchor":"remove-a-polyline","htmlText":"Remove a Polyline"},{"level":4,"text":"Objective C","anchor":"objective-c-10","htmlText":"Objective C"},{"level":4,"text":"Swift","anchor":"swift-10","htmlText":"Swift"},{"level":3,"text":"Polyline Width","anchor":"polyline-width","htmlText":"Polyline Width"},{"level":4,"text":"Objective C","anchor":"objective-c-11","htmlText":"Objective C"},{"level":4,"text":"Swift","anchor":"swift-11","htmlText":"Swift"},{"level":2,"text":"Polygons","anchor":"polygons","htmlText":"Polygons"},{"level":3,"text":"Add a Polygon","anchor":"add-a-polygon","htmlText":"Add a Polygon"},{"level":4,"text":"Objective C","anchor":"objective-c-12","htmlText":"Objective C"},{"level":4,"text":"Swift","anchor":"swift-12","htmlText":"Swift"},{"level":3,"text":"Remove a Polygon","anchor":"remove-a-polygon","htmlText":"Remove a Polygon"},{"level":4,"text":"Objective C","anchor":"objective-c-13","htmlText":"Objective C"},{"level":4,"text":"Swift","anchor":"swift-13","htmlText":"Swift"},{"level":2,"text":"Map Camera","anchor":"map-camera","htmlText":"Map Camera"},{"level":3,"text":"Fit Map Camera","anchor":"fit-map-camera","htmlText":"Fit Map Camera"},{"level":4,"text":"Swift","anchor":"swift-14","htmlText":"Swift"},{"level":3,"text":"Create Camera For Shape","anchor":"create-camera-for-shape","htmlText":"Create Camera For Shape"},{"level":4,"text":"Objective C","anchor":"objective-c-14","htmlText":"Objective C"},{"level":4,"text":"Swift","anchor":"swift-15","htmlText":"Swift"},{"level":2,"text":"Miscellaneous","anchor":"miscellaneous","htmlText":"Miscellaneous"},{"level":3,"text":"Shape Stroke Color","anchor":"shape-stroke-color","htmlText":"Shape Stroke Color"},{"level":4,"text":"Objective C","anchor":"objective-c-15","htmlText":"Objective C"},{"level":4,"text":"Swift","anchor":"swift-16","htmlText":"Swift"},{"level":3,"text":"Shape Fill Color","anchor":"shape-fill-color","htmlText":"Shape Fill Color"},{"level":4,"text":"Objective C","anchor":"objective-c-16","htmlText":"Objective C"},{"level":4,"text":"Swift","anchor":"swift-17","htmlText":"Swift"},{"level":3,"text":"Shape Opacity","anchor":"shape-opacity","htmlText":"Shape Opacity"},{"level":4,"text":"Objective C","anchor":"objective-c-17","htmlText":"Objective C"},{"level":4,"text":"Swift","anchor":"swift-18","htmlText":"Swift"},{"level":3,"text":"Safety Status Strip","anchor":"safety-status-strip","htmlText":"Safety Status Strip"},{"level":3,"text":"Cluster Based Authentication","anchor":"cluster-based-authentication","htmlText":"Cluster Based Authentication"},{"level":4,"text":"Set Cluster Device","anchor":"set-cluster-device","htmlText":"Set Cluster Device"},{"level":4,"text":"Objective C","anchor":"objective-c-18","htmlText":"Objective C"},{"level":4,"text":"Swift","anchor":"swift-19","htmlText":"Swift"},{"level":2,"text":"SwiftUI","anchor":"swiftui","htmlText":"SwiftUI"},{"level":3,"text":"Create Map View","anchor":"create-map-view","htmlText":"Create Map View"},{"level":3,"text":"Respond To Map Events","anchor":"respond-to-map-events","htmlText":"Respond To Map Events"},{"level":2,"text":"Our many happy customers:","anchor":"our-many-happy-customers","htmlText":"Our many happy customers:"}],"lineInfo":{"truncatedLoc":"1008","truncatedSloc":"726"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplateHelpUrl":"https://docs.github.com/articles/about-issue-and-pull-request-templates","issueTemplate":null,"discussionTemplate":null,"language":"Markdown","languageID":222,"large":false,"loggedIn":false,"newDiscussionPath":"/mappls-api/mappls-ios-sdk/discussions/new","newIssuePath":"/mappls-api/mappls-ios-sdk/issues/new","planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/mappls-api/mappls-ios-sdk/blob/main/docs/v1.0.14/MapplsMap.md","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","dismissStackNoticePath":"/settings/dismiss-notice/publish_stack_from_file","releasePath":"/mappls-api/mappls-ios-sdk/releases/new?marketplace=true","showPublishActionBanner":false,"showPublishStackBanner":false},"renderImageOrRaw":false,"richText":" This repository contains a sample project of an app built for iOS, which is based on Mappls's Map and other differennt SDKs. Welcome to the Mappls iOS SDK Explore the largest directory of APIs & SDKs for maps, routes and search. Mappls's APIs, SDKs, and live updating map data available for 238 nations give developers tools to build better mapping, navigation, and search experiences across platforms. In this section you will find documentation for :- Mappls's Map SDK for iOS lets you easily add Mappls Map and web services to your own iOS app. Mappls's Map SDK for iOS supports iOS SDK 9.0 and above and Xcode 10.1 or later. You can have a look at the map and features you will get in your own app by using the Mappls's Maps app for iOS. The SDK handles map tiles download and their display along with a bunch of controls and native gestures. ¨C99C It is required to set Mappls keys to use any MAPPL's SDK. Please refer to documenatation here. A class ¨C22C can be used to authorize the Map. It is recommended to call this method before initilizing ¨C23C. Swift Objective - C Note: Although authorization of Map is done internally on initilizing ¨C24C, ¨C105C Map View on view controller can be added either using interface builder or programmatically. In a storyboard, add a view to your View Controller. In the Identity inspector, change its class to ¨C25C. To add map on view Controller create an instance of ¨C26C. and add this to view of ¨C27C. ¨C109C Also to handle app transport security exception add ¨C28C in Info.plist of your project. As follows: Set zoom to 4 for country level display and 18 for house number display. To set Center of map reference code is below: To show user's current location on map, use property ¨C30C and set its value to true. To move map with user location change use property ¨C31C. Its an enum property of type ¨C32C. You can set any value from following: The Map object should implement the methods of the ¨C36C protocol corresponding to the events you wish it to receive. This delegate can also be used to detect map overlays selection. Delegate handles gesture events, tap on annotation (marker) and map center coordinates. This delegate function will be called whenever authorization process of map completed. It gives either sucess or error ¨C121C ¨C123C Tells the delegate that the map view will begin to load. This method is called whenever the map view starts loading, including when a new style has been set and the map must reload. ¨C125C ¨C127C Tells the delegate that the map view has finished loading. This method is called whenever the map view finishes loading, either after the initial load or after a style change has forced a reload. ¨C129C ¨C131C Tells the delegate that the map view was unable to load data needed for displaying the map. This method may be called for a variety of reasons, including a network connection failure or a failure to fetch the style from the server. You can use the given error message to notify the user that map data is unavailable. ¨C133C ¨C135C Tells the delegate that the map view is about to redraw. This method is called any time the map view needs to redraw due to a change in the viewpoint or style property transition. This method may be called very frequently. Therefore, your implementation of this method should be as lightweight as possible to avoid affecting performance. ¨C137C ¨C139C Tells the delegate that the map view has just redrawn. This method is called any time the map view needs to redraw due to a change in the viewpoint or style property transition. This method may be called very frequently. Therefore, your implementation of this method should be as lightweight as possible to avoid affecting performance. ¨C141C ¨C143C Tells the delegate that the map view is entering an idle state, and no more drawing will be necessary until new data is loaded or there is some interaction with the map. ¨C145C ¨C147C Tells the delegate that the map has just finished loading a style. This method is called during the initialization of the map view and after any subsequent loading of a new style. ¨C149C ¨C151C This delegate function gives ¨C38C. This method is called on tap on map and gives either string value (Mappls Pin) or nil value (if no Mappls Pin found). ¨C153C ¨C155C Map will fail with following error codes To capture single tap on map events add a tap gesture to instance of ¨C44C. Tapped CGPoint on map can be converted to CLLocationCoordinate object. Also if there is any mareker in tapped area that can also be retrieved. Code for reference to explain above features is below: To capture long press on map events add a long press gesture to instance of ¨C45C. To show an annotation on map create an instance of ¨C46C and add that object to instance of ¨C47C using method ¨C48C. After creating instance of ¨C49C, set coordinate and title property values. To change image for default marker you can use delegate methods of protocol or you can override image of marker by using below method of delegate: To enable info window on tap of marker return true from below delegate method: To change default callout view of annotation use delegate function of ¨C53C protocol and return custom view of callout from that function. To create custom callout view create a class inherited from ¨C54C and ¨C55C. Override draw function of ¨C56C to design your own callout view. To show a polyline on map create an instance of ¨C57C and add that object to instance of ¨C58C using method ¨C59C. To create instance of ¨C60C an array of ¨C61C will be required so first create an array of ¨C62C. Line width in points can be set when rendering the outline of a polyline annotation. It cab be achieve by using delegate method ¨C63C. By default, the polyline is outlined with a line 3.0 points wide. To show a polygon on map create an instance of ¨C64C and add that object to instance of ¨C65C using method ¨C66C. To create instance of ¨C67C an array of ¨C68C will be required so first create an array of ¨C69C. ¨C70C function sets the visible region so that the map displays the specified annotations. A camera object that best fits the given shape with some additional padding on each side while looking in the specified direction can be retrieved using function ¨C71C of ¨C72C. After creating a camera object using above function it can be set to fit map visible area. Color of ¨C73C and stroke color of ¨C74C can be changed by using delegate method ¨C75C. The default stroke color is the map view’s tint color. Fill Color of ¨C76C can be changed by using delegate method ¨C77C. The default fill color is the map view’s tint color. To change opacity of a shape i.e polyline or polygon, delegate method ¨C78C can be used. It sets the opacity of an entire shape, inclusive of its stroke and fill. A safety status strip can be show on map based on user's location. COVID-19 status will be shown on map currently, It will show whether user's location lies in a containment zone or not and conaintment zone info like Containment Zone Name, District etc. For more info about how to use go to Safety Strip. Map SDK can be configured such that it can work only for specified unique identifier of a device and will show an error accordingly. Cluster Identifier can be set and retrieve using singelton class ¨C79C which is part of Map SDK's dependency ¨C80C. Below is code for reference to set and get cluster identifier. To add map annoations at design time add an ¨C85C property in ¨C86C struct as below: Use below code to add marker at design time by setting annotations property. In order to to respond to map events, for example perform an action after MapView initialization finished. In SwiftUI, a Coordinator can be used with delegates, data sources, and user events. The UIViewRepresentable protocol defines makeCoordinator() method which creates coordinator instance. Add the following code to declare coordinator class: And then add the following method to the SwiftUI view: And finally set the reference coordinator on Mappls map view. For any queries and support, please contact: Email us at [email protected] Mappls Map SDK
\nIntroduction
\n\n
\nMap SDK
\nMapplsMap is a SDK to display map, mark locations, enhance with custom data and even draw routes or other shapes on top.Getting Started
\nVersion History
\n\n\n
\n\n \n\n\nVersion \nDated \nDescription \n\n \n \n5.13.907 Jun, 2023 \nBug fixes & Improvements. \n\n \n \n5.13.830 May, 2023 \nDomain of APIs changed. \n\n \n \n5.13.702 May, 2023 \nPerformance improvements and optimization. \n\n \n \n5.13.620 Mar, 2023 \nPerformance improvements and optimization. \n\n \n \n5.13.531 Jan, 2023 \nFixed ¨C6C not getting called and added a class ¨C7C which can be used to initialize SDK using the method ¨C8C \n\n \n¨C9C \n13 Oct, 2022 \nGive ¨C10C in delegate function ¨C11C on map tap. Performance improvements and optimization. \n\n \n¨C12C \n08 Sep, 2022 \nIssue Resolved: Tiles not loading on CarPlay when phone is in locked state. \n\n \n¨C13C \n18 Aug, 2022 \nBug Resolved: Session not resetting. \n\n \n¨C14C \n20 Jul, 2022 \nBug Resolved: Duplicate Bundle Id. \n\n \n\n¨C15C \n11 June, 2022 \nInitial Mappls Map Release. \nSetup your Project
\nCreate a new project in Xcode.
\n\n¨C97C\n¨C98C\n
\n\n¨C100C\n¨C101C\n
\n\n¨C102C\n\nAuthorization
\nMapplsAPICore
\nMapplsMap
\nUsage
\nAdd a Mappls Map View
\nBy Interface Builder
\n
\n¨C106C Map style url need to be set at the time of load mapBy Programmatically
\nObjective C
\nSwift
\n¨C29C
Map Interactions
\nSet Zoom Level
\nObjective C
\nSwift
\nSet Map Center
\nObjective C
\nSwift
\nMap Features
\nCurrent Location
\nObjective C
\nSwift
\nTracking Mode
\n\n¨C116C\n¨C117C\n¨C118C\n
\nObjective C
\nSwift
\nMap Events
\nMap Position Changes Events
\n¨C37C
Loading the Map Events
\n-authorizationCompleted:withError:
\n-mapViewWillStartLoadingMap:
\n-mapViewDidFinishLoadingMap:
\n-mapViewDidFailLoadingMap:withError:
\n-mapViewWillStartRenderingFrame:
\n-mapViewDidFinishRenderingFrame:fullyRendered:
\n-mapViewDidBecomeIdle:
\n-mapView:didFinishLoadingStyle:
\n-mapView:didTapPlaceWithMapplsPin:
\nSDK Error Codes
\n\n¨C157C\n¨C158C\n¨C159C\n¨C160C\n¨C161C\n¨C162C\n¨C163C\n
\nTracking User Location Events
\n¨C39C
Appearance of Annotations Events
\n¨C40C
Annotation Views Events
\n¨C41C
Selecting Annotations Events
\n¨C42C
Callout Views Events
\n¨C43C
Map Tap Events
\nSingle Tap Gesture
\nObjective C
\nSwift
\nLong Tap Gesture
\nObjective C
\nSwift
\nMap Overlays
\nAdd marker
\nObjective C
\nSwift
\nRemove marker
\nObjective C
\nSwift
\nCustom Marker (Change Default Marker Icon)
\n
\n¨C50C.\nEither you can override whole view of marker by using below method of delegate:¨C51C
¨C52C
Show Info Window (Callout)
\nCustom Info Window(#Custom-Info-Window)
\nPolylines
\nAdd a Polyline
\nObjective C
\nSwift
\nRemove a Polyline
\nObjective C
\nSwift
\nPolyline Width
\nObjective C
\nSwift
\nPolygons
\nAdd a Polygon
\nObjective C
\nSwift
\nRemove a Polygon
\nObjective C
\nSwift
\nMap Camera
\nFit Map Camera
\nSwift
\nCreate Camera For Shape
\nObjective C
\nSwift
\nMiscellaneous
\nShape Stroke Color
\nObjective C
\nSwift
\nShape Fill Color
\nObjective C
\nSwift
\nShape Opacity
\nObjective C
\nSwift
\nSafety Status Strip
\nCluster Based Authentication
\nSet Cluster Device
\nObjective C
\nSwift
\nSwiftUI
\nCreate Map View
\n\n¨C195C\n¨C196C\n¨C197C\n¨C198C\n
\n¨C87C
¨C88C
Respond To Map Events
\n¨C89C
¨C90C
¨C91C
Our many happy customers:
\n\n
\n\nSupport\nNeed support? contact us!