OpenGeoscience / vtkMap

vtkMap
23 stars 13 forks source link

Verify tile input #105

Closed johnkit closed 6 years ago

johnkit commented 6 years ago

This branch does 3 main things:

  1. Consolidates the map-tile download logic, which had been duplicated between vtkMapTile (for serial downloads) and vtkMultiThreadedOsmLayer (for multiple/concurrent downloads).
  2. Verifies that map-tile files are valid image files. There have been cases when a resource returned by a map-tile server is not an image but instead an html page stating that the image isn't available. This PR fixes the irritating red tiles that result when that occurs.
  3. Adds a "Tile Not Available" image that is displayed when a requested map-tile is not received.
johnkit commented 6 years ago

@alvarosan Just a heads up that I am probably going to merge this either this weekend or on Monday. I don't think it will conflict with what you've been working on.

alvarosan commented 6 years ago

No conflicts on my side @johnkit , thanks for the heads up.