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
Ansis Brammanis
b6a181097c
[core] fix reparsing overscaled geojson tiles
...
fix #3838
2016-03-30 13:57:47 -07:00
John Firebaugh
7b5a1ca167
[core] Localize and simplify state for MapChangeDidFinishLoadingMap event
...
Only Map needs to track this state, and it can simply be set when beginning to load a style and reset when finished.
2016-03-30 13:53:31 -07:00
Ansis Brammanis
8e9e779f2f
[core] fix line-dasharray/long-segment render test
...
fix #3928
reduce LineAtlas width to 256 to match -js. 256 should be enough.
2016-03-30 13:13:54 -07:00
Ansis Brammanis
387f37d035
[core] increase geojson buffer size to match -js
2016-03-30 13:13:53 -07:00
Ansis Brammanis
0539f7b4cb
[core] fix infinite loop in mbgl::resample
...
fix #4416
2016-03-29 11:38:35 -07:00
Ansis Brammanis
fb15582d53
[core] fix background-pattern rendering in perspective view
...
fix #3801
2016-03-29 11:19:47 -07:00
Ansis Brammanis
6fcc7ba513
[core] fix circle rendering in still mode
...
fix #3764
2016-03-29 10:10:48 -07:00
Ansis Brammanis
3cc55a9dac
[core] pack extrude and line distance into unsigned byte
...
instead of a signed byte. It's a bit easier to understand.
6c29251b35
2016-03-28 17:44:42 -07:00
Ansis Brammanis
196b7903d1
[core] remove flip from LineBucket.addLine
...
port dc036bcb3c
2016-03-28 17:44:41 -07:00
Ansis Brammanis
930c3c46c5
[core] reset line distance when it is near max
...
port 77ce4b45b2
fix #4492
2016-03-28 17:44:41 -07:00