Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2015-09-28 00:08:20 +02:00
commit 5669df9445
2 changed files with 12 additions and 11 deletions

View file

@ -66,17 +66,17 @@ public class BinaryInspector {
// test cases show info
if(args.length == 1 && "test".equals(args[0])) {
in.inspector(new String[]{
// "-vpoi",
"-vpoi",
// "-vmap", "-vmapobjects", // "-vmapcoordinates",
// "-vrouting",
"-vaddress", "-vcities",//"-vstreetgroups",
// "-vaddress", "-vcities",//"-vstreetgroups",
// "-vstreets", "-vbuildings", "-vintersections",
// "-zoom=15",
// "-bbox=1.74,51.17,1.75,51.16",
// "-vstats",
// "/Users/victorshcherb/osmand/maps/Synthetic_test_rendering.obf"
"/Users/victorshcherb/osmand/maps/Netherlands_gelderland_europe_2.obf"
// "/Users/victorshcherb/osmand/temp/Czech-republic_jihovychod_europe_2.road.obf"
// "/Users/victorshcherb/osmand/maps/Netherlands_europe_2.road.obf"
"/Users/victorshcherb/osmand/maps/Map.obf"
});
} else {
in.inspector(args);

View file

@ -584,15 +584,16 @@ public class MapPoiTypes {
}
public boolean isTextAdditionalInfo(String key, String value) {
if(key.startsWith("name:") || key.equals("name")) {
if (key.startsWith("name:") || key.equals("name")) {
return true;
}
initPoiTypesByTag();
PoiType pat = poiTypesByTag.get(key+"/"+value);
if(pat == null) {
pat = poiTypesByTag.get(key);
}
if(pat == null) {
PoiType pat = (PoiType) getAnyPoiAdditionalTypeByKey(key);
// initPoiTypesByTag();
// PoiType pat = poiTypesByTag.get(key + "/" + value);
// if (pat == null) {
// pat = poiTypesByTag.get(key);
// }
if (pat == null) {
return true;
} else {
return pat.isText();