Back to project page hellomap3d-android.
The source code is released under:
MIT License
If you think the Android project hellomap3d-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.nutiteq.advancedmap3; /* w w w .j a v a 2 s .com*/ import android.os.Bundle; import com.nutiteq.advancedmap3.datasource.MyMergedRasterTileDataSource; import com.nutiteq.datasources.HTTPTileDataSource; import com.nutiteq.datasources.TileDataSource; import com.nutiteq.layers.RasterTileLayer; public class CustomRasterDataSourceActivity extends MapSampleBaseActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Initialize base and hillshade data sources TileDataSource baseTileDataSource = new HTTPTileDataSource(0, 24, Const.MAPBOX_RASTER_URL); TileDataSource hillshadeTileDataSource = new HTTPTileDataSource(0, 24, Const.HILLSHADE_RASTER_URL); // Create merged raster data source TileDataSource mergedTileDataSource = new MyMergedRasterTileDataSource(baseTileDataSource, hillshadeTileDataSource); // Create raster layer baseLayer = new RasterTileLayer(mergedTileDataSource); mapView.getLayers().add(baseLayer); } }