Commit Graph

4631 Commits

Author SHA1 Message Date
Leith Bade
9c907e78ac Update to latest API 22 build tools 2015-03-17 13:59:05 +11:00
Minh Nguyễn
3ba72da74f Look inside MapboxGL.bundle when present
Fixes #1011.
2015-03-16 16:22:16 -07:00
Minh Nguyễn
0b1faba369 Merge pull request #1009 from mapbox/1ec5-967-readme
Add iOS project setup walkthrough including dependencies
2015-03-16 15:12:15 -07:00
Minh Nguyễn
8548927f3b Added iOS project setup walkthrough
Lists the dependencies needed for linking.

Fixes #967.
2015-03-16 12:29:57 -07:00
Konstantin Käfer
0d8b3aa5f7 Merge pull request #1006 from mapbox/linux_build_fix
Link with X11 explicitly
2015-03-16 12:10:23 +01:00
Thiago Marcos P. Santos
d66b24f58f Link with X11 explicitly
We are using X11 symbols directly like XFree() so we need to link
with it explicitly. Previously these symbols were being resolved
somehow by libGL, but apparently they are now hidden - good - in
the custom version we are using since 5e40f72b7.

Fixes #1005.
2015-03-16 10:54:34 +02:00
John Firebaugh
0c985c024b Revert "Move atlas ownership to Style"
This reverts commit bffee07154.
2015-03-13 13:05:32 -07:00
John Firebaugh
6325f1e25a Index glyph use by tile pointer value, not tile ID
There can be multiple tiles with the same ID, but from different
sources.

Fixes #957
2015-03-13 10:55:49 -07:00
John Firebaugh
96682a02af Remove unused declaration 2015-03-13 10:55:49 -07:00
John Firebaugh
998092e5b2 Remove needless indirection 2015-03-13 10:55:49 -07:00
John Firebaugh
762e4bdfbe Clean up GlyphAtlas 2015-03-13 10:55:49 -07:00
John Firebaugh
bffee07154 Move atlas ownership to Style
This follows gl-js and just makes sense -- whenever the style changes
the atlases should be blown away.

Refs #957
2015-03-13 10:55:47 -07:00
Justin R. Miller
c36522e2a0 Merge pull request #1000 from mapbox/ios-set-classes
iOS setAppliedStyleClasses -> setStyleClasses
2015-03-13 09:10:27 -07:00
Justin R. Miller
bcc4c9e78d iOS setAppliedStyleClasses -> setStyleClasses 2015-03-13 08:02:02 -07:00
Konstantin Käfer
069505fe75 fix rare issue that had the notify and cancel callbacks called in the wrong order 2015-03-13 15:30:10 +01:00
Konstantin Käfer
5e40f72b7c scripts for running linux tests with docker 2015-03-13 12:06:11 +01:00
Justin R. Miller
5225a2ce5b Merge pull request #994 from mapbox/990-paintItBlack
paint it black
2015-03-12 22:04:05 -07:00
John Firebaugh
ba933b3f45 Merge pull request #984 from mapbox/log_stderr_printf
Get rid of printf and cout by using Log::*
2015-03-12 15:39:07 -07:00
Brad Leege
d659517e7f #990 - Changing to clear color instead of black 2015-03-12 17:17:08 -05:00
Brad Leege
a4e0732a78 #990 - Changing background color from white to black 2015-03-12 17:15:28 -05:00
Minh Nguyễn
4c7939b96e Avoid building a redundant array
Followup to 28e28934c7.
2015-03-12 09:25:39 -07:00
Anthony Picciano
28e28934c7 Remove the file extensions from the bundledStyleNames method 2015-03-12 16:29:45 +01:00
Konstantin Käfer
74ef8840ce tolerate missing sprites
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
2015-03-12 15:27:56 +01:00
Thiago Marcos P. Santos
124b49562d Get rid of printf and cout by using Log::*
Use our logging system that will route the message accordingly on
the target platform.

