Hello Map
In this example you will learn how to render an interactive map centered on a desired location. The map is fully 3D, supporting pan, pinch-zoom, rotate and tilt.
Map View
Map Display and Cleanup
The following code outlines the main activity, which displays the map and handles resource clean-up.
The MainActivity
overrides the onCreate
function which instantiates and loads the map: setContentView(R.layout.activity_main)
as defined in res/layout/activity_main.xml
.
The com.magiclane.sdk.core.GemSurfaceView
is a custom View
that displays the map, part of Magic Lane's SDK.