Commit Graph

14444 Commits

Author SHA1 Message Date
Pablo Guardiola
82a3a7e746 [android] Update Lost to final version 3.0.0 (#9112)
* update lost to final version 3.0.0

* bump MAS version to 2.1.1
2017-05-26 20:00:40 +02:00
Tobrun
5716bd3aec [android] - add binding support for Light (#9013) 2017-05-26 16:04:09 +02:00
Tobrun
c392c678ab [android] - logo placement for creating a Mapview programatically (#9094)
* [android] - Correct logo placement for creating a Mapview programatically, fixup non default placements

* Fixed NIGHTY_TWO_DP typo to NINETY_TWO_DP
2017-05-26 10:32:11 +02:00
Jordan Kiley
35f548a07d [ios] Moved MGLLight in jazzy table of contents (#9111) 2017-05-25 18:09:45 -07:00
Jesse Bounds
fce7747da0 [ios] Fix annotation initializers for subclasses of MGLAnnotationView (#9104)
Use a common init function in both of the provided initializers so that subclasses of `MGLAnnotationView` written in Swift don't need to override `init(annotation, reuseIdentifier)`
2017-05-24 21:08:19 -07:00
Fabian Guerra
e1431f9085 [ios, macos] Fix MGLLight.achor to accept style functions 2017-05-24 14:47:47 -04:00
Tobrun
8199315e9d [android] - LatLngBounds bearing default value (#9102) 2017-05-24 20:39:42 +02: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
Tobrun
3c35bf1d17 [android] - stop location updates when toggle MyLocationView state (#9099) 2017-05-24 14:47:31 +02:00
Ivo van Dongen
8b448786fe [core] cleanup debug logging 2017-05-24 11:21:34 +03:00
Minh Nguyễn
8c73cb1a46 [macos] Enable View ‣ Traffic Night
Enable the View ‣ Traffic Night menu item and check it when that style is active.
2017-05-23 14:37:26 -07:00
Fabian Guerra
091d3d1d7b [ios] Update pods spec for iOS v3.6.0-beta.1 2017-05-23 17:34:16 -04: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
Minh Nguyễn
bf000c7d63 [ios, macos] Updated changelogs
Reorganized the changelogs with a new packaging section. Added blurbs about #9062, #8713, #9060, and #9031.
2017-05-23 11:40:43 -07:00
Jason Wray
d90c1722c9 [ios] Move image resources to an asset catalog & switch to PDFs 2017-05-23 13:57:48 -04:00
Jason Wray
9b11bb98fa [ios] Fallback to Mapbox.bundle as the framework bundle (#9074)
Fixes an issue where localizations could not be found when using static builds.

Throws exception if our bundle can't be found.
2017-05-23 13:24:16 -04:00
Minh Nguyễn
c9de6cdb6c [ios, macos] More robust Streets localization
Added Arabic, Portuguese, and Simplified Chinese to the list of languages with specialized fields in the Mapbox Streets source.

Rely on NSBundle to select the most appropriate locale based on the user’s preferred languages.
2017-05-23 10:09:48 -07:00
Fabian Guerra Soto
a57e9bc410 [ios,macos] multipolygon coordinate (#8713)
* [ios] MGLMultiPolygon's coordinate property implemented

* [ios,macos] Add polylabalel to project config

* [ios,macos] Change coordinate property for MGLPolyline,MGLPolygon,MGLMultiPolygon

* [macos] Change project configuration to support polilabel

* [ios,macos] Add MGLLocationCoordinate2DFromPoint

* [ios, macos] Update changelogs

* [ios, macos] remove unnecesary variables

* [ios, macos] Add radians conversions

* [ios, macos] Add coordinate calc to MGLPolyline

* [ios, macos] Move radian fuctions to MGLGeometry_Private.h

* [ios, macos] Fix code style

* [ios, macos] Fix code indentation

* [ios, macos] Fix radian per meters constant

* [ios, macos] Add test scenarios to testPolyline

* [ios, macos] Fix test accuracy
2017-05-23 12:32:18 -04:00
Fabian Guerra Soto
fe17f7e8db Cherry-pick arabic text to release branch v3.6.0 (#9071)
* [core] Throttle tiles to redo symbol placement at most once every 300ms.
Fixes issue #8435 and prepares for pitch-scaling changes in issue #8967.

* [core] Disable letter-spacing for Arabic labels (issue #9057)
2017-05-23 12:02:09 -04:00
Tobrun
71b6865172 [android] - horizontally rotated in snapshot (#9083) 2017-05-23 17:14:18 +02:00
Fabian Guerra Soto
e52249c17f [ios, macos] Light property implementation in MGLStyle (#9043)
* [ios, macos] Add MGLLight to MGLStyle

* [ios, macos] Implement Objc bindings for Light object

* [ios, macos] Remove rawLight from MGLLight and re-implement it as value class

* [ios, macos] Fix build on macos

* [ios, macos] Add MGLLight documentation, Move MGLLightPosition to MGLLight

* [ios, macos] Add MGLLight tests.

* [ios, macos] Update changelogs

* [ios, macos] Fix misspelling

* [ios, macos] Fix MGLLightAnchor enum property names

* [ios, macos] Update documentation. Improve varialble naming.

* [ios, macos] Rename MGLLightPosition to MGLSphericalPosition

* [ios, macos] Update data types of MGLSphericalPosition
2017-05-23 10:59:24 -04: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
Jordan Kiley
a19fd81730 [ios, macos] changed TRUE -> 'true' (#9059) fixes #9056 2017-05-19 16:08:03 -07:00
Minh Nguyễn
e630e8c183 [ios, macos] Updated changelogs 2017-05-19 12:46:10 -07:00
Jesse Bounds
9ae73714f1 [ios] Update podspecs and changelog for iOS v3.5.4
Cherry-picked from db7bb509e9.
2017-05-19 12:46:10 -07:00
Jordan Kiley
ade7b0e1fd [ios] Updated podspecs and changelog for v3.5.3 (#8870)
Cherry-picked from 25c19902a2.
2017-05-19 12:46:10 -07:00
Jordan Kiley
13dee80e2e [ios, macos] Updated maximumZoomLevel description, cherry-picked #8818 (#8842)
Cherry-picked from a3e4e67ea6.
2017-05-19 12:46:09 -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
Tobrun
4d8625b13c [android] - correct bearing conversion when animating the map with jumpTo, easeTo and animateTo. (#9050) 2017-05-19 20:38:23 +02:00
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
Bobby Sudekum
895275d6fc Release node-v3.5.2 (#9052) 2017-05-19 11:27:48 -05:00
Jesse Bounds
7612e23dff [ios, macos] Change == to = in style function initializers 2017-05-19 08:06:24 -07:00
Konstantin Käfer
d664a3e05e [core] leave Image objects in a valid state after premultiply/unpremultiply 2017-05-19 14:13:07 +02: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
Konstantin Käfer
b52e171b67 [core] add error for non-virtual destructor deletes + add virtual dtors 2017-05-19 12:12:47 +02:00
Konstantin Käfer
f0b0167640 [core] Make destructor virtual to avoid object splicing during destruction 2017-05-19 12:12: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
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