Commit Graph

12130 Commits

Author SHA1 Message Date
Chris Loer
a11b277bc1 [core] Rename "onLowMemory" to "reduceMemoryUse".
Android still calls "reduceMemoryUse" only while handling a low memory event.
iOS, on the other hand, calls "reduceMemoryUse" every time it enters the background.
2018-02-14 10:55:16 -08:00
Chris Loer
f721779963 [core] fix onLowMemory to release GL buffers
Context cleanup must be called _after_ render sources release tiles.
2018-02-14 10:55:16 -08:00
Fabian Guerra
7081c9dfdb Merge branch 'fabian-merge-3.7.4-master' 2018-02-14 12:14:34 -05:00
Tobrun
eddcefb3c8 [android] - update changelog for 6.0.0-beta.2 2018-02-14 12:50:52 +01:00
Jesse Bounds
b31eae7514 [ios] Remove unused reference to reachability
This removes a reference to reachability that has been used and incorrect since the file does not exist at the referenced location.
2018-02-13 12:16:19 -05:00
Fabian Guerra
7ec840bbab [android] Add Timber library import. 2018-02-13 11:47:37 -05:00
Fabian Guerra
b68266953f Merge tag 'ios-v3.7.4' into master
# Conflicts:
#	include/mbgl/style/conversion/tileset.hpp
#	include/mbgl/util/tileset.hpp
#	platform/android/CHANGELOG.md
#	platform/android/MapboxGLAndroidSDK/gradle.properties
#	platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java
#	platform/ios/CHANGELOG.md
#	platform/ios/ios.xcodeproj/project.pbxproj
#	platform/macos/CHANGELOG.md
#	src/mbgl/layout/symbol_projection.cpp
#	src/mbgl/renderer/tile_pyramid.cpp
#	src/mbgl/style/conversion/tileset.cpp
2018-02-13 11:40:40 -05:00
Pablo Guardiola
44ca0a5ec4 [android] Integration of the new events library (#10999)
* [android] integration of the new events library

* JNI Bug

- current build with JNI bug

* fix #10999 comments

* Clean-up

- clean-up timbers and test code

* [android] fix sdk identifier and sdk version

* [android] merge from master (MAS 3.0)

* [android] bump events lib version to 3.0.0-beta.1 and remove never used methods from math utils class
2018-02-13 11:31:43 +01:00
Asheem Mamoowala
aefc3daeed TileJSON Bounds allows values inclusive of world extents 2018-02-12 16:56:20 -08:00
Fabian Guerra Soto
3a0c87b1b4 [ios] Bump podspec to 3.7.4 (#11179)
* [ios] Bump podspec to 3.7.4

* [ios, macos] Update changelogs.
2018-02-12 17:37:00 -05:00
Fabian Guerra Soto
024e75bd56 [ios, macos] Fix memory leaks in MGLMapSnapshotter. (#11133) 2018-02-12 16:47:16 -05:00
Julian Rex
9ee99c91bb [ios] Adds camera change delegate methods with reason parameter. (#11151)
Added missing notification handler for UIApplicationWillResignActiveNotification.
2018-02-12 16:37:21 -05:00
Asheem Mamoowala
560afaf1fb Cherry pick #11176 for Agua patch 2018-02-12 13:29:22 -08:00
Lucas Wojciechowski
94734441ce Update & simplify INSTALL.md (#11155)
* Update & simplify INSTALL.md

* Add "Launch Xcode" step

* Update INSTALL.md
2018-02-12 12:06:36 -08:00
Tobrun
cdaf90d2e7 [android] - update SNAPSHOT version to v5.4.2 2018-02-12 11:14:39 +01:00
Tobrun
f422f79446 [android] - update changelog for 5.4.1 2018-02-12 11:14:39 +01:00
Tobrun
9941b56238 [android] - don't invoke onLowMemory on map when the map isn't fully created yet 2018-02-12 11:14:39 +01:00
Tobrun
f0b12d581a [android] - update changelog for 5.4.1 2018-02-12 11:14:22 +01:00
Pablo Guardiola
fec4cc8bd0 [android] remove unnecessary @jar and @aar dependencies suffixes (#11161) (#11165)
* [android] remove unnecessary @jar and @aar dependencies suffixes

* [android] remove lint baseline file from mapbox gl android sdk module and fix lint errors
2018-02-12 09:59:26 +01:00
Thiago Marcos P. Santos
d229cbb031 [qt] Add an interface for Static rendering 2018-02-09 20:28:54 +02:00
Thiago Marcos P. Santos
36a0c98713 [qt] Refresh the docs 2018-02-09 20:28:54 +02:00
Thiago Marcos P. Santos
6542e6ee37 [qt] Make sure that methods are being called on the right thread 2018-02-09 20:28:54 +02:00
Thiago Marcos P. Santos
673730ccd4 [qt] Implement FBO handling
Needed for rendering 3D extrusions properly.
2018-02-09 20:28:54 +02:00
Thiago Marcos P. Santos
a4e95c3da3 [qt] Only use the MapRenderer as scheduler if there is no other
Optimization of when running on the Main Thread that has a RunLoop.
2018-02-09 20:28:54 +02:00
Thiago Marcos P. Santos
4f8a23cd8f [qt] Expose an interface to create a renderer on a separated thread
If not called, it will render on the main thread as usual.
2018-02-09 20:28:54 +02:00
Thiago Marcos P. Santos
bb00f558fb [qt] Make MapboxGLMapRenderer a scheduler to receive messages when rendering 2018-02-09 20:28:54 +02:00
Thiago Marcos P. Santos
a062f3e17b [qt] Update map rendering via RendererObserver 2018-02-09 20:28:54 +02:00
Thiago Marcos P. Santos
e7e8cb4547 [qt] Render asynchronously 2018-02-09 20:28:54 +02:00
Thiago Marcos P. Santos
18cf796b52 [qt] Removed unused call 2018-02-09 20:28:54 +02:00
Thiago Marcos P. Santos
fb65d25831 [core] Make RendererObserver a public interface
Needed by backends implementing asyncronous rendering
2018-02-09 20:28:54 +02:00
tobrun
cab2086e1c [android] - don't recreate surface as part of view resize 2018-02-09 14:22:29 +01:00
tobrun
5a799117ec [android] - add optional location provider lost to proguard configuration 2018-02-09 11:58:41 +01:00
Minh Nguyễn
101b55b0f0 [ios, macos] Added option to restrict tile source to bounds
Cherry-picked from c3bf7c55a1.
2018-02-08 12:39:30 -08:00
Asheem Mamoowala
4ab07f5be7 Reset tileset-based render sources when any tileset properties changed. (#11042) 2018-02-08 12:39:30 -08:00
Asheem Mamoowala
64374711a0 Support TileJSON bounds property (#10701)
* [core] Parse TileJSON bounds property
* [core] Add TileRange and LatLngBounds::contains(CanonicalTileID)
Move LatLngBounds::contains impl to cpp file
* [core] Skip tile creation outside of tileset bounds
* [core] Fix TileRange for wrapped bounds and use for CustomTileLoader instead of LatLngBounds comparisons for tiles.
2018-02-08 12:39:30 -08:00
Minh Nguyễn
c3bf7c55a1 [ios, macos] Added option to restrict tile source to bounds 2018-02-08 12:03:27 -08:00
Osana Babayan
4498917a3b migrated to use mapbox-java3.0
migrated to use mapbox-java3.0
note that old 2.2.9 telementry is still used though
2018-02-08 08:44:24 -05:00
tobrun
aeba621573 [android] - programmatically create GlSurfaceView 2018-02-08 14:20:56 +01:00
tobrun
7bccc9d695 [android] - introduce mapview weak reference in global layout listener 2018-02-08 11:43:05 +01:00
Minh Nguyễn
2ed069cb0a [ios, macos] Copyedited computed source wrapping options
Renamed MGLShapeSourceOptionWrapCoordinates to MGLShapeSourceOptionWrapsCoordinates and MGLShapeSourceOptionClipCoordinates to MGLShapeSourceOptionClipsCoordinates. Copyedited their documentation comments.
2018-02-07 12:42:21 -08:00
Chris Loer
057af7e75f [core] Don't crash on line labels with 0 glyphs.
Fixes issue #10956.
2018-02-07 12:11:19 -08:00
Asheem Mamoowala
6c5e457590 Add options for Custom Geometry Source types to enable clipping and wrapping geometry (#11041) 2018-02-07 12:07:31 -08:00
Randall C Lee
638ab799ed Adjust radius (#11132) 2018-02-06 15:34:46 -05:00
Molly Lloyd
e03f7a4d1f [core] align raster-dem tiles to pixel grid (#11119)
* align raster-dem tiles to pixel grid

* revert ignored hillshade tests
2018-02-06 10:56:42 -08:00
Konstantin Käfer
26a00f6a31 [core] prioritize Thread::pause() calls 2018-02-06 18:49:06 +01:00
Konstantin Käfer
93c4a23636 [core] change RunLoop processing to check queue on every iteration 2018-02-06 18:49:06 +01:00
Konstantin Käfer
78f8fd88b4 [core] factor out RunLoop::wake() 2018-02-06 18:49:06 +01:00
Konstantin Käfer
3ef7dab1a8 [core] use the RunLoop's schedule call directly
RunLoop already has a queue, and has the ability to schedule weak mailboxes, so we can remove the duplicate code.
2018-02-06 18:49:06 +01:00
Chris Loer
d3deb6d71b [core] Don't crash on line labels with 0 glyphs.
Fixes issue #10956.
2018-02-06 09:12:21 -08:00
Chris Loer
f7cae4c3e4 [test] Ignore slightly-different collision circles on native. 2018-02-06 08:46:15 -08:00