Commit Graph

14444 Commits

Author SHA1 Message Date
Minh Nguyễn
3172a9744f [qt] Renamed qt5 formula to qt 2017-04-08 15:55:10 -07:00
Minh Nguyễn
b16d6bfcf6 macos-v0.4.1 2017-04-08 11:46:58 -07:00
Jason Wray
acfa49dd9f [ios] Update podspecs and changelog for v3.5.2 2017-04-07 19:23:04 -04:00
Jesse Bounds
03d10bb67a [ios, macos] Guard against looking up annotation contexts MGLAnnotationTagNotFound (#8686) 2017-04-07 15:23:39 -07:00
John Firebaugh
5e53d0586f [core] Invalidate cached tiles of disabled sources on relayout 2017-04-07 11:04:19 -07:00
Bobby Sudekum
0e72fc4ec3 [node] Calculate image buffer and length once (#8673) 2017-04-07 10:23:31 -07:00
Tobrun
62355bc860 [android] - disable building x86-64 on CI for snapshot builds (#8679)
* [android] - disable building x86-64 on CI for scheduled workflow. Broken with NDK14.

* corrected abis flag for gradle invocation

* add mips 64
2017-04-07 19:01:22 +02:00
Thiago Marcos P. Santos
6c3c421119 [Qt] Fix build when zlib is compiled with -DZ_PREFIX
Proper fix this time.
2017-04-07 17:12:28 +03:00
John Firebaugh
e05a6bb3d5 [core] Inline GlyphPBF into GlyphAtlas 2017-04-06 12:46:06 -07:00
John Firebaugh
5621a08f89 [core] Test glyph PBF parsing independently of GlyphAtlas 2017-04-06 12:46:06 -07:00
Anand Thakker
693c9f3641 [core] Add DDS support for {text,icon}-size (#8593)
* Update gl-js and generate style code

* Factor out packUint8Pair() helper function

* Draft implementation of DDS for {text,icon}-size

Ports https://github.com/mapbox/mapbox-gl-js/pull/4455

* Fix text-size/composite-function-line-placement test

* Refactor to PaintPropertyBinders-like strategy

* Dedupe gl::Program construction

* Use exponential function base for interpolation

* Dedupe coveringZoomStops method

* Fixup tests

* Fix CI errors (hidden within #if block)
2017-04-06 15:29:59 -04:00
Antonio Zugaldia
f9cc044357 [android] Update LOST to latest version 2017-04-06 13:41:53 -04:00
Konstantin Käfer
a33e62f5db [ios] expose link flags via mbgl-core target 2017-04-06 18:31:34 +02:00
Konstantin Käfer
e26308f1b9 [macos] expose link flags via mbgl-core target 2017-04-06 18:31:34 +02:00
Minh Nguyễn
8382420314 [ios, macos] Fail gracefully on invalid coordinates
Invalid coordinates no longer cause an exception to be raised immediately when used in conversion methods and model objects. Instead, the appropriate invalid values are used, consistent with MapKit. Exceptions are still raised when invalid model objects are used with the map.
2017-04-06 09:22:51 -07:00
Minh Nguyễn
ab6185fdc3 [ios, macos] Streamlined coordinate validation
Replaced preflight checks in MGLLatLngFromLocationCoordinate2D() with a try-catch block that relays exceptions raised by mbgl. De-inlined the function because it’s no longer trivial.
2017-04-06 09:22:51 -07:00
John Firebaugh
16a2839e23 [all] Make LatLng coordinates read-only 2017-04-06 09:22:51 -07:00
John Firebaugh
a261f7ff53 [android] Preflight argument validity before constructing LatLng 2017-04-06 09:22:51 -07:00
John Firebaugh
e6122d9bf0 [darwin] Preflight argument validity before constructing mbgl::LatLng 2017-04-06 09:22:51 -07:00
John Firebaugh
391a10db0e [darwin] Use MGLLatLngFromLocationCoordinate2D where appropriate 2017-04-06 09:22:51 -07:00
John Firebaugh
0314a46ee4 [core] Tighten LatLng and other geo.hpp classes
* Remove LatLng::null and enforce invariants
* Remove unnecessary operator bool()
2017-04-06 09:22:51 -07:00
John Firebaugh
56ea87357a [darwin] Fix invalid coordinates in MGLShapeSource tests 2017-04-06 09:22:51 -07:00
Bruno de Oliveira Abinader
d7c431f942 [Qt] Fix typo in gl.hpp 2017-04-06 15:14:10 +03:00
Jason Wray
371919555f [ios] Update podspecs and changelog for v3.5.1 2017-04-05 20:37:06 -04:00
Minh Nguyễn
d39ea23b09 [ios, macos] Hardened std::map usage in MGLMapVIew
Replaced std::map::operator[] usage with std::map::at(). Backed up an assertion on iOS with a guard when -annotationTagsInRect: returns the tag of a nonexistent annotation, for consistency with macOS. Removed an unnecessary and risky subscript into _annotationContextsByAnnotationTag in -positioningRectForCalloutForAnnotationWithTag: on iOS.
2017-04-05 14:56:06 -07:00
Konstantin Käfer
6fcac0f580 [core] always create a pixelbuffer surface in the EGL backend
We need a surface to activate a context. Some implementation don't seem to error when passing EGL_NO_SURFACE, but it doesn't seem standards compliant.
2017-04-05 23:05:46 +02:00
Konstantin Käfer
7c69cfa6de [core] destroy surface before context in EGL backend 2017-04-05 23:05:46 +02:00
Konstantin Käfer
038062af86 [core] destroy HeadlessDisplay after HeadlessBackend implementation 2017-04-05 23:05:46 +02:00
Jordan Kiley
5bfbe9603b [ios] replaced link to select a feature example (#8651) 2017-04-05 13:09:07 -07:00
Jesse Bounds
5d4d5dcf1b [ios, macos] Rename Data-driven styling guide (#8627)
* [ios, macos] Rename Data-driven styling guide

This turns the Data-driven styling guide into a guide for working with
style functions. This helps clarify that not all style functions are
DDS specific but keeps the discussion of this related functionality in
the same guide.
2017-04-05 12:05:29 -07:00
Fabian Guerra Soto
ec34813c90 [ios] assertion to check if an annotationTag > 0 (#8588)
* [ios] assertion to check if an annotationTag > 0

* [ios,macos] assertion and guard added to check annotations in  visibleAnnotationsInRect
2017-04-05 14:16:58 -04:00
Tobrun
b404457a74 [android] - apply mix/max zoom xml attributes (#8631) 2017-04-05 16:20:11 +02:00
Minh Nguyễn
8539d7092e [ios, macos] Preserve symlinks when zipping framework 2017-04-05 01:25:37 -07:00
Jesse Bounds
ff73371216 [ios] Silence incompatible type warning for callout view (#8608)
This silences a compatibility warning that was introduced in a previous
refactor that changed the return type of the callout view for
annotation delegate method. This also adds checks to ensure that the
callout view provided by the delegate to the map view is of the correct
type and conforms to the correct protocol.
2017-04-04 15:25:59 -07:00
Tobrun
e34b471842 Release android v5.0.2 (#8629)
* [android] - update CHANGELOG.md for v5.0.2 release

* [android] - bump version name to 5.0.2

* [android] - fixup javadoc errors

* bump SNAPSHOT version
2017-04-04 21:14:32 +02:00
Chris Loer
ad2948927f Slightly move center of text-font/chinese test to avoid render errors
presumed to stem from issue #6863.
2017-04-04 11:33:12 -07:00
Chris Loer
5cdf838a38 [core] De-mutex GlyphAtlas and SpriteAtlas
- Expose glyph and icon information to workers via message interface.
 - Glyph/SpriteAtlas track which tiles have outstanding requests
    and send messages to them when glyphs/icons become available.
 - Remove obsolete "updateSymbolDependentTiles" pathway
 - Symbol preparation for a tile now depends on all glyphs becoming
    available before it can start.
 - Start tracking individual icons needed for a tile, although we don't
    do anything with the information yet.
 - Introduce typedef for GlyphID
2017-04-04 11:33:12 -07:00
Konstantin Käfer
64beba3acc [core] fix equality operator on Color 2017-04-04 18:31:11 +03:00
Ivo van Dongen
1d1ea2fa24 [core] fixup stale constants references in test fixtures 2017-04-04 18:31:11 +03:00
Ivo van Dongen
705caf0f26 [core] return empty optional when color could not be parsed 2017-04-04 18:31:11 +03:00
Eimantas Vaiciunas
4a4b6a8af3 Show zoom level in window's title bar 2017-04-03 21:44:14 -07:00
Minh Nguyễn
6718d2cc51 [macos] Removed MGLUserTrackingMode from jazzy ToC 2017-04-03 15:36:07 -07:00
Minh Nguyễn
fc382f7108 [macos] Fixed broken images in DDS guide 2017-04-03 15:36:07 -07:00
Konstantin Käfer
f86333961e [core] cache binary shaders on Android 2017-04-03 11:01:43 -07:00
John Firebaugh
c1cd6759b4 [core] Extract and de-templatize several Program static methods 2017-04-03 11:01:43 -07:00
Anand Thakker
b5b4549b6d Fix edge case in composite function interpolation (#8613)
This fixes a bug where, for a zoom value greater than that of the highest zoom
stop, composite function interpolation would return nan. (Blocking a render
test over in #8593)

* Add failing tests for composite function edge case

The failing cases here are:
 - Should interpolate before the first stop
 - Should interpolate past the last stop

* Fix edge case in composite function interpolation

* Hold functions constant outside stop-defined domain
2017-04-03 12:25:36 -04:00
John Firebaugh
d092841b19 [core] Add another explanatory comment to PaintPropertyBinder 2017-04-03 09:12:46 -07:00
John Firebaugh
da35f64f09 [core] Remove unused ThreadLocal constructor 2017-04-03 14:27:41 +03:00
Konstantin Käfer
74ff435462 [build] Add Android Release build on Circle CI 2017-04-03 10:54:47 +02:00
Konstantin Käfer
b2570b909b [android] Fix implicit geometry conversions for NDK r13b 2017-04-03 10:54:47 +02:00