Advertisement
Guest User

Untitled

a guest
Dec 12th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. /* See description in header file. */
  2. void GeographicPolylineLayer::GetTile(TileKeyPtr tileKey,
  3. TileKeyPtr convertedTileKey,
  4. AsyncTileRequestWithRequestPtr callback,
  5. uint32 priority,
  6. bool cachedOnly)
  7. {
  8. // TODO: comment out
  9. // don't get tile and see if memory is down
  10. return;
  11.  
  12. if (!callback)
  13. {
  14. return;
  15. }
  16.  
  17. NB_Error error = NE_OK;
  18. do
  19. {
  20. //@todo: do we need cache ???
  21. if (cachedOnly || !m_tileAvaiable)
  22. {
  23. error = NE_NOENT;
  24. break;
  25. }
  26.  
  27. DataStreamPtr data;
  28. error = m_tileGenerator->GenerateTileData(convertedTileKey, data);
  29. if (error != NE_OK)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement