Commit Graph

2329 Commits

Author SHA1 Message Date
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
John Firebaugh
a47ab85283 [core] Don't put static objects in a header file (#4707)
This causes duplicate objects -- one for every file that includes that header.
2016-04-14 12:11:02 -07:00
Thiago Marcos P. Santos
2d580364a6 [core] Do the MapContext::cleanup() synchronously
This used to be async assuming the libuv behavior of holding the
main loop until all the messages are processed and also for avoiding
a deadlock at exit that no longer exits.

Now that we support multiple main loops implementation on different
platforms, we do the cleanup synchronously to make sure all the
platforms have the same behavior at exit.

Fixes #4631
2016-04-12 20:15:25 +03:00
Konstantin Käfer
e7ac0f6d4c [core] do not call glStencilFunc when we're not clipping 2016-04-06 14:19:13 -07:00
Konstantin Käfer
3a36079ccc [core] disable stencil test for rasters 2016-04-06 14:16:53 -07:00
Konstantin Käfer
d63da3f2aa [core] only compute ClipIDs for Vector/GeoJSON/Annotation tiles 2016-04-06 14:16:53 -07:00
Konstantin Käfer
ea32ee742f [core] only render tiles that have data 2016-04-06 14:16:53 -07:00
Konstantin Käfer
09684bb1dc [core] do not paint empty debug buckets
this removes "Buffer doesn't contain elements" messages when debug painting is enabled
2016-04-06 14:16:53 -07:00
Ansis Brammanis
e7742f2fe9 [core] get rid of empty buffer warning
fix #3148
2016-04-04 22:35:56 -07:00
Konstantin Käfer
65acf35dcf [core] fix various compilation issues 2016-04-04 16:20:04 -07:00
Ansis Brammanis
415ea295c5 [core] make sprite metrics checking stricter
- check that sprite metrics are within the bounds of the sprite. fix #714
- make sprite metrics problems Errors instead of Warnings
- check for negative image width, height
2016-03-31 10:27:42 -07:00
Ansis Brammanis
273600c16e [core] simplify conversions from pixels to tile units
fix #3768
2016-03-30 18:53:44 -07:00
John Firebaugh
5eda74a514 Merge branch 'release-ios-3.2.0-android-4.0.0' 2016-03-30 17:43:37 -07:00