Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
9ce7fb50f3
3 changed files with 11 additions and 11 deletions
|
@ -309,6 +309,9 @@ public class OsmandRegions {
|
|||
String prefix = getPrefix(o).toLowerCase();
|
||||
String locPrefix = downloadNamesToLocaleNames.get(prefix);
|
||||
String locName = downloadNamesToLocaleNames.get(downloadName);
|
||||
if(locPrefix == null || locName == null) {
|
||||
throw new IllegalStateException("There is no prefix registered for " + downloadName + " (" + prefix + ") ");
|
||||
}
|
||||
downloadNamesToLocaleNames.put(downloadName, locPrefix + " " + locName);
|
||||
String index = downloadNamesToLowercaseIndex.get(downloadName);
|
||||
downloadNamesToLowercaseIndex.put(downloadName, index + " " + prefix + " " + locPrefix.toLowerCase());
|
||||
|
|
|
@ -19,9 +19,6 @@ import net.osmand.util.Algorithms;
|
|||
public class EntityParser {
|
||||
|
||||
public static void parseMapObject(MapObject mo, Entity e) {
|
||||
parseMapObject(mo, e, e.getId());
|
||||
}
|
||||
public static void parseMapObject(MapObject mo, Entity e, long lid) {
|
||||
mo.setId(e.getId());
|
||||
if(mo instanceof Amenity) {
|
||||
mo.setId((e.getId() << 1) + ((e instanceof Node) ? 0 : 1));
|
||||
|
|
|
@ -106,10 +106,10 @@ public class MapVectorLayer extends BaseMapLayer {
|
|||
cachedUnderlay = st.MAP_UNDERLAY.get();
|
||||
ITileSource tileSource = st.getTileSourceByName(cachedUnderlay, false);
|
||||
if (tileSource != null) {
|
||||
// TileSourceProxyProvider prov = new TileSourceProxyProvider(view.getApplication(), tileSource);
|
||||
// mapRenderer.setMapLayerProvider(-1, prov.instantiateProxy(true));
|
||||
// prov.swigReleaseOwnership();
|
||||
mapRenderer.setMapLayerProvider(-1, net.osmand.core.jni.OnlineTileSources.getBuiltIn().createProviderFor("Mapnik (OsmAnd)"));
|
||||
TileSourceProxyProvider prov = new TileSourceProxyProvider(view.getApplication(), tileSource);
|
||||
mapRenderer.setMapLayerProvider(-1, prov.instantiateProxy(true));
|
||||
prov.swigReleaseOwnership();
|
||||
// mapRenderer.setMapLayerProvider(-1, net.osmand.core.jni.OnlineTileSources.getBuiltIn().createProviderFor("Mapnik (OsmAnd)"));
|
||||
} else {
|
||||
mapRenderer.resetMapLayerProvider(-1);
|
||||
}
|
||||
|
@ -124,10 +124,10 @@ public class MapVectorLayer extends BaseMapLayer {
|
|||
cachedOverlay = st.MAP_OVERLAY.get();
|
||||
ITileSource tileSource = st.getTileSourceByName(cachedOverlay, false);
|
||||
if (tileSource != null) {
|
||||
//TileSourceProxyProvider prov = new TileSourceProxyProvider(view.getApplication(), tileSource);
|
||||
//mapRenderer.setMapLayerProvider(1, prov.instantiateProxy(true));
|
||||
//prov.swigReleaseOwnership();
|
||||
mapRenderer.setMapLayerProvider(1, net.osmand.core.jni.OnlineTileSources.getBuiltIn().createProviderFor("Mapnik (OsmAnd)"));
|
||||
TileSourceProxyProvider prov = new TileSourceProxyProvider(view.getApplication(), tileSource);
|
||||
mapRenderer.setMapLayerProvider(1, prov.instantiateProxy(true));
|
||||
prov.swigReleaseOwnership();
|
||||
// mapRenderer.setMapLayerProvider(1, net.osmand.core.jni.OnlineTileSources.getBuiltIn().createProviderFor("Mapnik (OsmAnd)"));
|
||||
} else {
|
||||
mapRenderer.resetMapLayerProvider(1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue