Commit Graph

7956 Commits

Author SHA1 Message Date
Bruno de Oliveira Abinader
61dad6eae5 [core] Use release() instead of get()/reset() in Raster 2016-06-03 11:03:16 +03:00
Bruno de Oliveira Abinader
650b988874 [core] Perform GL object store cleanup on low memory 2016-06-03 11:03:16 +03:00
John Firebaugh
5928e4e52a [core] Clean up style.cpp 2016-06-02 16:33:56 -07:00
John Firebaugh
e802aedb8c [core, node, android] Remove used "base" parameter from setStyleJSON 2016-06-02 16:33:56 -07:00
John Firebaugh
7d110f5b14 [docs] Add information about runtime styling API to ARCHITECTURE.md 2016-06-02 16:06:01 -07:00
John Firebaugh
49d3807e28 [docs] Start ARCHITECTURE.md 2016-06-02 16:02:19 -07:00
John Firebaugh
e1a58565c8 [core] Move RenderData alongside RenderItem 2016-06-02 15:44:39 -07:00
John Firebaugh
c902f9098b [core] Rationalize naming for style-related code 2016-06-02 14:51:39 -07:00
John Firebaugh
18149cbcc2 [core] Add {min,max}Zoom accessors 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
cadc617c76 [core] Introduce PropertyValue<T>
PropertyValue<T> represents the three possible types of style property value: undefined, constant, or function.
2016-06-02 14:51:39 -07:00
John Firebaugh
ba4a8a9731 [tests] Add basic tests for Map::{add,remove}Layer 2016-06-02 14:51:39 -07:00
John Firebaugh
d7e1ecd19e [core] Generalize Map::{add,remove}CustomLayer 2016-06-02 14:51:39 -07:00
John Firebaugh
a43940afb2 [core] Runtime style layer API 2016-06-02 14:51:39 -07:00
John Firebaugh
27baa34d44 [osx] Ignore a file that Xcode keeps generating for some reason 2016-06-02 14:48:52 -07:00
John Firebaugh
1fb96d38a0 [tests] Tweak LineAnnotation test so that it reveals a bug; fix the bug 2016-06-02 14:47:35 -07:00
John Firebaugh
2c8d225cf2 [tests] Clean up annotation tests 2016-06-02 14:45:30 -07:00
Bruno de Oliveira Abinader
af65da1ad7 [core] Support "#pragma mapbox:" commands in shader code
Fixes https://github.com/mapbox/mapbox-gl-native/issues/5174.
2016-06-02 15:42:42 +03:00
Tobrun Van Nuland
7a7efcf3b7 [android] #4727 - fix proguard test app 2016-06-02 09:25:40 +02:00
John Firebaugh
3689f52ef3 [core] Constrain annotation API to the supported geometry types 2016-06-01 17:37:01 -07:00
John Firebaugh
8068424f30 [build] Add android-* make targets for specific ABIs 2016-06-01 17:37:01 -07:00
John Firebaugh
574dd14420 [ios, osx] Add an assertion to -[MGLMultiPoint annotationObjectWithDelegate:] 2016-06-01 17:37:01 -07:00
John Firebaugh
0fba70d5a8 [all] Rationalize annotation API 2016-06-01 17:37:01 -07:00
Thiago Marcos P. Santos
cfd6757ecc [Qt] Use geometry.hpp internally for shape annotations 2016-06-01 17:36:50 -07:00
John Firebaugh
8985b1311b [core] Use geometry.hpp types for shape annotations 2016-06-01 17:36:50 -07:00
John Firebaugh
aa1a54c577 [core] Do annotation longitude wrapping together with latitude clamping 2016-06-01 17:36:50 -07:00
John Firebaugh
efaf6461aa [android] Basic cleanups in annotation JNI code 2016-06-01 17:36:50 -07:00
John Firebaugh
555c9ed863 [android] Simplify the JNI definitions for annotation methods
Instead of providing both singleton and List-based implementations:

