View on GitHub

Advancedlayers

Advanced Layers for Nutiteq Maps SDK

Download this project as a .zip file Download this project as a tar.gz file

About

This is a set of free and open source map layer and data source implementations in top of Nutiteq Maps SDK, 2.x version http://www.nutiteq.com. You can use it as a ready-made library, or modify sources according to your needs. License: MIT

NB! This works only with Nutiteq SDK 2.x version branch. It is NOT compatible with the newest Nutiteq SDK 3.x version.

Getting started

Usage in your app

To use the library in your app you need to include AdvancedLayers and external dependencies to your project. Depending on your development environment and IDE there are three different ways to do it:

a) In Android Studio / Gradle

Into your build.gradle

// Make sure you have nutiteq snapshot repository:

allprojects {
    repositories {
        mavenCentral()
        maven {
            url "http://repository-nutiteq.forge.cloudbees.com/release/"
                }
        maven {
            url "http://repository-nutiteq.forge.cloudbees.com/snapshot/"
            }

    }
}


// add advancedlayers dependency:
dependencies {
    compile "com.nutiteq:nutiteq-3d-sdk:2.3.1"
    compile "com.nutiteq.advancedlayers:AdvancedLayers:1.0-SNAPSHOT"
}

b) Maven (Eclipse)

Add to your pom.xml (full sample: https://github.com/nutiteq/hellomap3d/blob/master/AdvancedMap3D/pom.xml):

<repositories>
    <repository>
        <snapshots>
            <enabled>true</enabled>
            <updatePolicy>always</updatePolicy>
        </snapshots>
        <id>cloudbees-nutiteq-snapshot</id>
        <name>Nutiteq SDK snapshot repository</name>
        <url>http://repository-nutiteq.forge.cloudbees.com/snapshot/</url>
    </repository>
    <repository>
        <id>cloudbees-nutiteq-release</id>
        <name>Nutiteq SDK release repository</name>
        <url>http://repository-nutiteq.forge.cloudbees.com/release/</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>com.google.android</groupId>
        <artifactId>android</artifactId>
        <version>${platform.version}</version>
        <scope>provided</scope>
    </dependency>

    <!-- Advanced layers and Nutiteq SDK -->
    <dependency>
        <groupId>com.nutiteq.advancedlayers</groupId>
        <artifactId>AdvancedLayers</artifactId>
        <version>1.0-SNAPSHOT</version>
        <scope>compile</scope>
    </dependency>

    <!-- Native (NDK) libraries built by Nutiteq -->
    <dependency>
        <groupId>com.nutiteq.advancedlayers</groupId>
        <artifactId>ogrjni</artifactId>
        <version>snapshot</version>
        <classifier>armeabi</classifier>
        <type>so</type>
    </dependency>

    <dependency>
        <groupId>com.nutiteq.advancedlayers</groupId>
        <artifactId>gdalconstjni</artifactId>
        <version>snapshot</version>
        <classifier>armeabi</classifier>
        <type>so</type>
    </dependency>

    <dependency>
        <groupId>com.nutiteq.advancedlayers</groupId>
        <artifactId>gdaljni</artifactId>
        <version>snapshot</version>
        <classifier>armeabi</classifier>
        <type>so</type>
    </dependency>

    <dependency>
        <groupId>com.nutiteq.advancedlayers</groupId>
        <artifactId>jsqlite</artifactId>
        <version>snapshot</version>
        <classifier>armeabi</classifier>
        <type>so</type>
    </dependency>

    <dependency>
        <groupId>com.nutiteq.advancedlayers</groupId>
        <artifactId>osrjni</artifactId>
        <version>snapshot</version>
        <classifier>armeabi</classifier>
        <type>so</type>
    </dependency>

    <dependency>
        <groupId>com.nutiteq.advancedlayers</groupId>
        <artifactId>proj</artifactId>
        <version>snapshot</version>
        <classifier>armeabi</classifier>
        <type>so</type>
    </dependency>

c) Manual jar file

  1. Download Nutiteq code:
  2. Save them to your project libs/ folder.
  3. For other dependencies:

Test datasets

Depending on layers you may find useful to copy following files to the sdcard of your device, and modify paths in the code accordingly: