example: add MapScaleBar

This commit is contained in:
Hannes Janetzek 2014-12-04 00:43:53 +01:00
parent d32b13fed4
commit ecc26caec0

View File

@ -15,6 +15,7 @@
* this program. If not, see <http://www.gnu.org/licenses/>. * this program. If not, see <http://www.gnu.org/licenses/>.
*/package org.oscim.android.test; */package org.oscim.android.test;
import org.oscim.android.MapScaleBar;
import org.oscim.core.MapPosition; import org.oscim.core.MapPosition;
import org.oscim.core.MercatorProjection; import org.oscim.core.MercatorProjection;
import org.oscim.layers.tile.buildings.BuildingLayer; import org.oscim.layers.tile.buildings.BuildingLayer;
@ -37,6 +38,7 @@ public class SimpleMapActivity extends BaseMapActivity {
Layers layers = mMap.layers(); Layers layers = mMap.layers();
layers.add(new BuildingLayer(mMap, mBaseLayer)); layers.add(new BuildingLayer(mMap, mBaseLayer));
layers.add(new LabelLayer(mMap, mBaseLayer)); layers.add(new LabelLayer(mMap, mBaseLayer));
layers.add(new MapScaleBar(mMapView));
m.setTheme(VtmThemes.DEFAULT); m.setTheme(VtmThemes.DEFAULT);
} }