Commit Graph

7032 Commits

Author SHA1 Message Date
Tobrun
227ddffee6 [android] #3745 - MapboxMap.OnCameraChangeListener 📷 2016-02-09 14:18:25 +01:00
Tobrun
2c6615df55 [android] #3747 - InfoWindowLongClickListener 2016-02-09 09:35:38 +01:00
Ansis Brammanis
29d61c0fe7 [node] add debug options to node bindings
fix #3579
2016-02-08 14:22:53 -08:00
Minh Nguyễn
7c7de0bc57 Link to latest iOS SDK API documentation 2016-02-08 13:20:00 -08:00
Minh Nguyễn
57f5359b1b [ios] Get favicon from HTTPS in jazzy docs 2016-02-08 11:38:37 -08:00
Jonas Bergvall
040fc09ea7 [android] Fixed error with asset URLs with URL encoded spaces. 2016-02-08 10:05:57 -08:00
John Firebaugh
24c5507946 [tests] Add test for AssetFileSource URL encoding 2016-02-08 10:05:46 -08:00
Konstantin Käfer
e74987b07f [core] move GL value objects from gl_config.hpp to gl_values.hpp
Also removes duplicate code from gl_helper.hpp by reusing the GL values that we already have anyway.
2016-02-08 12:50:00 +01:00
Konstantin Käfer
5c3b01ffcf [core] move util/gl_helper.hpp to gl/gl_helper.hpp 2016-02-08 12:50:00 +01:00
Konstantin Käfer
2f06ca74e2 [core] move platform/gl.hpp to gl/gl.hpp 2016-02-08 12:50:00 +01:00
Minh Nguyễn
8f48d64c0f ios-v3.1.0 2016-02-05 16:31:41 -08:00
Minh Nguyễn
6ecee083d6 ios-v3.1.0-pre.4 2016-02-05 13:17:49 -08:00
Minh Nguyễn
b3004238f4 [ios] Updated documentation and changelog for 3.1.0 2016-02-05 13:04:46 -08:00
Tobrun
fa21051683 [android] #3830 added mocked parcel implementation 2016-02-05 14:32:58 +01:00
jaumeolba
026e6a7560 Fix Memory leak caused by duplicated add in LocationListener list
The addLocationListener method didn't check if the LocationListener was
already in the list.

From MapView, if we call setMyLocationEnabled(true), it adds a
LocationListener and onResume adds the same LocationListener again, but
is just removed by onPause.

So LocationListener is added twice but removed just once, so
LocationServices singleton keeps an instance of the the LocationListener
that is never released.
2016-02-05 10:59:50 +01:00
Mike Morris
8e5862bd5d node-v3.0.2 2016-02-04 19:02:08 -05:00
Mike Morris
86691a08de [node] patch memory leak in NodeMap::request
Creating a v8::Function with
Nan::GetFunction(Nan::New<v8::FunctionTemplate>) can leak, use
Nan::New<v8::Function> instead.

https://code.google.com/p/chromium/issues/detail?id=272579
2016-02-04 18:27:52 -05:00
Jordan Moncharmont
48dbd48e77 [ios] Explain prerelease testing in docs
Show how to point a podspec at an officially tagged pre-release.
2016-02-04 14:48:01 -08:00
John Firebaugh
4d29c7d5ce [core] Remove Response::Error::Reason::Canceled
There is no such thing as a cancelled response, only cancelled requests. A request that is cancelled does not have its callback called with a Response.
2016-02-04 13:18:14 -08:00
John Firebaugh
19aa090bdc [tests] Don't call the callback for cancelled responses
StubFileSource gets an optional Response return type. Returning null means "cancelled; don't call the callback".

