Konstantin Käfer
77e7846756
[core] code style cleanups
...
- puts function definitions in a namespace ... {} rather than using namespace ...;
- remove trailing whitespace
- add trailing newline
- protect SQL statements from being formatted by clang-format
2016-07-01 12:38:33 +02:00
Bruno de Oliveira Abinader
ad081e698a
[core] Added CharArrayBuffer
...
Implements a custom std::streambuf to avoid creating temporary
std::string objects and thus optimizing image decode.
Suggested by @artemp in
https://github.com/mapbox/mapbox-gl-native/pull/5417#issuecomment-227700063 .
2016-06-30 17:56:23 +03:00
Bruno de Oliveira Abinader
1d46e83e30
[core] Use the right types for zoom scale logic
...
32 bit integers should be enough for zoom scale logic. In shape
annotation logic, 'maxAmountOfTileFeatures' requires 64 bits because we
are multiplying the zoom scale with the extent, which might give a
number higher than std::numeric_limits<uint32_t>::max().
2016-06-28 12:00:53 +03:00
John Firebaugh
021d4199cb
[core, node] Implement bindings for addSource
2016-06-24 09:39:51 -07:00
Bruno de Oliveira Abinader
5792091e9d
[core] Added mbgl::util::DEFAULT_TRANSITION_EASE
2016-06-20 13:01:59 +03:00
Bruno de Oliveira Abinader
22aa22c99c
[core] UnitBezier ctor is now constexpr
2016-06-20 13:01:59 +03:00
Bruno de Oliveira Abinader
c20c1d6a6b
[core] Avoid redundant 'inline' usage
2016-06-18 23:46:50 +03:00
Bruno de Oliveira Abinader
41497e9c41
[core] Cleaned up enum classes
...
- Replaced static_cast with C++ casts.
- Replaced inline with constexpr.
2016-06-18 20:23:00 +03:00
John Firebaugh
900568cfb0
[core] Runtime source API: private impls
2016-06-16 13:27:15 -07:00
John Firebaugh
19158d9f01
[core, node] Implement setPaintProperty for color properties ( #5380 )
2016-06-16 13:25:06 -07:00
John Firebaugh
a0b2982119
[core] Prepare Filter and FilterEvaluator for extraction ( #5366 )
2016-06-15 14:55:45 -07:00
John Firebaugh
a020e535ca
[core] Add a few conveniences to Color
2016-06-15 13:22:00 -07:00
Bruno de Oliveira Abinader
121b4ca9ca
[core] Added mbgl::util::convert helper function
...
Converts a given std::array into another using a different (convertible)
type.
2016-06-15 18:41:56 +03:00
Young Hahn
24b66bc8cd
Color class ( #5361 )
...
* Color class
* Switch to list initialization
2016-06-15 11:38:22 -04:00
John Firebaugh
6eab895bc0
[core] Use Range<uint8_t> instead of full Tileset where possible
2016-06-14 11:25:45 -07:00
John Firebaugh
282e626ac1
[core] Make enum ↔ string conversion more generic-friendly
...
Rewrite enum.hpp in such a way that parseConstant can be defined generically for all enumerated types.
While there, properly validated enumerated property values.
2016-06-13 17:22:05 -07:00
Bruno de Oliveira Abinader
4161d197fd
[tidy] Check modernize-pass-by-value
...
Ref: http://clang.llvm.org/extra/clang-tidy/checks/modernize-pass-by-value.html
2016-06-13 23:32:05 +03:00
Konstantin Käfer
2bdecdf9f9
[core] fix pedantic warning messages
2016-06-13 11:16:19 +02:00
Bruno de Oliveira Abinader
9b6c2e6940
[test] Added Projection tests
2016-06-13 10:11:20 +03:00
Bruno de Oliveira Abinader
4294b0f83a
[core] mbgl::Image is now movable, noncopyable
2016-06-07 16:45:12 +03:00
Thiago Marcos P. Santos
7b8698b47a
[core] Naive atomic type for ARMv5
...
std::atomic<bool> is implemented lock free which doesn't work
on ARMv5 and seems like the compiler is generating bogus code.
This workaround is a naive implementation using regular mutexes.
2016-06-06 22:19:25 +03:00
John Firebaugh
c902f9098b
[core] Rationalize naming for style-related code
2016-06-02 14:51:39 -07:00
John Firebaugh
67ee51360c
[core] Add Filter accessors
2016-06-02 14:51:39 -07:00
John Firebaugh
0fba70d5a8
[all] Rationalize annotation API
2016-06-01 17:37:01 -07:00
Konstantin Käfer
e2bcea90fc
[core] use #pragma once instead of ifdef include guards
2016-05-25 21:35:37 +02:00
Konstantin Käfer
c5fc7f1980
[core] use rapidjson's dtoa implementation to stringify floating point numbers
2016-05-18 12:26:51 +02:00
John Firebaugh
3c49fdc99d
[core] Feature IDs are always integers
2016-05-17 13:20:25 -07:00
John Firebaugh
3e21e3887a
[core] Introduce StyleQueryParameters; push coordinate calculations into Source
2016-05-17 13:20:25 -07:00
John Firebaugh
8ec0b70722
[core] Use mapbox::geometry::box in queryRenderedFeatures
2016-05-13 09:01:32 -07:00
John Firebaugh
58863c3974
[core] Remove unused
2016-05-13 09:01:32 -07:00
Konstantin Käfer
cd65a43855
[core] move from microsecond precision timestamp to integer second precision
2016-05-13 17:24:22 +02:00
Konstantin Käfer
ec70125e41
[core] move TileData and dependents to new *TileID classes
2016-05-10 14:50:56 +02:00
Minh Nguyễn
5ccb43477f
[ios, osx] Renamed Hybrid to Satellite Streets
...
The style ID has also changed, but the unversioned method will continue to point to the old v8 style ID.
2016-05-06 11:06:51 -07:00
Minh Nguyễn
2a4eeadb29
[core, ios, osx] Version default style URL APIs; deprecated Emerald
...
Updated default styles from v8 to v9. Deprecated the MGLMapView class methods in favor of new methods that take a version parameter. Deprecated Emerald outright in favor of Outdoors. Replaced usage of the unversioned MGLStyle methods with the corresponding versioned methods and MGLStyleCurrentVersion to ensure consistency.
Expanded MGLStyle unit tests to also assert that MGLStyle has the right number of style URL methods and that they’re all public. Linked the OS X SDK unit test bundle to libmbgl-core.a. Removed an unnecessary dependency on osxapp.
Replaced Emerald with Outdoors in iosapp and osxapp.
Fixes the iOS and OS X side of #4577 and #4702 .
2016-05-06 10:57:54 -07:00
John Firebaugh
9330d674a9
[core] Use geometry.hpp's point
2016-05-05 11:30:53 -07:00
John Firebaugh
f89cfacab2
[core] Inline LatLng::project definition the one place it's used
2016-05-05 11:16:57 -07:00
John Firebaugh
ce2a06e677
[core] Privatize math.hpp and vec.hpp
2016-05-05 11:16:57 -07:00
John Firebaugh
10e522d10b
[core] Privatize various util headers ( #4945 )
2016-05-04 14:09:51 -07:00
John Firebaugh
c8391729c7
[core] Use geometry.hpp feature type
2016-05-03 17:25:49 -07:00
John Firebaugh
34f9618d31
[core] Replace boost::lexical_cast with std::to_string
...
This removes the only boost dependency from public headers.
2016-05-02 13:08:51 -07:00
John Firebaugh
fd0f9d1319
[core] Remove duplicate copy of utf.hpp
2016-05-02 12:26:33 -07:00
John Firebaugh
c8c36c395c
[core] Remove unused
2016-05-02 11:26:37 -07:00
Ansis Brammanis
61d14089e0
[core] implement queryRenderedFeatures
2016-04-29 12:00:24 -07:00
Bruno de Oliveira Abinader
1f5587b3ea
[core] Added mbgl::underlying_type
2016-04-28 18:55:55 +03:00
Bruno de Oliveira Abinader
7821e21631
[core] Fix compilation warning
2016-04-20 20:55:51 +03:00
Thiago Marcos P. Santos
74a1d3c164
[android] Introduce RunLoop based on Looper
...
Also implement a Timer and AsyncTask based on Android's Looper.
2016-04-06 04:52:51 -03:00
John Firebaugh
5eda74a514
Merge branch 'release-ios-3.2.0-android-4.0.0'
2016-03-30 17:43:37 -07:00
John Firebaugh
169755e89a
[core] Unify FileRequest and WorkRequest
2016-03-24 10:54:32 -07:00
Konstantin Käfer
1dd81d9776
[test] remove crc64 and compare images
...
boost's crc64 breaks on iOS
2016-03-22 11:56:01 -07:00
Thiago Marcos P. Santos
baf30cd1f7
[glfw] Main loop integration
...
This new code can be used for rendering on the Main thread
while it will also work for rendering on the Map thread
before we make the switch. Needed by #2909 .
2016-03-21 23:58:48 -03:00