Jason Wray
7ece4f6280
[core] Fix copy in range-based for loops
...
Caught by `CLANG_WARN_RANGE_LOOP_ANALYSIS = YES`.
2017-12-15 19:21:44 -05:00
Chris Loer
cb380064bb
[ios,macos] Darwin implementation of a CoreText-based LocalGlyphRasterizer.
...
- Changing font weight does not currently appear to be working.
- Glyph metric extraction code not working; currently unused.
2017-12-11 10:43:00 -08:00
Asheem Mamoowala
5fb9fb1a3c
[core] Support wrapped bounds in LatLngBounds::contains and LatLngBounds::intersect.
2017-12-07 09:53:36 -08:00
Konstantin Käfer
8757164ac8
[build] standardize on -fvisibility=hidden for all targets
...
Enables -fvisibility=hidden for iOS and Linux, and adds a workaround for GCC 6.3-7.1
Adds a GCC 6 build
Enables diagnostics for C files
Fixes a shadow warning in parsedate.c
2017-11-29 17:31:33 +01:00
Konstantin Käfer
2eec5a1980
[core] move HeadlessBackend extension initialization code into Impl
2017-11-29 15:48:51 +01:00
Asheem Mamoowala
3067b77c65
[core, ios, macos] Implement unique_any and remove linb::any
2017-11-22 13:56:38 -08:00
Asheem Mamoowala
ba63d06cfc
[core] Use Actors for CustomTileLoader invocation from bindings.
2017-11-22 13:56:38 -08:00
Asheem Mamoowala
acae193861
[core] Custom Geometry Sources
2017-11-22 13:56:38 -08:00
Chris Loer
c39232a89f
[core] Cleanup in response to review comments.
2017-11-17 10:05:15 -08:00
Ansis Brammanis
22c07596a0
[core] Split MapMode::Still into Static and Tile
...
`Tile` makes sure the symbols in the resulting tile are tileable while
symbols in `Still` match rendering in `Continuous` mode.
2017-11-17 10:05:15 -08:00
Bruno de Oliveira Abinader
3bef7593a6
[build] Clang-3.8: Explicit mbgl::style::expression::Result default ctor
2017-11-14 19:01:04 +02:00
Bruno de Oliveira Abinader
2c51901400
[build] Clang-3.8: Default init of a const type requires user-provided ctor
2017-11-14 19:01:04 +02:00
Thiago Marcos P. Santos
92608f5885
[core] Fix build on Android + GCC and Android + armeabi
...
Sadly we don't have bots for these two setups.
2017-11-12 13:17:57 -02:00
Tobrun
225fba8a0a
Merge branch 'release-agua' into tvn-merge-release
2017-11-10 06:16:35 +01:00
Anand Thakker
f648cfeef6
Implement Expressions ( #9439 )
...
Ports https://github.com/mapbox/mapbox-gl-js/pull/4777 (and its several follow-ups)
2017-11-08 12:34:02 -05:00
Bruno de Oliveira Abinader
1262659b8d
[core] Move GLContextMode to its own Renderer header
2017-11-01 17:45:37 +02:00
Thiago Marcos P. Santos
c65465c02e
[gcc4.9] Keep compatibility with GCC + Android
...
Needed by Qt builds on Android.
2017-10-31 12:41:40 +02:00
Asheem Mamoowala
375f9f94b6
[core] Add LatLngBounds::contains(const LatLngBounds&)
2017-10-30 16:44:34 -07:00
John Firebaugh
4b2e1cddb4
Replace compile-time polymorphism with runtime polymorphism in the conversion system
2017-10-23 09:56:43 -07:00
Fabian Guerra Soto
b7b8baef9d
[ios, macos] Add selection support to MGLMultiPoint annotations. ( #9984 )
...
* [ios, macos] Add selection support to MGLMultiPoint annotations.
* [ios, macos] Update changelogs.
2017-10-18 15:18:54 -04:00
Anand Thakker
b8654b3b04
[core] Move SourceType to the 'style' namespace
2017-10-16 16:32:53 -07:00
Lauren Budorick
e43e2aa3d7
[core, node] Support axonometric rendering
2017-10-14 03:15:34 +02:00
Konstantin Käfer
78ea88d757
[core] make forcing cache/network only more explicit
...
Previously, we used the existence of a `prior*` field in the Resource object as an indication for whether we should consult the cache or not. However, this is prone to error, since a failed cache lookup won't set any prior fields. Therefore, we manually set `priorExpires` to 0. This in turn triggered another bug where generated wrong expiration timestamps when the server response we got was expired (or expired between sending and receiving).
This commit changes the flags so that we can now explicitly request CacheOnly/NetworkOnly (or All) loading methods, rather than the implicit Optional/Required naming scheme.
2017-10-12 17:58:03 +02:00
Konstantin Käfer
f4cb3b8a4f
[core] make forcing cache/network only more explicit
...
Previously, we used the existence of a `prior*` field in the Resource object as an indication for whether we should consult the cache or not. However, this is prone to error, since a failed cache lookup won't set any prior fields. Therefore, we manually set `priorExpires` to 0. This in turn triggered another bug where generated wrong expiration timestamps when the server response we got was expired (or expired between sending and receiving).
This commit changes the flags so that we can now explicitly request CacheOnly/NetworkOnly (or All) loading methods, rather than the implicit Optional/Required naming scheme.
2017-10-12 10:41:49 +02:00
Asheem Mamoowala
df20b0cbec
[core] Add cameraForLatLngs() method with modified bearing
2017-10-09 13:58:11 -07:00
Asheem Mamoowala
2366487275
[core] Add cameraForLatLngs() method with modified bearing
2017-10-09 11:42:37 -07:00
Konstantin Käfer
8fae8a1645
[core] Add minzoom to GeoJSONOptions
2017-09-28 15:47:21 -07:00
Konstantin Käfer
64c75b442c
[build] split out DefaultFileSource and dependents to a separate target
...
We don't want to link it into the node bindings, so keep it in a separate target
2017-09-28 13:48:36 -04:00
Jesse Crocker
a06f4849bc
[core] Move *TileID hashing to separate impl
2017-09-26 10:55:40 -07:00
Ivo van Dongen
97a010cc9b
[core] custom layer - add contextLost callback
...
- optional callback method that can be used to do cleanup when the context has been lost before re-initialisation
2017-09-22 23:33:56 +03:00
Ivo van Dongen
8b9794b1a7
[core] Actor/ActorRef - ask calls to void methods
...
- allows to wait for execution of void methods as well as non-void methods
2017-09-22 23:33:56 +03:00
Ivo van Dongen
bda6ed26c6
[core] send signal to RenderCustomLayer when gl context has been lost
...
- Prevents cleaning up of GL resources that no longer exist, resulting in a crash
2017-09-22 23:33:56 +03:00
Konstantin Käfer
bd553de7bc
[test] add ability to take the OnlineFileSource offline
...
This functionality is used for testing to ensure correct offline behavior when connectivity is missing.
2017-09-22 10:57:15 +02:00
Lauren Budorick
a9ddf5b7fd
Preserve depth buffer between 3D layers + optimize render order ( #9931 )
...
Port of https://github.com/mapbox/mapbox-gl-js/pull/5101 : adds a new render pass `Pass3D` before any other rendering wherein we render layers with 3D passes (fill-extrusion layers) to offscreen framebuffers, sharing a depth renderbuffer between those layers in order to render 3D space correctly. Those framebuffers are saved on the RenderLayers and copied back to the map during the translucent pass. Rendering to offscreen framebuffers before we do any clear + draw means we can avoid expensive framebuffer restores.
2017-09-21 14:26:48 -07:00
Asheem Mamoowala
2d84e2a1ae
Fix platform dependent number type unsigned long -> uint64_t
2017-09-20 09:05:45 -07:00
Bruno de Oliveira Abinader
cda418198f
[core] Clear atlasImage rect for a removed pattern
2017-09-13 22:17:41 +03:00
Asheem Mamoowala
50fd917510
Fast tileCount with help from @mapbox/sphericalmercator module
2017-09-08 17:38:42 -07:00
Lauren Budorick
f8a53234ff
[core] Remove debug::renderTree
2017-09-07 12:07:46 -07:00
Bruno de Oliveira Abinader
d43757271e
[node] Cleanup NodeMap::Render
2017-08-31 10:17:21 +03:00
Asheem Mamoowala
69b52367d3
[core][ios][macos][android]DDS-ify text-letter-spacing and text-max-width
2017-08-30 10:59:08 -07:00
Ivo van Dongen
6b9a1268a4
[core] enable Thread destruction from arbitrary threads
2017-08-30 17:18:37 +03:00
Ivo van Dongen
0bb97e2307
[core] make thread.hpp public
2017-08-30 17:18:37 +03:00
Lauren Budorick
2de89a99bc
Implement icon-anchor property
2017-08-28 13:32:56 -07:00
Asheem Mamoowala
d21f19686b
Set Default MaxZoom to 22
2017-08-21 15:01:36 -07:00
Bruno de Oliveira Abinader
6179e0f9c0
[core] Added Style::getDefaultCamera()
2017-08-11 22:04:52 +03:00
Ivo van Dongen
1ff8b3a799
[core] make RunLoop::schedule public
2017-08-09 12:08:21 +03:00
Ivo van Dongen
edaa002c3c
[core] current scheduler
...
- Adds a way to set the current scheduler on the thread to be used whenever a mailbox is created that needs to reply on this thread
2017-08-09 12:08:21 +03:00
John Firebaugh
822df3dd51
[core] Use separate attribute component for line normals
...
Broadcom GPUs don't cope well with using the least significant bit for this.
2017-08-08 18:06:44 -07:00
Konstantin Käfer
f0a7c45064
[core] finish must-revalidate support
2017-08-08 12:40:38 +02:00
Ivo van Dongen
68f470fdda
[core] make actor self reference optional - again
...
- uses a different method of constructor selection that also works on Apple clang < 8.2.
2017-08-08 11:36:30 +03:00