Exemplo n.º 1
0
  @Override
  public void onMapEvent(Event event, MapPosition mapPosition) {

    if (event == Map.CLEAR_EVENT) {
      /* sync with TileRenderer */
      synchronized (mRenderer) {
        tileRenderer().clearTiles();
        mTileManager.init();
      }

      if (mTileManager.update(mapPosition)) notifyLoaders();

    } else if (event == Map.POSITION_EVENT) {
      if (mTileManager.update(mapPosition)) notifyLoaders();
    }
  }