Asheem Mamoowala
5ff9d6e31b
[core] Reuse RasterBucket for ImageSource
2017-06-01 15:38:01 -07:00
Asheem Mamoowala
8b37a0704c
[core] Use fixed-size std::array for ImageSource coordinates
2017-06-01 15:38:01 -07:00
Asheem Mamoowala
843da07b28
[core] Update gl-js submodule to include ImageSource render tests
2017-06-01 15:38:01 -07:00
Asheem Mamoowala
1b86bf16b2
[core] Render Image Source
2017-06-01 15:38:01 -07:00
Asheem Mamoowala
aa6647e910
[core] Offline support for Image Sources
2017-06-01 15:38:01 -07:00
Asheem Mamoowala
c0c1028dcf
[core] Add toDouble Conversion method for correctly parsing Lat Lng coordinates
2017-06-01 15:38:01 -07:00
Asheem Mamoowala
7a010df956
[core] Add ImageSource support to style parsers
2017-06-01 15:38:01 -07:00
Ivo van Dongen
9068c90fc4
[android] fix crash in runtime style ui tests
2017-06-01 18:14:19 +03:00
Bruno de Oliveira Abinader
99cfbacdfb
[core] Make TransformState LatLngBounds optional
2017-06-01 17:04:09 +03:00
Pablo Guardiola
8935845171
[android] Fix tracking mode + camera race condition ( #9133 )
...
* [android] fix tracking mode + camera race condition
* fix resetTrackingModesIfRequired bug (comparing current camera position with target camera position
2017-05-31 09:56:31 +02:00
Bobby Sudekum
04c5399d41
Bump node version - v3.5.3 ( #9144 )
2017-05-30 12:14:08 -07:00
John Firebaugh
6be6263ebf
[core] Replace inline SpriteAtlas updates with diffing
2017-05-30 11:34:13 -07:00
Ivo van Dongen
fb3cef632d
[ios][macos] test remove source in use
2017-05-30 13:07:03 +03:00
Ivo van Dongen
5d956d81cc
[android] test remove source in use
2017-05-30 13:07:03 +03:00
Ivo van Dongen
005dc6d122
[core] check source usage before remove
2017-05-30 13:07:03 +03:00
Ivo van Dongen
ff3dc29ffd
[core] ensure layer::accept works with non-void return values on gcc
2017-05-30 13:07:03 +03:00
Bruno de Oliveira Abinader
b83dfb7eb5
Revert "[core] Factor timePoint initialization"
...
This reverts commit 3790caafa3 .
2017-05-30 13:03:07 +03:00
Ivo van Dongen
5cf0fc0f8b
[core] default file source - ensure thread safety for cached values
2017-05-27 10:05:36 +03:00
Ivo van Dongen
89129379f1
[core] default file source - ensure thread safety for local file and asset requests
2017-05-27 10:05:36 +03:00
Ivo van Dongen
b353f45fed
[core] add test to demonstrate waiting threads in mailbox::receive won't crash on self-closing
2017-05-27 09:25:03 +03:00
Ivo van Dongen
b608d85db7
[core] allow self closing mailbox/actor
2017-05-27 09:25:03 +03:00
Asheem Mamoowala
f0d0e7423b
Refactor RenderLayer and RenderSource to be more friendly for Non-tiled sources ( #9058 )
2017-05-26 16:54:36 -07:00
John Firebaugh
2e0ceeb9c1
[core] Don't need unique_ptr for AnnotationManager
2017-05-26 11:21:56 -07:00
John Firebaugh
aa216d0025
[core] Don't use a separate SpriteAtlas for annotation images
...
Instead, just add them to the Style as needed. Includes changes from #8905 and takes care to avoid regressing #3817 .
2017-05-26 11:21:56 -07:00
John Firebaugh
6cf9d5cfbf
[test] Lower memory ceiling
...
We gained a lot of overhead by reducing the initial SpriteAtlas size.
2017-05-26 11:21:56 -07:00
John Firebaugh
d766af44c8
[core] Auto-growable SpriteAtlas using shelf-pack
2017-05-26 11:21:56 -07:00
John Firebaugh
e4e08aca79
[tests] Add test for calling addAnnotationImage with an existing ID
2017-05-26 11:21:56 -07:00
John Firebaugh
2c8343aa82
[core] Block in Mailbox::close() until neither receive nor push are in progress
...
Otherwise, an ActorRef that's in the process of sending a message could attempt to access an invalid Scheduler reference:
Thread 1 Thread 2
--------------------------------------------------
Scheduler::Scheduler
Actor::Actor
weakMailbox.lock()
Actor::~Actor
Scheduler::~Scheduler
mailbox->push()
scheduler.schedule() 💣
2017-05-24 08:19:19 -07:00
Ivo van Dongen
8b448786fe
[core] cleanup debug logging
2017-05-24 11:21:34 +03:00
John Firebaugh
1759603e12
[core] Simplify and fix sprite atlas coordinate calculations
...
* Always return image metrics exclusive of padding
* Work with integer coordinates whenever possible
* Eliminate redundant SpriteAtlasElement members
* Fix asymmetric re-padding in getIconQuad when pixelRatio != 1
* Add explanatory comments
2017-05-23 12:59:27 -07:00
John Firebaugh
9e1cbbeacb
[node] Pixel ratio may be floating point
2017-05-23 12:59:27 -07:00
John Firebaugh
71c8f6aa10
[core] Move pattern coordinate division by texture size into shader
...
This makes pattern usage more like icons, and will be necessary for data-driven *-pattern properties.
2017-05-23 12:59:27 -07:00
John Firebaugh
72b13cef6a
[core] Remove unnecessary optionals in PositionedIcon
...
Lack of icon is already checked at the call site of shapeIcon; no need to check hasArea() here.
2017-05-23 12:59:27 -07:00
Ivo van Dongen
3d26574cb4
[android] replace branches on layer types with visitors
2017-05-23 10:06:56 +03:00
Ivo van Dongen
95d2ed7b95
[android] owning constructor for custom layer
2017-05-23 10:06:56 +03:00
Ivo van Dongen
2dd8553096
[core] forward visitor in layer::accept
2017-05-23 10:06:56 +03:00
Chris Loer
67811c9f48
[core] Update gl-js submodule.
2017-05-22 10:54:45 -07:00
Chris Loer
6ceecb5581
[core] Disable letter-spacing for Arabic labels (issue #9057 )
2017-05-22 10:54:45 -07:00
Eimantas
9e6a79ad9b
[ios, macos] Add overlays property to MGLMapView ( #8617 )
...
* Add `overlays` property to `MGLMapView.mm`
Implemented by filtering the `annotations` property for
annotations that conform to `MGLOverlay` protocol.
* Handle `nil` case when returning overlays
* Add basic documentation for `overlays` property
Copied verbatim from `annotations` property. Changed types.
* Add `overlays` property to iOS sdk
Implementation is identical to the one in macOS SDK.
* Match curly braces style
* Make `overlays` property `nonnull` on iOS
* Make `overlays` property `nonnull` on macOS
* Make cosmetic changes
* [ios, macos] Moved changelog entry to master
2017-05-20 20:32:10 -07:00
John Firebaugh
1f921299b0
[core] Make ExponentialStops behavior consistent; add tests
2017-05-19 11:48:45 -07:00
John Firebaugh
bdff99c853
[core] Eliminate round-trip through Value in CameraFunction::evaluate
2017-05-19 11:48:45 -07:00
Bobby Sudekum
895275d6fc
Release node-v3.5.2 ( #9052 )
2017-05-19 11:27:48 -05:00
Konstantin Käfer
d664a3e05e
[core] leave Image objects in a valid state after premultiply/unpremultiply
2017-05-19 14:13:07 +02:00
Minh Nguyễn
281d3d4f8c
Merge branch 'release-ios-v3.5.0-android-v5.0.0' into 1ec5-release-ios-v3.5.4
2017-05-18 18:04:07 -07:00
Asheem Mamoowala
8c75001443
[core][ios] Use explicit submodule update for ios target ( #8973 )
...
Closes #8750
2017-05-18 13:48:26 -07:00
Chris Loer
cd4e67968a
[core] Don't unnecessarily request glyphs for verticalized punctuation.
...
Issue #8982 .
2017-05-18 11:19:17 -07:00
Konstantin Käfer
eae2c715f1
[core] add error for non-virtual destructor deletes + add virtual dtors
2017-05-18 16:57:12 +02:00
Konstantin Käfer
5d7e54a815
[core] Make destructor virtual to avoid object splicing during destruction
2017-05-18 16:57:12 +02:00
Chris Loer
77b24bc0d3
[core] Throttle tiles to redo symbol placement at most once every 300ms.
...
Fixes issue #8435 and prepares for pitch-scaling changes in issue #8967 .
2017-05-17 16:25:06 -07:00
John Firebaugh
e7154adac3
[core] Remove redundant SpriteAtlasElement members
2017-05-17 11:23:47 -07:00