Skip to content
Map4D SDK for Android
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples/android-sdk-examples
sdk
simplemap
.gitignore
LICENSE
README.md

README.md

Map4D SDK

Map4D SDK for Android, written in C++, Java.

CocoaPods

Installation

Use Gradle

dependencies {
    implementation 'vn.map4d:map4dsdk:1.1.0'
}

Use Maven

<dependency>
	<groupId>vn.map4d</groupId>
	<artifactId>map4dsdk</artifactId>
	<version>1.1.0</version>
	<type>pom</type>
</dependency>

Using

  1. Provide access key
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="vn.map4d.simplemap">
    <application
        android:theme="@style/AppTheme">

        <meta-data
            android:name="vn.map4d.map4dsdk.ACCESS_KEY"
            android:value="98fd21346d83bee24dc734231f7609c9"/>

    </application>

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
</manifest>
  1. Create layout
<vn.map4d.map4dsdk.maps.MFMapView
        android:id="@+id/mapView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        />
  1. Working with map view (kotlin)
import vn.map4d.map4dsdk.maps.Map4D
import vn.map4d.map4dsdk.maps.OnMapReadyCallback

class MainActivity : AppCompatActivity(), OnMapReadyCallback {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        mapView.getMapAsync(this)
    }

    override fun onMapReady(map4D: Map4D?) {
        map4D?.enable3DMode(true)
        //TODO
    }
}

License

Copyright (C) 2016 IOT Link Ltd. All Rights Reserved.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.