Update MapVectorLayer.java

This commit is contained in:
vshcherb 2015-02-10 17:56:24 +01:00
parent 05b640b0f5
commit 4a4d28fa00

View file

@ -109,7 +109,7 @@ public class MapVectorLayer extends BaseMapLayer {
// TileSourceProxyProvider prov = new TileSourceProxyProvider(view.getApplication(), tileSource);
// mapRenderer.setMapLayerProvider(-1, prov.instantiateProxy(true));
// prov.swigReleaseOwnership();
mapView.setMapLayerProvider(-1, net.osmand.core.jni.OnlineTileSources.getBuiltIn().createProviderFor("Mapnik (OsmAnd)"));
mapRenderer.setMapLayerProvider(-1, net.osmand.core.jni.OnlineTileSources.getBuiltIn().createProviderFor("Mapnik (OsmAnd)"));
} else {
mapRenderer.resetMapLayerProvider(-1);
}
@ -127,7 +127,7 @@ public class MapVectorLayer extends BaseMapLayer {
//TileSourceProxyProvider prov = new TileSourceProxyProvider(view.getApplication(), tileSource);
//mapRenderer.setMapLayerProvider(1, prov.instantiateProxy(true));
//prov.swigReleaseOwnership();
mapView.setMapLayerProvider(1, net.osmand.core.jni.OnlineTileSources.getBuiltIn().createProviderFor("Mapnik (OsmAnd)"));
mapRenderer.setMapLayerProvider(1, net.osmand.core.jni.OnlineTileSources.getBuiltIn().createProviderFor("Mapnik (OsmAnd)"));
} else {
mapRenderer.resetMapLayerProvider(1);
}