Fixes #613
2015-03-12 14:19:32 +02:00
Thiago Marcos P. Santos
2b6afe6a54 Merge pull request #972 from mapbox/log_cleanup
Refactoring of the log system
2015-03-12 14:18:25 +02:00
Konstantin Käfer
4e8036311d Merge pull request #838 from mapbox/838-fix-rotate-flicker
black flicker on iOS device rotation
2015-03-12 12:55:59 +01:00
Thiago Marcos P. Santos
79f3149d9d Update the FixtureLog
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.
2015-03-12 13:28:41 +02:00
Thiago Marcos P. Santos
51bc265db3 Make the logging system static
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).
2015-03-12 13:28:41 +02:00
Thiago Marcos P. Santos
2948e7d121 Simplify the logging mechanism
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.
2015-03-12 13:28:40 +02:00
Konstantin Käfer
47ede853c4 fixes black flicker on rotating the device
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
2015-03-12 12:16:38 +01:00
Konstantin Käfer
ba9d242069 Merge pull request #982 from mapbox/982-android-only-upload-existing-apks
Build $(BUILDTYPE) apk file and only upload those
2015-03-12 12:15:33 +01:00
Konstantin Käfer
d632816970 only upload the artifact we're building
fixes #982
2015-03-12 11:20:12 +01:00
Konstantin Käfer
fc8fd3af80 build the BUILDTYPE with gradle as well 2015-03-12 10:52:48 +01:00
John Firebaugh
126b7778aa Merge pull request #976 from mapbox/968-sqlite-version-check
Relax sqlite version check to major version only
2015-03-11 13:49:34 -07:00
Brad Leege
4549ec27e1 Merge pull request #979 from mapbox/gradleSpeed
Gradle Speed
2015-03-11 15:35:06 -05:00
Brad Leege
fceb36c741 #978 - Creating android-project task as an alias for android-lib to mirror iproj functionality 2015-03-11 15:08:41 -05:00
Brad Leege
5f4a2a66c7 #978 - Changing gradle build to gradle assembleRelease for make android 2015-03-11 14:32:23 -05:00
John Firebaugh
bb73dbcd30 Relax sqlite version check to major version only
iOS 8.2 updates the included SQLite version to 3.8.4, while iOS 7.0 up
to iOS 8.1 provides version 3.7.13. When compiling with the 8.2 SDK and
running on 8.1 or below, or vice versa, a strict check fails.

Fixes #968.
2015-03-11 10:21:26 -07:00
John Firebaugh
24c7239e35 Merge pull request #971 from mapbox/optimize-vt
Don't copy VT keys / values into each feature
2015-03-11 10:10:22 -07:00
Minh Nguyễn
e1fdc4f8b3 Build with current iOS SDK
xcodebuild does not require a specific SDK version, but Mason puts packages in a version-specific directory. So this change uses the logic for $MASON_PLATFORM_VERSION in mason.sh in mapbox/mason.

Fixes #974.
2015-03-11 09:59:21 -07:00
Konstantin Käfer
21f5c0d514 Merge pull request #973 from mapbox/render
Fix mbgl-render tool build
2015-03-11 14:33:03 +01:00
Thiago Marcos P. Santos
3b4f08b060 Update the docs
libboost-program-options-dev is not automatically installed as a
dependency of libboost-dev, which will cause a link error when building
on Linux.
2015-03-11 14:40:16 +02:00
Thiago Marcos P. Santos
71ccb7b013 Trivial build fix, do not call private method
Resize is internally called by the view now.
2015-03-11 14:40:05 +02:00
Thiago Marcos P. Santos
f3f8e348a1 Fix build warnings on GCC
Apperently boost has a few quirks on its headers.
2015-03-11 14:37:28 +02:00
John Firebaugh
d6c037d2bc Don't copy VT keys / values into each feature
Instead, maintain a key index ⇢ value index map and look up the
value in getValue().
2015-03-10 16:12:52 -07:00
John Firebaugh
7212accffd More include fixes 2015-03-10 16:07:33 -07:00
John Firebaugh
3e068be4ad Merge pull request #970 from mapbox/pbf-cleanup
VectorTile related cleanup
2015-03-10 13:22:30 -07:00
John Firebaugh
c13227e35f Move parseValue(pbf) to vector_tile.cpp
This code is specific to the vector tile format.
2015-03-10 12:14:13 -07:00
John Firebaugh
9e1f17a25b Remove unused header 2015-03-10 12:13:50 -07:00
Justin R. Miller
cc7371ed59 Merge pull request #928 from mapbox/928-refactor-vend-geometry
refactor VectorTile to vend geometry
2015-03-10 12:09:11 -07:00