Skip to content

Advanced Layers extensions for Nutiteq Maps SDK 2.x

License

Notifications You must be signed in to change notification settings

nutiteq/advancedlayers

Repository files navigation

About

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

Nutiteq SDK version compatibility

AdvancedLayers works only with Nutiteq SDK 2.x version branch only, and latest version from it is required. It is NOT compatible with the newest Nutiteq SDK 3.x version. . If you need some feature from AdvancedLayers into your app with SDK 3.0, then please post a specific request to nutiteq-dev public group (https://groups.google.com/forum/#!forum/nutiteq-dev ).

Technical explanation is that Nutiteq SDK 3.0 is in cross-platform C++, so porting of services and layers for it is quite different from Java-level Android-only approach here. The good news is that most requested Advanced Layers features are already part of Nutiteq SDK 3 package (e.g. OGR vector datasource).

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 several ways to do it.

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.4.2"
    compile "com.nutiteq.advancedlayers:AdvancedLayers:1.0-SNAPSHOT"
}

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>

Manual jar file

  1. Download Nutiteq code:
  1. Save them to your project libs/ folder.

  2. 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:

About

Advanced Layers extensions for Nutiteq Maps SDK 2.x

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •