| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
Verify that the ornaments hug the `MGLMapView` when it’s smaller than the view controller’s root view.
|
|
|
|
| |
previously, we used multiple different projects for various targets (app, test, render) that overwrote each other, so it was impossible to have one project to build them all, one project to compile them, one project to run them all and in the darkness bind them
|
| |
|
|
|
|
|
|
| |
This reverts commit decc493ec8c30d66bcdf3aa19f58972eb045b5dc.
Conflicts:
.mason
|
| |
|
| |
|
| |
|
|
|
|
|
| |
- this is only a stopgap; we need to properly pass state between threads
- doesn't fix changing the pixel ratio
|
| |
|
| |
|
|
|
|
|
| |
- static rendering now also runs in a separate thread; you have to start it with map.start(Map::Mode::Static) and join the thread with map.stop() before destructing the Map object
- map.renderStill() takes a callback with will be invoked on the *map* thread, so you'll have to figure out your own method of dispatching back to the main thread.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Thread<T> is a generic thread management object that starts a thread, creates an object T in that thread and calls its .start() function. When the Thread<T> object is destructed (which must happen in the thread that created it), it'll call the object's .stop() function, and wait for thread termination. The .stop() function must somehow get the thread to terminate. Note that object T's constructor/destructor/start()/stop() must be protected/private, and Thread<T> must be declared as a friend class. All public functions may be called from any thread and are exposed through operator->().
RunLoop encapsulates a libuv runloop and has a facility of dispatching function objects to the thread. It can be used either as a worker thread class by itself, or it can be derived from. This commit converts SQLiteCache to derive from RunLoop and removes the custom code used previously for managing the cache thread.
|
| |
|
|
|
|
| |
locks
|
| |
|
|
|
|
|
|
|
|
| |
- catch SQLite exceptions and report them
- failed statements are ignored, we're really just caching here, so if it fails we're handling it gracefully elsewhere
- handle cases where the database file goes away after we opened it
- handle cases where the schema wasn't created after the database file was opened successfully
- add tests
|
|
|
|
| |
This allows making both Tile and TileID private.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
to get rid of seams in repeating patterns.
https://github.com/mapbox/mapbox-gl-styles/issues/50#issuecomment-86159351
|
|
|
|
|
|
| |
- OpenGL ES 2 doesn't allow NPOT textures with wrap-around
- The Sprite object reported the map's pixelRatio, even though it loaded @2x assets
- Copying icons from the sprite into the atlas now uses bilinear scaling to scale up to the actual size
|
|
|
|
| |
This reverts commit bffee0715458530c6c86f440f757a4de667278a2.
|
|
|
|
|
|
| |
This follows gl-js and just makes sense -- whenever the style changes
the atlases should be blown away.
Refs #957
|
| |
|
|
|
|
|
|
|
| |
Use our logging system that will route the message accordingly on
the target platform.
Fixes #613
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Fixes #959.
|
|
|
|
| |
Thanks to @mb12 for the suggestion.
|
|
|
|
| |
Left out several tests that were redundant because mapbox.cpp only looks at the passed in access token.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
they can only be called by View::resize
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
Move to mapbox bucket
|
| | |
|
|/ |
|
| |
|
|\
| |
| | |
functions for everything
|
| | |
|
| | |
|
|/ |
|