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
Thiago Marcos P. Santos
a818917714
[Qt] Make it possible to disable libwebp and libjpeg-turbo at build time
...
Pull less dependencies.
2016-05-05 18:47:14 +03:00
John Firebaugh
10e522d10b
[core] Privatize various util headers ( #4945 )
2016-05-04 14:09:51 -07:00
Dane Springmeyer
0c6bce2819
[core] consistently protect against invalid tag encoding in vector tile
2016-05-04 10:12:15 -07:00
Brent W
7e6995d153
[core] Merge pull request #4914 from bwhtmn/camera-padding
...
Fix a bug in applying padding to the camera.
Fixes #4862 .
2016-05-04 01:28:27 -07:00
John Firebaugh
a64fe5062f
[core] Simplify FilterEvaluator and fix crash
...
Previous implementation was assigning a temporary to FilterEvaluator<T>::extractor.
2016-05-04 09:56:34 +03:00
John Firebaugh
c8391729c7
[core] Use geometry.hpp feature type
2016-05-03 17:25:49 -07:00
Dane Springmeyer
c82b02c508
[core] port to protozero ( #4906 )
2016-05-03 13:57:17 -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
700180a0fe
[core] use a GridIndex for queryRenderedFeatures
2016-04-29 12:00:24 -07:00
Ansis Brammanis
61d14089e0
[core] implement queryRenderedFeatures
2016-04-29 12:00:24 -07:00
John Firebaugh
c1ad321485
[linux] Build with GCC 5 ( #4901 )
...
* [linux] Build with GCC 5
* [build] -fabi-version=0 is the default for GCC 5
2016-04-29 09:57:21 -07:00
Molly Lloyd
c86f558e9d
[core] port outlinepattern for fill-pattern anti-aliasing from gl-js to native
...
add outlinepattern shader class to relevant files
add outlinepattern code to painter_fill.cpp
add outlinepattern code to fill_bucket
refactor painter_fill, fix tests
fix merge conflicts and setDepthSublayer
update render test to no antialiasing so travis will be happy
2016-04-28 17:13:20 -07:00
John Firebaugh
da78422c5c
[core] Prepare Filter for public API ( #4900 )
2016-04-28 16:33:09 -07:00
John Firebaugh
f82803917a
[core] Eliminate interpolate special cases ( #4882 )
2016-04-28 12:14:27 -07:00
Bruno de Oliveira Abinader
1f5587b3ea
[core] Added mbgl::underlying_type
2016-04-28 18:55:55 +03:00
John Firebaugh
189b5c2f60
[core] Rewrite parsePropertyTransition to work around GCC 4.9 bug
2016-04-26 11:44:48 -07:00
John Firebaugh
878310b891
[core] Simplify property parsing
...
This is a followup to #4811 . Now that use of Function is consistent, we can have a single separate parseProperty template function that delegates to a parseConstant template function.
2016-04-26 11:44:48 -07:00
Mike Morris
93b7d245f6
use Clock::time_point::max() instead of frame time
...
For Style::cascade and Style::recalculate, when rendering with
MapMode::Still. Fixes a subtle race condition with animated
transitions exacerbated by cd1a06c2dc .
2016-04-26 11:33:05 -04:00
John Firebaugh
76d6aba8f2
[core] Define mbgl::variant ( #4833 )
...
For parallelism with mbgl::optional, and to avoid exposing namespaces other than `mbgl` in the public API.
2016-04-25 13:58:10 -07:00
John Firebaugh
c1f40b9e71
[core] Move enum type classes to implementation ( #4831 )
2016-04-25 13:34:41 -07:00
John Firebaugh
c4089b60bc
[core] Extract Function::evaluation to a separate class ( #4811 )
...
This allows the Function<Faded<T>> partial specialization to be eliminated, giving all property functions a consistent storage type.
2016-04-25 09:51:47 -07:00
Minh Nguyễn
466ed55200
[core, ios, osx] cameraThatFitsCoordinateBounds
...
Added an API to get a camera that you can pass into -[MGLMapView setCamera:] that fits the given coordinate bounds, by analogy with -[MKMapView regionThatFits:] or -[MKMapView mapRectThatFits:edgePadding:].
Added mbgl::Map::getCameraOptions() for getting the current camera options more conveniently.
2016-04-22 16:39:25 -07:00
John Firebaugh
5939dd5b41
[core] Use the proper type for font stacks
2016-04-22 15:53:18 -07:00
John Firebaugh
0c5d805bf9
[core] FontStack ⇢ GlyphSet ( #4803 )
...
A font stack is an array of font names. This is not that.
2016-04-22 13:28:03 -07:00
John Firebaugh
34a2f142e0
[core] Quarantine style property irregularities in layer classes ( #4792 )
...
This moves the *{Layout,Paint}Properties classes closer to code generation.
2016-04-22 10:00:30 -07:00
John Firebaugh
ab97e6012c
[core] Fix default value for text-max-width
...
Fixes #4788
2016-04-21 17:23:34 -07:00
John Firebaugh
d4c98cabf3
[core] Make Function constructor explicit
2016-04-21 17:23:15 -07:00
John Firebaugh
b2beeda50b
[core] Adopt a strict naming convention for style properties
...
This will allow code to be generated from the style specification.
2016-04-21 14:05:40 -07:00
John Firebaugh
2ea450205d
[core] PlacementType ⇢ SymbolPlacementType
2016-04-21 14:05:40 -07:00
John Firebaugh
2df1c36ab8
[core] JoinType ⇢ LineJoinType
2016-04-21 14:05:40 -07:00
John Firebaugh
a14f0d2edd
[core] CapType ⇢ LineCapType
2016-04-21 11:01:56 -07:00
Bruno de Oliveira Abinader
4e04a107e8
Revert "[core] Do not clear custom layers upon style switch"
...
This reverts commit 8ec875b87c .
2016-04-21 20:15:18 +03:00
Bruno de Oliveira Abinader
8ec875b87c
[core] Do not clear custom layers upon style switch
2016-04-21 15:09:54 +03:00
Dane Springmeyer
74ad04499c
[core] remove unused code in value.hpp ( #4768 )
...
Noticed this dead code while reviewing `mapbox::variant` usage with @artemp
2016-04-20 13:14:13 -07:00
Thiago Marcos P. Santos
029f9f0883
[Qt] Introduce the Qt HTTPRequest and HTTPFileSource
2016-04-20 20:55:51 +03:00
Ansis Brammanis
70362662f7
[core] look for loaded parent tiles in cache ( #4595 )
...
fix #4047
port https://github.com/mapbox/mapbox-gl-js/pull/2158
2016-04-15 13:10:50 -07:00
Thiago Marcos P. Santos
d51944fbea
[core] Don't copy TransformState ( #3501 )
2016-04-15 12:17:19 -07:00
John Firebaugh
1ee0055710
[core] Eliminate MapData
2016-04-15 09:56:18 -07:00
John Firebaugh
9d18d65eda
[core] Remove MapData dependency from Painter
2016-04-15 09:56:18 -07:00
John Firebaugh
ed489e7649
[core] Remove MapData dependency from Style
2016-04-15 09:56:18 -07:00
John Firebaugh
25ff2696a1
[core] Remove MapData dependency from AnnotationTile and StyleUpdateParameters
2016-04-15 09:56:18 -07:00
John Firebaugh
ce4270b01c
[core] Convert MapContext to Map::Impl; eliminate indirection
2016-04-15 09:56:18 -07:00
John Firebaugh
6e78eabfff
[core] Clean up ThreadContext vestiges
2016-04-15 09:56:18 -07:00
Ansis Brammanis
d2b9b1c348
[core] always set activeTexture before binding a texture
2016-04-14 17:12:56 -07:00
John Firebaugh
3af3e72bb3
[all] Replace HTTPContextBase/HTTPRequestBase with FileSource
2016-04-14 14:18:19 -07:00
John Firebaugh
204c7fee03
[core] Render from the main thread
...
Do not create a thread for the MapContext anymore.
2016-04-14 13:44:08 -07:00