congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
MapDataStore.startPosition
Code IndexAdd Tabnine to your IDE (free)

How to use
startPosition
method
in
org.mapsforge.map.datastore.MapDataStore

Best Java code snippets using org.mapsforge.map.datastore.MapDataStore.startPosition (Showing top 5 results out of 315)

origin: mapsforge/mapsforge

/**
 * @return the start point (may be null).
 */
public LatLong getStartPosition() {
  if (this.mapDataStore != null) {
    return this.mapDataStore.startPosition();
  }
  return null;
}
origin: mapsforge/mapsforge

/**
 * adds another mapDataStore
 *
 * @param mapDataStore      the mapDataStore to add
 * @param useStartZoomLevel if true, use the start zoom level of this mapDataStore as the start zoom level
 * @param useStartPosition  if true, use the start position of this mapDataStore as the start position
 */
public void addMapDataStore(MapDataStore mapDataStore, boolean useStartZoomLevel, boolean useStartPosition) {
  if (this.mapDatabases.contains(mapDataStore)) {
    throw new IllegalArgumentException("Duplicate map database");
  }
  this.mapDatabases.add(mapDataStore);
  if (useStartZoomLevel) {
    this.startZoomLevel = mapDataStore.startZoomLevel();
  }
  if (useStartPosition) {
    this.startPosition = mapDataStore.startPosition();
  }
  if (null == this.boundingBox) {
    this.boundingBox = mapDataStore.boundingBox();
  } else {
    this.boundingBox = this.boundingBox.extendBoundingBox(mapDataStore.boundingBox());
  }
}
origin: org.mapsforge/mapsforge-map

/**
 * @return the start point (may be null).
 */
public LatLong getStartPosition() {
  if (this.mapDataStore != null) {
    return this.mapDataStore.startPosition();
  }
  return null;
}
origin: mapsforge/mapsforge

/**
 * 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.
 *
 * @return the initial position encoded in the map file or a fallback value.
 */
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();
  }
}
origin: org.mapsforge/mapsforge-map

/**
 * adds another mapDataStore
 *
 * @param mapDataStore      the mapDataStore to add
 * @param useStartZoomLevel if true, use the start zoom level of this mapDataStore as the start zoom level
 * @param useStartPosition  if true, use the start position of this mapDataStore as the start position
 */
public void addMapDataStore(MapDataStore mapDataStore, boolean useStartZoomLevel, boolean useStartPosition) {
  if (this.mapDatabases.contains(mapDataStore)) {
    throw new IllegalArgumentException("Duplicate map database");
  }
  this.mapDatabases.add(mapDataStore);
  if (useStartZoomLevel) {
    this.startZoomLevel = mapDataStore.startZoomLevel();
  }
  if (useStartPosition) {
    this.startPosition = mapDataStore.startPosition();
  }
  if (null == this.boundingBox) {
    this.boundingBox = mapDataStore.boundingBox();
  } else {
    this.boundingBox = this.boundingBox.extendBoundingBox(mapDataStore.boundingBox());
  }
}
org.mapsforge.map.datastoreMapDataStorestartPosition

Javadoc

Gets the initial map position.

Popular methods of MapDataStore

  • boundingBox
    Returns the area for which data is supplied.
  • close
  • extract
    Extracts substring of preferred language from multilingual string. Example multilingual string: "Bas
  • readLabels
    Reads data for an area defined by the tile in the upper left and the tile in the lower right corner.
  • startZoomLevel
    Gets the initial zoom level.
  • getDataTimestamp
    Returns the timestamp of the data used to render a specific tile.
  • readMapData
    Reads data for an area defined by the tile in the upper left and the tile in the lower right corner.
  • readPoiData
    Reads POI data for an area defined by the tile in the upper left and the tile in the lower right cor
  • supportsTile
    Returns true if MapDatabase contains tile.

Popular in Java

  • Making http requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • addToBackStack (FragmentTransaction)
  • setRequestProperty (URLConnection)
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Join (org.hibernate.mapping)
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now