protected MapPosition getInitialPosition ( ) { MapDataStore mapFile = getMapFile ( ) ; if ( mapFile . startPosition ( ) != null ) { Byte startZoomLevel = mapFile . startZoomLevel ( ) ; if ( startZoomLevel == null ) { // it is actually possible to have no start zoom level in the file startZoomLevel = new Byte ( ( byte ) 12 ) ; } return new MapPosition ( mapFile . startPosition ( ) , startZoomLevel ) ; } else { return getDefaultInitialPosition ( ) ; } }
Extracts the initial position from the map file falling back onto the value supplied by getDefaultInitialPosition if there is no initial position coded into the map file . You will only need to override this method if you do not want the initial position extracted from the map file .