Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #984 from mapbox/log_stderr_printf | John Firebaugh | 2015-03-12 | 9 | -26/+35 |
|\ | | | | | Get rid of printf and cout by using Log::* | ||||
| * | Get rid of printf and cout by using Log::* | Thiago Marcos P. Santos | 2015-03-12 | 9 | -26/+35 |
| | | | | | | | | | | | | | | Use our logging system that will route the message accordingly on the target platform. Fixes #613 | ||||
* | | tolerate missing sprites | Konstantin Käfer | 2015-03-12 | 1 | -8/+4 |
|/ | | | | Do not try to fulfil the promise twice in case both requests to the sprite JSON and image fail. this will crash the program. Instead, we always continue with the promise, instead of throwing an exception. This allows the program to continue parsing tiles, but without an image sprite available. This means the map will render, but without the sprite images | ||||
* | Merge pull request #972 from mapbox/log_cleanup | Thiago Marcos P. Santos | 2015-03-12 | 1 | -1/+37 |
|\ | | | | | Refactoring of the log system | ||||
| * | Update the FixtureLog | Thiago Marcos P. Santos | 2015-03-12 | 1 | -0/+14 |
| | | | | | | | | | | | | Now the FixtureLog is an Log::Observer instead of a backend. The observer can sniff and filter log messages, that can be used for fail a test if it emits a warning for example. | ||||
| * | Make the logging system static | Thiago Marcos P. Santos | 2015-03-12 | 1 | -5/+7 |
| | | | | | | | | | | | | | | No initialization is needed anymore and we can use the logging functions safely at any point of the code (threading is not handled though, so you might get multiplexed messages if you log from two threads simultaneously). | ||||
| * | Simplify the logging mechanism | Thiago Marcos P. Santos | 2015-03-12 | 1 | -0/+20 |
| | | | | | | | | | | | | | | | | | | Move the implementation of the more specialized methods to the base class and let the platform implement only the most generic method that takes all the possible arguments. These specialized methods will then map to the generic implementation that must be provided by the platforms we support. | ||||
* | | fixes black flicker on rotating the device | Konstantin Käfer | 2015-03-12 | 3 | -75/+94 |
|/ | | | | | | | | | | | | fixes #838 instead of rendering ad libitum on the map thread, we are now driving rendering from the UI thread on iOS via the map.renderSync() function. There are still white bars during the rotation, but the general content of the view is kept visible. - upgrades GLFW to 3.1 - removes swapped/needsSwap in favor of a more explicit scheme - View#invalidate() now replaces View#swap() and is called whenever the View needs to trigger a rerender. GLFW and Android to this right away, while iOS goes back to the main thread and does the Map redrawing as part of the GLKView update - sets all iOS deployment targets to 7.0 - disables SQLite3 version check, since the library version changed on iOS 8.2 | ||||
* | Don't copy VT keys / values into each feature | John Firebaugh | 2015-03-10 | 2 | -18/+24 |
| | | | | Instead, maintain a key index ⇢ value index map and look up the value in getValue(). | ||||
* | More include fixes | John Firebaugh | 2015-03-10 | 4 | -5/+4 |
| | |||||
* | Move parseValue(pbf) to vector_tile.cpp | John Firebaugh | 2015-03-10 | 3 | -30/+30 |
| | | | This code is specific to the vector tile format. | ||||
* | Remove unused header | John Firebaugh | 2015-03-10 | 1 | -1/+0 |
| | |||||
* | virtual ⇢ override in derived class | John Firebaugh | 2015-03-10 | 1 | -6/+6 |
| | |||||
* | Don't use const on value-type returns | John Firebaugh | 2015-03-10 | 3 | -6/+6 |
| | |||||
* | Inline PBFGeometry | John Firebaugh | 2015-03-10 | 2 | -99/+35 |
| | |||||
* | Revert FeatureType rename | John Firebaugh | 2015-03-09 | 4 | -9/+9 |
| | |||||
* | Use single geometry format | John Firebaugh | 2015-03-09 | 7 | -283/+252 |
| | |||||
* | Rework GeometryTile* interface | John Firebaugh | 2015-03-09 | 9 | -297/+112 |
| | |||||
* | unique -> shared ptr | Justin R. Miller | 2015-03-09 | 5 | -7/+6 |
| | |||||
* | reference cleanups | Justin R. Miller | 2015-03-09 | 2 | -10/+10 |
| | |||||
* | move to shared pointers for queried layers passed to buckets | Justin R. Miller | 2015-03-09 | 7 | -44/+28 |
| | |||||
* | move from range-based for loop to iterator for to be clearer | Justin R. Miller | 2015-03-09 | 5 | -11/+23 |
| | |||||
* | fix iterator comparator | Justin R. Miller | 2015-03-09 | 2 | -1/+6 |
| | |||||
* | move to abstract interfaces to more be in line with original API | Justin R. Miller | 2015-03-09 | 9 | -115/+178 |
| | |||||
* | doesn't make sense to move shared pointers | Justin R. Miller | 2015-03-09 | 1 | -3/+3 |
| | |||||
* | safely check points | Justin R. Miller | 2015-03-09 | 1 | -3/+4 |
| | |||||
* | refactor vars | Justin R. Miller | 2015-03-09 | 1 | -6/+5 |
| | |||||
* | properly iterate geometries | Justin R. Miller | 2015-03-09 | 1 | -3/+1 |
| | |||||
* | increment feature filter on creation | Justin R. Miller | 2015-03-09 | 1 | -0/+1 |
| | |||||
* | get rid of unused member | Justin R. Miller | 2015-03-09 | 3 | -10/+0 |
| | |||||
* | parse geometry collections from the pbfs; iterate geometries in buckets | Justin R. Miller | 2015-03-09 | 9 | -264/+270 |
| | |||||
* | pass actual feature pbf when filtering layer features | Justin R. Miller | 2015-03-09 | 1 | -3/+4 |
| | |||||
* | no need for while loop | Justin R. Miller | 2015-03-09 | 1 | -1/+1 |
| | |||||
* | proper move | Justin R. Miller | 2015-03-09 | 1 | -1/+1 |
| | |||||
* | iterate through fresh copy of layer data | Justin R. Miller | 2015-03-09 | 1 | -10/+10 |
| | |||||
* | fix reference | Justin R. Miller | 2015-03-09 | 1 | -1/+1 |
| | |||||
* | move to abstract base classes & shared pointers | Justin R. Miller | 2015-03-09 | 8 | -95/+91 |
| | |||||
* | refs #928: bookmarking working build of refactor | Justin R. Miller | 2015-03-09 | 13 | -243/+233 |
| | |||||
* | refs #928: 90% of way to genericizing VectorTile | Justin R. Miller | 2015-03-09 | 5 | -148/+203 |
| | |||||
* | Fix satellite style label rendering | John Firebaugh | 2015-03-09 | 1 | -4/+0 |
| | |||||
* | Fix satellite style contour rendering | John Firebaugh | 2015-03-08 | 1 | -1/+1 |
| | |||||
* | Fix conditional in normalizeSourceURL | John Firebaugh | 2015-03-06 | 1 | -2/+1 |
| | | | | | | The existing conditional would always be false, since it was comparing a url that begins with "mapbox://". In fact no conditional is necessary; the secure TileJSON resource should always be requested. | ||||
* | Insert {ratio} before extension, not inside access token | Minh Nguyễn | 2015-03-06 | 1 | -2/+2 |
| | | | | Fixes #959. | ||||
* | Only add {ratio} to raster tile URLs | Minh Nguyễn | 2015-03-06 | 3 | -10/+16 |
| | | | | Thanks to @mb12 for the suggestion. | ||||
* | Replace regex usage with basic string manipulation | Minh Nguyễn | 2015-03-06 | 1 | -3/+17 |
| | | | | | | Apparently we can’t rely on the existence of <regex> yet. Fixes #919. | ||||
* | Load 2× raster tiles on HiDPI screens | Minh Nguyễn | 2015-03-06 | 3 | -1/+12 |
| | | | | | | Based on mapbox.normalizeTileURL() in mapbox/mapbox-gl-js, but insert a “{ratio}” placeholder instead of “@2x” in order to keep the pixelRatio logic in TileData::request(). Fixes #919. | ||||
* | scope Requests to an Environment object for easier cancelation | Konstantin Käfer | 2015-03-06 | 17 | -120/+235 |
| | | | | | | | | | we are now scoping all file requests to an environment object. The FileSource implementation treats this as an opaque pointer, but allows canceling all Requests that are associated with that pointer. This is necessary to abort all file requests that originated from a particular Map object. Aborting a file request is different from canceling a file request: A canceled request doesn't have its callback called, while an aborted request will have its callback called with an error, indicating that the environment is going to be shut down. | ||||
* | use a reinterpret_cast to return the correct type | Konstantin Käfer | 2015-03-06 | 1 | -1/+1 |
| | |||||
* | fix ambiguous name (gcc) | Konstantin Käfer | 2015-03-06 | 1 | -4/+4 |
| | |||||
* | throw exception when shader compilation fails | Konstantin Käfer | 2015-03-06 | 14 | -74/+7 |
| |