Commit Graph

10552 Commits

Author SHA1 Message Date
Jesse Bounds
b7b6706576 [ios] Use map view frame to calculate annotation view reuse adjustments (#8926)
* [ios] Use map view frame to calculate annotation view reuse adjustments

The value for determining the visible viewport buffer and also the distance to move offscreen an annotation view outside of that buffer was based on the annotation view width and height. This changes that to use the map viewport width and height as constants and avoids a class of bugs where the annotation view would become detached from the tracking system when it did not have a size or was animating from a small to large size.
2017-05-09 12:08:41 -07:00
Bruno de Oliveira Abinader
c69fae99a5 [build] Suppress GLFW redefining GLAPIENTRY error 2017-05-09 14:35:34 +03:00
Minh Nguyễn
93ab5387d9 [android] Added Swedish localization from Transifex 2017-05-08 15:17:32 -07:00
Minh Nguyễn
36382af4b8 [ios, macos] Updated localizations from Transifex
Pulled various translations from Transifex.

Although Transifex supports the stringsdict format, it doesn’t allow translators to customize the format. This change splits out a separate “level” key for the same format string and moves any prefixes and suffixes into the “level” and “count” keys. For now, each localization has been updated manually, but future updates will come from Transifex.
2017-05-08 15:17:32 -07:00
Minh Nguyễn
e21083e34c [ios] Configured stringsdict from Transifex 2017-05-08 15:17:32 -07:00
Minh Nguyễn
5cc641ecad [ios, macos] Moved DDS guide examples to Swift unit test
Moved example code from DDS guide to a unit test written in Swift. The code is inserted into the guide at codegen time.
2017-05-08 14:41:21 -07:00
Minh Nguyễn
dc7e30dd43 [ios, macos] Fixed syntax error in DDS guide 2017-05-08 14:41:21 -07:00
John Firebaugh
baaae99a03 [core, android] Factor JSON string conversions
This adds a `convertJSON` template, to be used like:

   Error error
   optional<Foo> foo = convertJSON<Foo>(string, error);

Internally, it parses the string with RapidJSON and then calls `convert<Foo>(parsed, error)`.

While here, rationalize GeoJSON converters and fix error handling for Tileset conversion in OfflineDownload.
2017-05-08 13:48:57 -07:00
Jason Wray
e34d8b5c80 [ios] Re-enable all console messages in iosapp
The Xcode 8 spew that prompted the addition of this setting has been
fixed and leaving it enabled was hiding important error messages.
2017-05-08 15:44:52 -04:00
Jason Wray
d99ebea930 [ios] Check for NaN when calculating scale bar width 2017-05-08 15:44:51 -04:00
Bobby Sudekum
5693befa78 [node] bump version, add changelog entry (#8924) 2017-05-08 11:27:36 -07:00
Ivo van Dongen
6fd40867d6 [core] delegate light changes to render light 2017-05-08 19:39:55 +03:00
Ivo van Dongen
feae5e22ee [core] generated accessor methods on light 2017-05-08 19:39:55 +03:00
Ivo van Dongen
20810f988a [core] render light 2017-05-08 19:39:55 +03:00
Lauren Budorick
1c9af3226f [core] Reuse fill-extrusion textures between frames (#8896) 2017-05-08 09:06:07 -07:00
Tobrun
b622aed349 [android] - bump android support library, fixup SDK gradle dependencies to use the ones defined in root project. (#8921) 2017-05-08 17:30:15 +02:00
Tobrun
45545e15fc [android] - show error message when no browser is installed on the device of the user. (#8901) 2017-05-08 12:07:00 +02:00
John Firebaugh
dd353a60d1 [core] Reset observers of removed Sources and Layers
This ensures that the observer is not an invalid reference if the removed Source/Layer is retained, but the Style is deallocated.
2017-05-05 09:23:01 -07:00
John Firebaugh
54b7684baa [core] Remove unused declaration 2017-05-05 08:57:30 -07:00
John Firebaugh
7ca8fd07e0 [core] Remove unused declaration 2017-05-05 08:57:30 -07:00
John Firebaugh
66da759426 [core] Reduce use of RecalculateStyle
* Don't use it to track zoom changes. Instead, Style::update can use the zoom history to check for a change in zoom from the previous frame.
* Don't use it to track active property transitions. Style already knows which layers/light have an active transition, and can re-evaluate only those that do.

This leaves layer property changes as the only use of RecalculateStyle.
2017-05-05 08:56:36 -07:00
Konstantin Käfer
fd104dd3c2 [core] Throw exceptions by value 2017-05-05 14:42:47 +02:00
Dane Springmeyer
bf959b9d86 [node] start publishing both release+debug builds (#8865) 2017-05-04 16:43:54 -07:00
Minh Nguyễn
6868b2557d [core] Corrected mapbox-gl-js submodule pin 2017-05-04 12:39:29 -07:00
Bruno de Oliveira Abinader
f59ba4e3f3 Revert "[Qt] Don't regen BackendScope on every QMapboxGL::render() call"
This reverts commit 806da5d940.
2017-05-04 21:02:40 +03:00
Bobby Sudekum
36ec203324 Add support for node v6 (#8884) 2017-05-04 10:31:26 -07:00
John Firebaugh
e7d2796762 [core] Omnibus Style::update method
Combine Style::cascade, recalculate, relayout, and updateTiles into a single method. This allows multiple loops over sources and layers to be consolidated and prepares for additional Style-Map decoupling: rather than tracking pending updates via a set of Update flags held by the Map and passed to the Style, the Style can use its own data to determine what to update.
2017-05-04 09:59:56 -07:00
John Firebaugh
89f1ffc6d2 [core] UpdateParameters ⇢ TileParameters 2017-05-04 07:29:08 -07:00
Bruno de Oliveira Abinader
806da5d940 [Qt] Don't regen BackendScope on every QMapboxGL::render() call 2017-05-04 15:58:30 +03:00
Tobrun
1b16be409a [android] - only build custom layer for debug builds (#8885) 2017-05-04 11:13:54 +02:00
John Firebaugh
3790caafa3 [core] Factor timePoint initialization 2017-05-03 11:20:01 -07:00
John Firebaugh
88093bd708 [core] Calculate hasPendingTransitions functionally rather than statefully 2017-05-03 10:41:04 -07:00
John Firebaugh
d5f4d0f05f [core] Move render-related sources out of style directory/namespace
Moves the following to the renderer directory and out of the style namespace:

* CascadeParameters
* PropertyEvaluationParameters
* UpdateParameters
* PropertyEvaluator
* DataDrivenPropertyEvaluator
* CrossFadedPropertyEvaluator
* PaintPropertyBinder
* PaintProperyStatistics
* PossiblyEvaluatedPropertyValue
* TransitioningLight
* EvaluatedLight
2017-05-03 08:30:17 -07:00
John Firebaugh
6c7730ee7c [core] No need to Update::Classes after removing a layer 2017-05-03 08:30:02 -07:00
John Firebaugh
b8b9978b69 [core] No need to manually set Update::Classes flag after annotation update
Since the advent of the runtime styling APIs, the APIs used by AnnotationManager::updateStyle will automatically set this flag as needed.
2017-05-03 08:30:02 -07:00
John Firebaugh
1e26d99e1e [core] Remove forced style cascade
This should happen automatically during rendering. After removing, I can no longer replicate the original issue (#1889).
2017-05-03 08:29:46 -07:00
Tobrun
ab20413edf [android] - add 3D buildings example (#8845)
[android] - add support for filter for fillextrusionlayer.
2017-05-03 08:59:55 +02:00
John Firebaugh
e9872b4ed0 Revert "[node] Temporary: exit(0) on exception in Painter::render"
This reverts commit f0d4411871.
2017-05-02 16:13:21 -07:00
Jason Wray
fd344aaa14 [ios] Bump podspecs for v3.6.0-alpha.1 2017-05-02 17:22:59 -04:00
Justin R. Miller
e5ae80ca96 [ios] properly show attribution in modal hierarchies (#8837)
fixes #8782
2017-05-02 14:07:57 -07:00
Asheem Mamoowala
5c52401d55 [core] Make Map.addImage tests pass (#8843)
Fix Node tests suite implementation to parse pixelRatio from style json
Premultiply images in the node binding before sending to mbgl core
2017-05-02 09:54:06 -07:00
John Firebaugh
3f0c89d633 [core] Refactor Source::*Impls into RenderSources and TilePyramid 2017-05-02 08:45:09 -07:00
John Firebaugh
197751bace [core] Load source TileJSON immediately
This reverses #3095. Rationale:

* We're now exposing source attributes as a public API. Making those attributes unavailable at certain times complicates that API.
* We're preparing to split RenderSource out of Source. Removing this removes a point of coupling between the two.
2017-05-02 08:45:09 -07:00
John Firebaugh
c2b00378b7 [all] Push querySourceFeatures back out to Map
Once Source and RendererSource are split, Source will no longer have access to tiles.
2017-05-02 08:45:09 -07:00
Tobrun
a235032098 [android] - CHANGELOG.md update for release-v5.1.0-beta.1 (#8857) 2017-05-02 14:39:32 +02:00
Bruno de Oliveira Abinader
fd9e60c748 [build] Added 'shared_thread_pool.cpp' to 'mbgl-core' target on Linux 2017-05-02 12:54:37 +03:00
Bruno de Oliveira Abinader
d0239df39d [core] Fix compilation error with older libpng versions 2017-05-02 12:54:37 +03:00
Bruno de Oliveira Abinader
d9d55f93c1 [core] Fix compilation error with older libicu versions 2017-05-02 12:54:37 +03:00
Bruno de Oliveira Abinader
185c6e5d3b [build] Added 'mbgl-loop-uv' to 'linux-core' target 2017-05-02 12:54:37 +03:00
Thiago Marcos P. Santos
bc868b8433 [core] Suppress "stencil mask overflow" warning
When it starts, we get a log warning for every frame, which is
expensive. Now we get only one warning.
2017-05-02 12:25:38 +03:00