* Define everything in terms of arrays
* Do singleton ⇢ array and List ⇢ array conversions in Java
2016-06-01 17:36:50 -07:00
Jesse Bounds
d9c6181f34 [ios] Add annotation container view (#5194)
Add a container view to hold annotations. This gets around a performance
issue with `UIView:addSubview:` where adding views is N^2. It helps
annotation views avoid cutting into callout views when the annotation
views are transformed to be "flat".
2016-06-01 17:36:07 -07:00
John Firebaugh
ce98a7bee7 [android] Re-revert to NDK r10e 2016-06-01 17:05:12 -07:00
Jason Wray
f41546e614 [ios] Default to Debug BUILDTYPE, but explicitly set Release for deploys 2016-06-01 15:54:46 -04:00
Jason Wray
c08a54dd82 [ios] Fix static framework conglomeration
- Include libMapbox.a, which contains our Obj-C classes, in the fat archive.
- Simulator libraries now always include x86_64 slices.
2016-06-01 15:54:46 -04:00
Minh Nguyễn
fcacbb87ef [core] Store feature keys in same order as in vector tile
The keys in the vector tile may not be in alphabetical order. Building a vector of keys by looping over std::map<std::string, …> effectively sorts the keys by alphabetical order without sorting the associated values. This change inserts keys in the same order in which they appear in the vector tile.
2016-06-01 12:07:53 -07:00
Thiago Marcos P. Santos
f7ce5b3a7b [build] Upload node test results
Removed by mistake.
2016-06-01 19:04:31 +03:00
Thiago Marcos P. Santos
3285663726 [build] Build matrix cosmetics 2016-06-01 16:45:53 +03:00
Thiago Marcos P. Santos
83ba835168 [build] Migrate LLVM bots to Trusty
LLVM is no longer hosting a debian repo and the build
was broken. Trusty has the LLVM version we need.
2016-06-01 16:45:53 +03:00
Thiago Marcos P. Santos
a9c070e0b5 [qt] Enable tests for Qt5 2016-06-01 16:45:53 +03:00
Bruno de Oliveira Abinader
6c94898297 [Qt] Fix typo in QMapboxGL::resize 2016-06-01 15:52:00 +03:00
Bruno de Oliveira Abinader
31753583da [test] Added GL objects tests 2016-06-01 15:28:59 +03:00
Bruno de Oliveira Abinader
1b0683b94c [core] Use unique_resource for GL objects
Source: https://github.com/okdshin/unique_resource

These replace the complexity of manually handling moveable-RAII objects
with a type specific for that purpose.

As suggested in https://github.com/mapbox/mapbox-gl-native/pull/5141#issuecomment-221719872.
2016-06-01 13:53:39 +03:00
Bruno de Oliveira Abinader
2038a21cb5 [core] s/GLObjectStore/ObjectStore/ 2016-06-01 13:53:39 +03:00
Bruno de Oliveira Abinader
a3e0c60a7c [build] Added unique_resource as dependency 2016-06-01 13:53:39 +03:00
Bruno de Oliveira Abinader
f301df931c [build] Header-only deps should only need cflags 2016-06-01 13:52:11 +03:00
Bruno de Oliveira Abinader
59f9a9f93c [core] Update sdf shader code
Ported the following patch:
- [convert mat4 exMatrix to a vec2 extrudeScale](a8d549b7a4)
2016-06-01 11:18:43 +03:00
Bruno de Oliveira Abinader
5e7736ce87 [core] Update icon shader code
Ported the following patch:
- [convert mat4 exMatrix to a vec2 extrudeScale](a8d549b7a4)
2016-06-01 11:18:18 +03:00
Thiago Marcos P. Santos
64f4be635b [android] Fix x86_64 build
sysroot path not being passed to the compiler and linker
2016-06-01 00:46:28 +03:00
Young Hahn
a800d33dd8 [core] Don't earcut more than 500 inner rings 2016-05-31 10:15:18 -07:00
John Firebaugh
517218204f Remove libtess2 from LICENSE.md 2016-05-31 10:15:18 -07:00
John Firebaugh
a475f1d813 [core] Run fixupPolygons on geojson-vt-cpp polygon output 2016-05-31 10:15:18 -07:00
John Firebaugh
25eec28588 [core] Fix up v1 vector tile geometries with clipper 2016-05-31 10:15:18 -07:00