Commit Graph

16768 Commits

Author SHA1 Message Date
Tobrun
1d93ffc5eb [android] - refactor marker selection and listener invocation, reformatted code (#7304) 2016-12-08 14:37:15 +01:00
Tobrun
7cf10ee524 [android] - remove location enabled flag from MapboxMap (#7308)
* [android] - remove location enabled flag from MapboxMap, decouple TrackingSettings from MyLocationViewSettings using a FocalPointChangeListener interface, Move state related to tracking modes to MyLocationView (shared object between MyLocationViewSettings and FocalPointChangeListener).

* fixup tests
2016-12-08 14:37:01 +01:00
Fredrik Karlsson
89d4c40d92 [ios, macos] renamed raster-hue-rotate 2016-12-08 11:36:39 +01:00
Jesse Bounds
01ff94a6eb [ios, macos] Warn about special characters in predicates (#7317) 2016-12-07 14:06:02 -08:00
Tobrun
3d2dc47191 [android] - only apply screen density to instance variables of MapboxMapOptions. (#7327) 2016-12-07 21:56:40 +01:00
Jesse Bounds
497953c34e [ios, macos] Fix typo in exception name for style source identifier (#7315) 2016-12-07 10:47:06 -08:00
Bruno de Oliveira Abinader
aa9bf7139c [qt, macos] Remove workaround for a bug in Qt 5.7 2016-12-07 17:46:09 +01:00
Fredrik Karlsson
508f020eb5 Prevent stopless functions (#7309)
* [ios, macos] prevent stopless functions

* [ios, macos] removed unused bridging header and fixed naming
2016-12-07 17:19:15 +01:00
Konstantin Käfer
11229d72f5 [build] bump mason to update Android compile flags 2016-12-07 15:28:13 +01:00
Fredrik Karlsson
3b7e98d0b1 [ios, macos] fixed compiler warnings 2016-12-07 12:52:59 +01:00
Konstantin Käfer
6be56ff9c2 [render] allow passing URLs to mbgl-render 2016-12-07 10:46:43 +01:00
Konstantin Käfer
dc1bda435f [core] add util::isURL() for checking whether a string starts with a URL scheme 2016-12-07 10:46:43 +01:00
Minh Nguyễn
178130267e [ios, macos] Corrected -setNeedsDisplay documentation
Followup to #7250.
2016-12-07 00:31:30 -08:00
Minh Nguyễn
a39f53df22 [ios, macos] Migrate MGLCustomStyleLayerAdditions to style layer API (#7250)
* [ios, macos] Replaced custom style layer API with MGLOpenGLStyleLayer

Replaced the custom style layer API on MGLMapView with an equally unsupported MGLOpenGLStyleLayer API that nonetheless is consistent with the broader runtime styling API and is compatible with macOS.

Fixed an unrecognized selector crash when wrapping a layer of unrecognized type coming from mbgl.

* [macos] Added lime green layer demo to macosapp

Reprised the demo removed from iosapp in #5091.

* [ios, macos] Rationalized MGLOpenGLStyleLayer API

MGLStyle now strongly references any MGLOpenGLStyleLayer object that’s added to it, in order to prevent pointers from going stale and make it easy for layer drawing code to get more information about the map view. Replaced the MGLOpenGLStyleLayer callback blocks with overridable instance methods. Added internal documentation for each method. Subclassed MGLOpenGLStyleLayer as LimeGreenStyleLayer inside macosapp.

Consolidated -addToMapView: into -addToMapView:belowLayer: to ensure that MGLRedundantLayerException gets raised even if the layer is being inserted rather than added to the bottom of the stack.

* [core] Clarified that rendering happens on the main thread

* [ios, macos] Fixed removing and re-adding MGLOpenGLStyleLayer

Don’t allow index-based layer removal to circumvent -removeFromMapView:, which MGLOpenGLStyleLayer relies on to synchronize the style’s array of MGLOpenGLStyleLayers. When obtaining an MGLOpenGLStyleLayer, get the instance already added to the style instead of creating a new one to wrap the underlying CustomLayer.
2016-12-07 00:01:11 -08:00
Minh Nguyễn
4c2aec2355 [ios, macos] More ways to reshape an MGLMultiPoint (#7251)
* [ios, macos] Completed API for mutating multipoints

Added the complete set of methods for mutating the vertices of an MGLMultiPoint. Also rewrote MGLMultiPoint documentation to refer to vertices instead of points.

* [ios, macos] Removed inaccurate MGLOverlay commentary

This paragraph is full of references to features that exist in MKOverlay but not MGLOverlay.

* [ios, macos] Lazily compute multipoint bounds

Invalidate the bounds whenever the coordinates change, but don’t recompute the bounds until they’re requested. Simplified -intersectsOverlayBounds: for immutable overlay classes.

Added a utility function for testing whether two MGLCoordinateBounds intersect, based on mbgl::LatLngBounds::intersects().

Removed unused color conversion code.
2016-12-06 23:36:55 -08:00
Minh Nguyễn
9f9422deb8 [ios] s/iconSize/iconScale/
Followup to #7310.
2016-12-06 21:28:04 -08:00
Minh Nguyễn
88f91a48ae [ios, macos] Template images as style images
Convert template images to SDF icons and back when storing them as style images.
2016-12-06 16:20:14 -08:00
John Firebaugh
cc6e5c9df9 [core] Move CrossFadedPropertyEvaluator to its own file 2016-12-06 15:05:45 -08:00
John Firebaugh
05b0dcd0f8 [core] Move evaluation algorithm to Function 2016-12-06 15:05:45 -08:00
John Firebaugh
0adf830b9a [core] Inline friend equality operators 2016-12-06 15:05:45 -08:00
Minh Nguyễn
e6d51c384d [ios, macos] Note corresponding style spec properties
Documentation for attributes whose names we’ve overridden now mention the original style specification property name, with a link to the style specification documentation for the property.
2016-12-06 22:18:03 +01:00
Fredrik Karlsson
903246b256 [ios, macos] renamed dasharray and icon size 2016-12-06 22:18:03 +01:00
Chris Voll
e7c30de021 [other] fix spelling on month in node.js changelog 2016-12-06 22:15:36 +01:00
Tobrun
e706ede0b4 [android] - remove overlay SurfaceView examples (#7278) 2016-12-06 19:40:40 +01:00
Tobrun
077d685656 [android] - make rotation gesture easier to trigger (#7299) 2016-12-06 19:40:20 +01:00
Tobrun
bcf911ba8b [android] Fix javadoc for MapboxMap.updateMarker() (#7301) 2016-12-06 19:40:01 +01:00
Konstantin Käfer
467fa30f05 [android] use Identical Code Folding to reduce binary size 2016-12-06 14:58:38 +01:00
Fredrik Karlsson
dc2dc31c0b [ios, macos] MGLGeoJSONSource can now be initialized with any shape 2016-12-06 13:59:56 +01:00
Tobrun
9a9e7978db [android] - Refactor dependencies, introduce focused components (#7189)
* [android] - refactor dependencies

* ignore tests
2016-12-06 13:46:49 +01:00
Minh Nguyễn
9456bec172 [test] Fixed Map-GetImage
Followup to #7096.
2016-12-05 18:48:00 -08:00
Roman Blum
1045934d5e [core, ios, macos] Add image accessor to MGLStyle (#7096)
* [core] Add interface to get image from sprite atlas

* [tests] Add tests for Map::getImage

* [ios, macos] WIP: get MGLImage for name from style

* [ios, macos] Fixed -imageForName:

Convert from sprite images to platform images using the existing encodePNG() function, which is also used for printing. Allow -imageForName: to return nil without an assertion failure. Added a basic test.
2016-12-05 17:16:13 -08:00
Minh Nguyễn
890b681b18 [ios, macos] Update changelogs (#7287)
* [ios, macos] Updated changelogs

* [ios, macos] Removed duplicate changeset entries
2016-12-05 16:05:20 -08:00
Jesse Bounds
5579e67804 [ios] Round horizontal accuracy 2016-12-05 15:10:38 -08:00
John Firebaugh
4a61fcdafb [node] Update brew package name 2016-12-05 15:09:49 -08:00
John Firebaugh
c8e34d581b [node] Update brew package name 2016-12-05 15:06:34 -08:00
John Firebaugh
385fbe6a07 [all] Upgrade to boost 1.62.0 2016-12-05 08:31:00 -08:00
Fredrik Karlsson
440e06c112 [ios] keep callout view open when panning 2016-12-05 11:42:31 +01:00
Minh Nguyễn
36d93b747e [ios] Removed duplicate changelog entries 2016-12-05 00:27:04 -08:00
Minh Nguyễn
3503c0e767 Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.0-beta.4-master 2016-12-03 15:36:42 -08:00
Jesse Bounds
9eb7f88b2c [ios, macos] Update MGLStyle API documentation with warnings for dupes
This adds notes to the methods for adding sources and layers to warn
of the hazards of using duplicate instances or identifiers.
2016-12-02 14:21:05 -08:00
Jesse Bounds
179e9c610f [ios, macos] Consolidate tests of MGLStyle addSource in MGLStyleTests
This replaces the integration test of `addSource` when duplicate
identifiers are used in `MGLSourceTests` with a more direct unit test
in the style class's unit test file `MGLStyleTests`. Although tests of
the case where the same instance are actually integration tests where
the source instance itself throws, it is easier to test all of this
functionality in one place using the public facing MGLStyle API.
2016-12-02 14:21:05 -08:00
Jesse Bounds
1db0a96927 [ios, macos] Raise NSException if layer or source added more than once
When MGLSource and MGLLayer instances are added to the style, they lose
ownership of their std::unique_ptr<T> after it is moved to the mbgl
level. Subsequent attempts to add such instances result in a C++
exception.

This adds logic in the Darwin platform to raise a NSException if the
source and layer addToMapView methods are called more than once and the
pointer is invalid. In addition, the documentation in MGLStyle for
addSource: and addLayer: has been update to warn developers to avoid
adding the same instance twice and, for that matter, instances with the
same identifier.
2016-12-02 14:21:05 -08:00
Jesse Bounds
2db31be8bc [ios, macos] Rename MGLMapViewTests back to MGLStyleLayerTests 2016-12-02 13:03:05 -08:00
Ivo van Dongen
37026a14ff [ios, macos] handle duplicate source error 2016-12-02 11:39:16 -08:00
Ivo van Dongen
d44d1c8401 [ios, macos] renamed MGLStyleLayerTests to MGLMapViewTests 2016-12-02 11:28:34 -08:00
Ivo van Dongen
2c4e7ae70f [core] guard against duplicate source id’s 2016-12-02 11:25:30 -08:00
Minh Nguyễn
84038832e4 [test] Updated mapbox-gl-test-suite version
Followup to #7123.
2016-12-02 09:11:45 -08:00
Konstantin Käfer
5c88309264 [build] speedup Android packaging by not building unit tests 2016-12-02 12:18:08 +01:00
Ivo van Dongen
d904ba66ab [android] telemetry - horizontal accuracy 2016-12-02 12:23:29 +02:00
Konstantin Käfer
4a3081e071 [build] add permissions to write public metrics to BitriseUser 2016-12-02 10:49:12 +01:00