Commit Graph

4074 Commits

Author SHA1 Message Date
John Firebaugh
786707649a [core] Remove ambiguous get{Width,Height} accessors from style::Image 2017-05-17 11:23:47 -07:00
John Firebaugh
cc1ea759a6 [core, node, darwin, android, qt] Make image ID part of Image
More like Source and Layer.
2017-05-16 12:26:35 -07:00
jingsam
e4c66ac27c Update README.md 2017-05-15 10:16:42 -07:00
John Firebaugh
244fdaa405 [qt] Un-deprecate QMapboxGL::setTransitionOptions
It's still relevant for runtime-styling driven paint property changes.
2017-05-15 09:45:55 -07:00
John Firebaugh
9eba2a66d1 [core, node, darwin, qt] Remove support for paint classes 2017-05-15 09:45:55 -07:00
Ivo van Dongen
cc9f040a2d [core] Split style image collection from SpriteAtlas 2017-05-12 13:19:00 -07:00
John Firebaugh
c2a5894f2d [core] Immutable Impls 2017-05-12 11:26:27 -07:00
Bruno de Oliveira Abinader
17af488048 [tidy] modernize-make-unique 2017-05-12 18:07:36 +03:00
Bruno de Oliveira Abinader
c6eb4afe0e [tidy] modernize-deprecated-headers 2017-05-12 18:07:36 +03:00
Bruno de Oliveira Abinader
37046938da [tidy] modernize-raw-string-literal 2017-05-12 18:07:36 +03:00
Bruno de Oliveira Abinader
baeaad83a3 [tidy] modernize-use-emplace 2017-05-12 18:07:36 +03:00
Bruno de Oliveira Abinader
1e1da36123 [tidy] modernize-use-equals-default 2017-05-12 18:07:36 +03:00
Bruno de Oliveira Abinader
bd7fb64bae [tidy] modernize-use-nullptr 2017-05-12 18:07:36 +03:00
Bruno de Oliveira Abinader
9894e58047 [tidy] modernize-use-override 2017-05-12 18:07:36 +03:00
Bruno de Oliveira Abinader
fa36110dfb [tidy] modernize-use-auto 2017-05-12 18:07:36 +03:00
Bruno de Oliveira Abinader
f709d7b055 [tidy] llvm-namespace-comment 2017-05-12 18:07:36 +03:00
Eric Wolfe
cc2ee3cd7a [android] Update attribution wordmark (#8774)
* Update wordmark on android

* Moved attribution i icon to the right of mapbox word (in mapview preview image)

* update padding and margin
2017-05-12 15:13:09 +02:00
Ivo van Dongen
6b0e0a9055 [core] allow filesource url transform reset 2017-05-12 14:55:40 +03:00
Pablo Guardiola
85cb04be22 [android] Fix gradle developer config creation task with discussed suggestions (#8897)
* fix gradle developer config creation task with discussed suggestions

* fix access token not set error message
2017-05-12 12:34:03 +02:00
Minh Nguyễn
4d6f54553d [core, android, ios, macos] Added Traffic Day/Night to default styles
The Styles API section of the Mapbox API Documentation site now lists Traffic Day v2 and Traffic Night v2, so this change adds those styles to all the places where styles are listed.

Also switched iosapp and macosapp to unversioned style factory methods since MGLStyleDefaultVersion is no longer applicable for all styles.
2017-05-11 18:57:39 -07:00
Minh Nguyễn
9e384b78fb [ios, macos] Undeprecated unversioned style URL factory methods
Undeprecated the unversioned style URL factory methods in MGLStyle for consistency with the Android and Qt SDKs. Added warnings about using them with the runtime styling API.

Refactored mbgl::util::default_styles to track different versions for different styles.
2017-05-11 18:57:39 -07:00
Minh Nguyễn
ca97dd8cf4 [ios, macos] Updated documented default style version
MGLStyleDefaultVersion is just for Streets now. Deleted style version documentation tests because not all styles are on the same version.
2017-05-11 18:57:39 -07:00
Minh Nguyễn
ed54849e99 [core, android, ios, macos, qt] v10 default styles
Upgraded from v9 default styles to v10 wherever the developer expects to get the latest and greatest, as well as in a couple tests where it may be beneficial to ensure that we can handle a two-digit version number in the style URL.
2017-05-11 18:57:39 -07:00
Konstantin Käfer
78af1c6625 [ios] remove Secure Transport exception from demo app 2017-05-11 15:40:42 -07:00
Thiago Marcos P. Santos
9bea2007a0 [Qt] Add example of adding a layer before other layer 2017-05-11 20:28:18 +03:00
Thiago Marcos P. Santos
c307273dae [Qt] Make it possible to add a layer before another layer 2017-05-11 20:28:18 +03:00
Ivo van Dongen
489f76d3a2 [android] url getter on sources 2017-05-11 18:59:11 +03:00
Pablo Guardiola
5290d7ed4c [android] refactor move unit tests from test app to sdk and add some annotation manager tests (add marker and add markers) (#8261) 2017-05-11 12:06:11 +02:00
John Firebaugh
c130d470a1 [core] Remove StyleSourcedAnnotation support
The functionality this provided has been subsumed by the runtime styling API.
2017-05-10 14:22:01 -07:00
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
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
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
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
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
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
Tobrun
ab20413edf [android] - add 3D buildings example (#8845)
[android] - add support for filter for fillextrusionlayer.
2017-05-03 08:59:55 +02: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