Fix #1997
This commit is contained in:
parent
876cdca737
commit
0a11d13aad
1 changed files with 13 additions and 0 deletions
|
@ -1,5 +1,9 @@
|
|||
package net.osmand.binary;
|
||||
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
import gnu.trove.list.array.TIntArrayList;
|
||||
import gnu.trove.map.hash.TIntObjectHashMap;
|
||||
import net.osmand.binary.BinaryMapIndexReader.MapIndex;
|
||||
|
@ -52,6 +56,15 @@ public class BinaryMapDataObject {
|
|||
return objectNames;
|
||||
}
|
||||
|
||||
public Map<Integer, String> getOrderedObjectNames() {
|
||||
LinkedHashMap<Integer, String> lm = new LinkedHashMap<Integer, String> ();
|
||||
for (int i = 0; i < namesOrder.size(); i++) {
|
||||
int nm = namesOrder.get(i);
|
||||
lm.put(nm, objectNames.get(nm));
|
||||
}
|
||||
return lm;
|
||||
}
|
||||
|
||||
public void putObjectName(int type, String name){
|
||||
if(objectNames == null){
|
||||
objectNames = new TIntObjectHashMap<String>();
|
||||
|
|
Loading…
Reference in a new issue