Ignore:
Timestamp:
2015-05-10T13:27:54+02:00 (10 years ago)
Author:
bastiK
Message:

applied #10454 - Mapbox "empty" tile (imagery with zoom level > 17) (patch by wiktorn)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/imagery/ImageryReader.java

    r8287 r8344  
    66import java.util.ArrayList;
    77import java.util.Arrays;
     8import java.util.HashMap;
    89import java.util.List;
     10import java.util.Map;
    911import java.util.Objects;
    1012import java.util.Stack;
     
    3941        BOUNDS,
    4042        SHAPE,
     43        NO_TILE,
    4144        UNKNOWN,            // element is not recognized in the current context
    4245    }
     
    8487        private String lang;
    8588        private List<String> projections;
     89        private Map<String, String> noTileHeaders;
    8690
    8791        @Override
     
    9599            bounds = null;
    96100            projections = null;
     101            noTileHeaders = null;
    97102        }
    98103
     
    150155                    projections = new ArrayList<>();
    151156                    newState = State.PROJECTIONS;
     157                } else if ("no-tile-header".equals(qName)) {
     158                    noTileHeaders = new HashMap<>();
     159                    noTileHeaders.put(atts.getValue("name"), atts.getValue("value"));
     160                    newState = State.NO_TILE;
    152161                }
    153162                break;
     
    308317                projections = null;
    309318                break;
     319            case NO_TILE:
     320                entry.setNoTileHeaders(noTileHeaders);
     321                noTileHeaders = null;
     322                break;
     323
    310324            }
    311325        }
Note: See TracChangeset for help on using the changeset viewer.