summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #984 from mapbox/log_stderr_printfJohn Firebaugh2015-03-129-26/+35
|\ | | | | Get rid of printf and cout by using Log::*
| * Get rid of printf and cout by using Log::*Thiago Marcos P. Santos2015-03-129-26/+35
| | | | | | | | | | | | | | Use our logging system that will route the message accordingly on the target platform. Fixes #613
* | tolerate missing spritesKonstantin Käfer2015-03-121-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_cleanupThiago Marcos P. Santos2015-03-121-1/+37
|\ | | | | Refactoring of the log system
| * Update the FixtureLogThiago Marcos P. Santos2015-03-121-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 staticThiago Marcos P. Santos2015-03-121-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 mechanismThiago Marcos P. Santos2015-03-121-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 deviceKonstantin Käfer2015-03-123-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 featureJohn Firebaugh2015-03-102-18/+24
| | | | Instead, maintain a key index ⇢ value index map and look up the value in getValue().
* More include fixesJohn Firebaugh2015-03-104-5/+4
|
* Move parseValue(pbf) to vector_tile.cppJohn Firebaugh2015-03-103-30/+30
| | | This code is specific to the vector tile format.
* Remove unused headerJohn Firebaugh2015-03-101-1/+0
|
* virtual ⇢ override in derived classJohn Firebaugh2015-03-101-6/+6
|
* Don't use const on value-type returnsJohn Firebaugh2015-03-103-6/+6
|
* Inline PBFGeometryJohn Firebaugh2015-03-102-99/+35
|
* Revert FeatureType renameJohn Firebaugh2015-03-094-9/+9
|
* Use single geometry formatJohn Firebaugh2015-03-097-283/+252
|
* Rework GeometryTile* interfaceJohn Firebaugh2015-03-099-297/+112
|
* unique -> shared ptrJustin R. Miller2015-03-095-7/+6
|
* reference cleanupsJustin R. Miller2015-03-092-10/+10
|
* move to shared pointers for queried layers passed to bucketsJustin R. Miller2015-03-097-44/+28
|
* move from range-based for loop to iterator for to be clearerJustin R. Miller2015-03-095-11/+23
|
* fix iterator comparatorJustin R. Miller2015-03-092-1/+6
|
* move to abstract interfaces to more be in line with original APIJustin R. Miller2015-03-099-115/+178
|
* doesn't make sense to move shared pointersJustin R. Miller2015-03-091-3/+3
|
* safely check pointsJustin R. Miller2015-03-091-3/+4
|
* refactor varsJustin R. Miller2015-03-091-6/+5
|
* properly iterate geometriesJustin R. Miller2015-03-091-3/+1
|
* increment feature filter on creationJustin R. Miller2015-03-091-0/+1
|
* get rid of unused memberJustin R. Miller2015-03-093-10/+0
|
* parse geometry collections from the pbfs; iterate geometries in bucketsJustin R. Miller2015-03-099-264/+270
|
* pass actual feature pbf when filtering layer featuresJustin R. Miller2015-03-091-3/+4
|
* no need for while loopJustin R. Miller2015-03-091-1/+1
|
* proper moveJustin R. Miller2015-03-091-1/+1
|
* iterate through fresh copy of layer dataJustin R. Miller2015-03-091-10/+10
|
* fix referenceJustin R. Miller2015-03-091-1/+1
|
* move to abstract base classes & shared pointersJustin R. Miller2015-03-098-95/+91
|
* refs #928: bookmarking working build of refactorJustin R. Miller2015-03-0913-243/+233
|
* refs #928: 90% of way to genericizing VectorTileJustin R. Miller2015-03-095-148/+203
|
* Fix satellite style label renderingJohn Firebaugh2015-03-091-4/+0
|
* Fix satellite style contour renderingJohn Firebaugh2015-03-081-1/+1
|
* Fix conditional in normalizeSourceURLJohn Firebaugh2015-03-061-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 tokenMinh Nguyễn2015-03-061-2/+2
| | | | Fixes #959.
* Only add {ratio} to raster tile URLsMinh Nguyễn2015-03-063-10/+16
| | | | Thanks to @mb12 for the suggestion.
* Replace regex usage with basic string manipulationMinh Nguyễn2015-03-061-3/+17
| | | | | | Apparently we can’t rely on the existence of <regex> yet. Fixes #919.
* Load 2× raster tiles on HiDPI screensMinh Nguyễn2015-03-063-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 cancelationKonstantin Käfer2015-03-0617-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 typeKonstantin Käfer2015-03-061-1/+1
|
* fix ambiguous name (gcc)Konstantin Käfer2015-03-061-4/+4
|
* throw exception when shader compilation failsKonstantin Käfer2015-03-0614-74/+7
|