Get Started

Just follow steps below to integrate GLMap framework into your application.

Functions and structure

To keep applications lightweight we divided framework to 3 major components: GLMap, GLRoute, GLSearch. No need to include navigation or search into your project if you don't use it.

On iOS to make application fast each component published as dynamic framework and as static library. Names of static pods is GLMapStatic, GLRouteStatic, GLSearchStatic. When linked with static library, linker is able to remove all unused code and optimize application even further.

Swift modules and Android native libraries is always compiled as dynamic libraries.

Some sytax sugar for Swift is added as GLMapSwift extension. It is open source and available on github: https://github.com/GLMap/GLMapSwiftarrow-up-right

iOS

Cocoapods

  • Run pod repo update to make CocoaPods aware of the latest available GLMap versions.

  • Add GLMap into your Podfile

Podfile
platform :ios, '8.0'
use_frameworks!

target 'TargetName' do
    pod 'GLMap'
    pod 'GLRoute' # if you need navgation
    pod 'GLSearch' # if you need search 
end
  • Run pod install in project directory

  • Use the .xcworkspace file generated by CocoaPods to work on your project.

Carthage

All components is published in Carthage as binary-only frameworks.

To add it into your project just add binary dependency into your Cartfile

Unfortunately there is no way to add resource dependencies into Carhage, and you'll need to add them manually into your project.

GLMap requires world map and default style to work correctly. Download links to GLMapWorldMap and GLMapDefaultStyle you could find inside .json files and in user cabinetarrow-up-right.

For convenience we published all releases info json files:

Use framework from Objective-C

Initialize GLMapManager inside AppDelegate. And set your API key from user cabinetarrow-up-right.

Then add GLMapView into view hierarchy from code or using Interface Builder.

Now you're ready to write your app with GLMap framework. Consider our Demo App as source of examples and code snippets.

Objective-C Demo Apparrow-up-right / iOS API Documentationarrow-up-right

Use framework from Swift

Initialize GLMapManager inside AppDelegate. And set your API key from user cabinetarrow-up-right.

Then add GLMapView into view hierarchy from code or using Interface Builder.

Now you're ready to write your app with GLMap framework. Consider our Demo App as source of examples and code snippets.

Swift Demo Apparrow-up-right / iOS API Documentationarrow-up-right / Swift Extenstion API Documentationarrow-up-right

Android

Maven

Add repository and dependency into module level build.gradle file.

Use framework from Java

Add GLMapView into layout file

Initialize GLMapManager inside Application subclass. And set your API key from user cabinetarrow-up-right.

Then configure GLMapView.

Now you're ready to write your app with GLMap framework. Consider our Demo App as source of examples and code snippets.

Android Demo Apparrow-up-right / Android API Documentationarrow-up-right

Last updated