Fixes #3784
2016-02-04 13:18:14 -08:00
John Firebaugh
d7db9c775a [all] Make #include <mapbox/variant.hpp> universally accessible 2016-02-04 11:08:02 -08:00
Tobrun
7f27c74251 [android] #3811 - handle null target value by using previous camera position. 2016-02-04 12:35:39 +01:00
Tobrun
aa05cba0df [android] #3758 - Projection / Visible Region implementation.
[android] #3758 - add VisibleRegion + unit tests, removed boundingbox, cleanup jni, cleanup test app, renamed CoordinateSpan to LatLng.
2016-02-04 12:08:39 +01:00
John Firebaugh
bc1f4b1fc0 [core] Comparison operators for LatLngBounds 2016-02-03 18:09:06 -08:00
Brad Leege
87bac32a33 [core] #509 - Creating and using MIN_ZOOM and MAX_ZOOM constants 2016-02-03 18:57:22 -06:00
Brad Leege
511c01c6ca [core] #509 - Adding min / max checks to parameters and refactoring to utilize clamp function 2016-02-03 18:31:14 -06:00
Brad Leege
932012e931 [android][core] #509 - Setting Min and Max Zooms warning annotations in Android. Clamping Min and Max zooms at Core GL for all platforms to use at runtime. 2016-02-03 17:59:44 -06:00
Brad Leege
23c6e0f729 Adding NativeScript and Xamarin plugins to the library list 2016-02-03 14:04:18 -06:00
Minh Nguyễn
e8b8f5e493 [ios] Fixed designable warning when showing user location
Turn the Shows User Location inspectable into a no-op when running in the designables agent. Otherwise, we complain that the agent lacks Location Services permissions.
2016-02-03 11:14:09 -08:00
John Firebaugh
235210c648 [core] Make bool conversions explicit
Implicit bool conversions are bad; they'll be used e.g. for a == b and a != b if those operators are not defined. This was happening at 032c8fba3c/src/mbgl/map/transform.cpp (L132-L132), for example.
2016-02-03 10:02:25 -08:00
Tobrun
9beb6629b6 [android] #3752 - added scroll by x,y feature, introduced new CameraUpdateType, introduced caching system for invalidating CameraPosition, general cleanup, readded getLatLng in MapView, ..
[android] #3752 - correctly invalidating cameraposition
2016-02-03 18:38:38 +01:00
John Firebaugh
37c27f3a8f [core] Improve LatLngBounds API
* Use "named constructors": empty, world, hull
* Make the two-argument constructor lenient (i.e., it is a hull operation)
* Add various accessors
* Enforce a single empty representation
2016-02-02 23:04:18 -08:00
John Firebaugh
032c8fba3c [core] Remove unused 2016-02-02 20:20:47 -08:00
John Firebaugh
b78bc7c555 [core] Remove superflous inlines 2016-02-02 18:53:37 -08:00
John Firebaugh
7c00432528 [core] Remove unused 2016-02-02 18:53:37 -08:00
John Firebaugh
82d67d6912 [core] Remove unused 2016-02-02 18:53:37 -08:00
Ansis Brammanis
8e9510d2b4 [core] tweak dash rendering and enable render tests
fixes #2646
2016-02-02 17:09:38 -08:00
Ansis Brammanis
2cfc624848 [core] make symbol sort order more deterministic 2016-02-02 16:17:30 -08:00
Ansis Brammanis
4e0d1070f6 [core] support tiles with non-4096 extents
Convert all geometries to the maximum extent supported by our buffers
and then use that constant extent everywhere else.
2016-02-02 14:49:03 -08:00
John Firebaugh
f1f53c36d0 [core] Simplify latLngToCoordinate calculation 2016-02-02 12:56:44 -08:00
John Firebaugh
f198f306f3 [core] Remove unused 2016-02-02 12:44:28 -08:00
John Firebaugh
5512d87362 [core] Remove TransformState::getNormalizedZoom
It calculated the same value as TransformState::getZoom.
2016-02-02 12:44:28 -08:00
John Firebaugh
7e18945f90 [core] Remove unused declarations 2016-02-02 12:44:28 -08:00
John Firebaugh
b97dcbc125 [tests] Reorganize tests to match src structure 2016-02-02 11:31:13 -08:00
Tobrun
ce8c6e26d5 [android] #3736 - clicks should ignore marker validation when an InfoWindowAdapter is supplied by end developer. 2016-02-02 18:08:14 +01:00
Tobrun
6dff169f2b [android] #3754 - newLatLngBounds: unit tests for LatLng and LatLngBounds, builder pattern + refactoring.
[android] #3754 - Working version using the underlying VisibleCoorindateBounds

[android] #3754 - refactor Camera api inside maps package, correctly use factory pattern, LatLngBounds hooks into camera API

[android] #3754 - cleanup old API
2016-02-02 17:25:46 +01:00
Tobrun
a699690c16 [android] #3759 - Add SupportMapFragment, test app integration, cleanup old fragment implementation 2016-02-02 08:18:41 +01:00
Minh Nguyễn
7694eebe88 [ios] Renamed -showAnnotations:withEdgeInsets:animated:
Renamed -showAnnotations:withEdgeInsets:animated: to -showAnnotations:edgePadding:animated: for consistency with other methods. Reworded documentation comments to avoid hard-coding too many specifics that are prone to getting outdated.
2016-02-01 20:55:55 -08:00
Jordan Moncharmont
909832624e Custom edgeInsets for fitting in showAnnotations
Keeps sensible defaults already in place, but allows callers to override.
2016-02-01 20:55:55 -08:00
John Firebaugh
52689796df [core] Normalize only raster source tile URLs 2016-02-01 20:25:55 -08:00