Commit Graph

4065 Commits

Author SHA1 Message Date
Jesse Bounds
b9d3ccc995 [ios] Remove annotation view from container view when annotation removed (#9025)
The annotation container view keeps an array of annotation views that is separate from the array of subviews that is a property of the UIView parent class. This removes an annotation view from that container view array when the associated annotation is removed. This avoids issue related to previously removed annotation views continuing to be involved in map view logic around annotation view selection due to taps.
2017-05-19 11:27:46 -07:00
Jesse Bounds
554b1cf3e2 [ios] Add annotation view initializer with annotation and reuse id (#9029) 2017-05-19 09:35:09 -07:00
Jesse Bounds
7612e23dff [ios, macos] Change == to = in style function initializers 2017-05-19 08:06:24 -07:00
Fredrik Karlsson
3b109c8540 Observe layout guides (#7716)
* [ios] observe layout guides

* [ios] update changelog
2017-05-19 14:01:35 +02:00
Tobrun
f4f587f46d [android] - remove marker from selected markers when removing marker from annotation manager. (#9047) 2017-05-19 12:23:47 +02:00
Tobrun
eb83c72509 [android] - bump tools and support lib version due to SNAPSHOT dependencies (#9046)
* [android] - bump tools and support lib version for SNAPSHOT dependencies

* revert unsupported Circle CI build tools version
2017-05-19 09:14:54 +02:00
Jordan Kiley
4f90d7a566 [ios] Telemetry button in modal view controllers (#9027)
Fixes #8980.
2017-05-17 15:46:27 -07:00
Minh Nguyễn
30b919196b [ios, macos] Factored out tile URL template guide
Factored out redundant tile URL template documentation from the MGLRasterSource and MGLVectorSource documentation into a jazzy guide. This documentation used to live in one place, on a method on MGLTileSource, but that method had to be moved to MGLTileSource’s concrete subclasses. A jazzy guide is easier to link to, in any case.
2017-05-16 16:42:31 -07:00
Jordan Kiley
c7acb5516b [ios, macos] edited identity interpolation mode documentation (#8657) 2017-05-15 11:27:10 -07:00
Tobrun
59442167b1 [android] - MarkerView deselect events with OnMarkerViewClickListener integration (#8996) 2017-05-15 13:39:34 +02:00
Tobrun
a68788a2cf [android] Release android-v5.1.0-beta.2 (#8976)
* [android] url getter on sources

* [android] fix ui test filter in makefile

* [android] - build SNAPSHOT from release branch (#8958)

* [android] - update changelog for 5.1.0-beta.2

* [android] - bump version number

* [android] - Camera change listener v2.0

* [core] allow filesource url transform reset

* [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

* [android] update hardcoded branch name

* revert version to 5.1.0-SNAPSHOT
2017-05-12 14:07:06 -04:00
Minh Nguyễn
886bf2528f [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.

Cherry-picked from 4d6f54553d.
2017-05-12 10:02:27 -07:00
Minh Nguyễn
c5ee41a93a [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.

Cherry-picked from 9e384b78fb.
2017-05-12 10:02:27 -07:00
Minh Nguyễn
d85471b7de [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.

Cherry-picked from ca97dd8cf4.
2017-05-12 10:02:27 -07:00
Minh Nguyễn
0ef1293dad [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.

Cherry-picked from ed54849e99.
2017-05-12 10:02:27 -07:00
Tobrun
cb737362b6 [android] - update proguard config, allow debug mimification, update OkHttp to latest version (#8944) 2017-05-12 15:27:27 +02:00
Tobrun
e681f69993 [android] - update LOST to 2.3.0 (#8872) 2017-05-12 15:16:13 +02:00
Tobrun
850b008a2f [android] - avoid crashing when deleting already deleted region (#8920) 2017-05-11 21:39:17 +02:00
Tobrun
ad46d67aeb [android] - keep observer when timeout occurs, make observer param nullable, fixup log messages (#8919) 2017-05-11 21:00:41 +02:00
Antonio Zugaldia
08916f2d5f [android] Update release script to support CircleCI builds (#8950)
* update release script to trigger builds on circleci now

* update release script to trigger builds on circleci now
2017-05-11 09:19:24 -04: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
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
Minh Nguyễn
df5252725c [ios, macos] Corrected map a11y value format strings
Corrected MGLMapView accessibility value format strings in Catalan, Russian, and Swedish.
2017-05-02 01:45:05 -07:00