Please refer to theGithub Sample Appfor getting better clarity on same.
xcframeworks
in your iOS project. Make sure you embed
all the frameworks in General > Frameworks, Libraries and Embedded Content.
Next, You need to add Location Permission Authorization in your Info.plist file,Load the map using the service instance. Ideally this method should be called in viewdidLoad() method of viewcontroller
To render a map, you need to initialise OlaMapService first and then call loadMap(_:)
Parameter name | Description |
---|---|
apikey | APIKey from Ola Maps Dashboard |
tileURL | Refer Tiles API in API Reference |
projectId | Refer Dashboard for Project Identifier |
userId | Custom UserID which is identified by Organization |
You can control the Map POV area and bounds area which you want to show.
This will enable rotation selection capability on Map, you can rotate the map by using two fingers.
Then, You will set of extra gesture delegate callback which comes with OlaMapServiceDelegate
You can draw a Info Window which is a tool tip kind of view on Map.
And, to delete Info Window you can use
You can control the Map Visible Bounds when you have array of coordinates.
We have created CustomAnnotationView Type which is inherited from OlaAnnotation.
You will need AnnotationId to delete any annotation from the map.
You will need an array of OlaCoordinates to draw a solid polyline
We have a capability to draw a geometrical shape like Polygon or Circle.
You need to call drawPolgon(_:) to draw Polygon Geometry
You need to use deletePolygon(_:) method
For Circle, you can use `drawCircle(_:)` method.
Along with Solid Polyline, we have the capability to draw Segmented Polyline. This data you will get from Directions API. Check Platform Documentation.
We have a capability to cluster markers under a single labled marker. In simple words, if you've large marker rendered in a single area, then map will automatically cluster them in a single marker with a label on in.