Commit Graph

7737 Commits

Author SHA1 Message Date
Brad Leege
047263d40c [android] #5043 - Updating Support Library 2016-05-15 17:33:46 -07:00
Minh Nguyễn
54381d20a0 [ios] Updated changelog for #4801 2016-05-15 11:07:29 -07:00
Brad Leege
635993b4b6 [android] #5004 - Introducing MapboxAccountManager 2016-05-15 10:25:43 -05:00
Jason Wray
0d5d2a923b [ios] Improve telemetry server URL validation (#5022)
- Validate that test server URL actually has a reasonable value.
- Refactor `baseURL` and `testServerURL` to use NSURL.
2016-05-13 21:46:13 -04:00
Jesse Bounds
1ee14915f8 [ios] Add method documentation for view based annotations. 2016-05-13 15:53:04 -07:00
Jesse Bounds
fb759e8475 [ios] Refactor of annotation view updates
This change eliminates the call to the problematic
`annotationTagsInRect:` by using the annotation views themselves
and the map view to check if a view is visible or not.
2016-05-13 15:52:53 -07:00
Jesse Bounds
39669243b7 [ios] Introduce MGLAnnotationView and support for view annotations
Add an UIView subclass that can be used as the base class for all
client provided UIViews for annotations.

Teach MGLMapView to be able to display annotation views over the map if provided by the client delegate. For now, if the delegate provides a UIView then it will be used. If not, the map view will fall back to the old strategy of using GL annotations with an image provided by the delegate or a default image if not.
The map keeps a reuse queue and will store annotation views that are panned
offscreen in the queue if the application developer supplied a reuse queue identifer. The views in the queue are reused when more annotation
views are required. This view reuse provides a performance gain when many
annotations are shown and most of them are offscreen.

iosapp now implements the new delegate method to supply
a native view.

Add a playground to the workspace to facilitate experimentation
with new features. A playground is capable of importing frameworks if it
exists in the same workspace that builds the imported framework. The
initial playground demonstrates annotation views.

This also fixes a crash due to nullptr in annotations array If the `annotations` method is called while the user dot's callout view was showing, the userdot annotation is represented as null in the annotation context map. This
caused a crash when the null pointer was attempted to be converted
into an NSArray via C array. This protects against this bug by filtering out such a null annotation.
2016-05-13 15:51:40 -07:00
Tobrun
a6ca18f23c [android] - move OnMapReady callback for offline bug 2016-05-13 19:23:24 +02:00
Brad Leege
a3ff4d132c [android] #5014 - Updating 4.0.1 Changelog 2016-05-13 11:08:31 -05:00
John Firebaugh
8ec0b70722 [core] Use mapbox::geometry::box in queryRenderedFeatures 2016-05-13 09:01:32 -07:00
John Firebaugh
57fcfabd77 [core] Make mapbox::geometry::envelope usable without explicit template arguments 2016-05-13 09:01:32 -07:00
John Firebaugh
58863c3974 [core] Remove unused 2016-05-13 09:01:32 -07:00
John Firebaugh
39da776bd7 [core] Use mapbox::geometry::{box,envelope} 2016-05-13 09:01:32 -07:00
John Firebaugh
9a7b7f6af3 [core] Update to geometry.hpp 0.5.0 2016-05-13 09:01:32 -07:00
Konstantin Käfer
cd65a43855 [core] move from microsecond precision timestamp to integer second precision 2016-05-13 17:24:22 +02:00
Bruno de Oliveira Abinader
c1dde52c73 [Qt] Fix map aspect ratio
Take QGuiApplication::devicePixelRatio() in consideration when resizing
the map.

Fixes #4889.
2016-05-13 17:29:36 +03:00
Bruno de Oliveira Abinader
d36111abed [Qt] Initialize GL extensions on MapWindow
QMapboxGL relies on its embedding widget to call for the GL extensions
initialization function.

Fixes #5024.
2016-05-13 13:28:49 +03:00
Brad Leege
3d4e0d66fe Merge branch 'release-android-v4.0.1' 2016-05-12 16:20:02 -05:00
Brad Leege
716f00c1ae [android] #5014 - Removing malformed HTML from Javadocs 2016-05-12 12:46:41 -05:00
Brad Leege
006c23128b [android] #5014 - Updating Changelog 2016-05-12 11:20:01 -05:00
Brad Leege
e0eeccf84c [android] #5014 - Updating Version to 4.0.1 2016-05-12 11:15:36 -05:00
John Firebaugh
0e7f3ada64 [core] Fix code style issues 2016-05-12 08:43:08 -07:00
John Firebaugh
5620cea82e [core] Avoid instantiating temporary vector 2016-05-12 08:36:30 -07:00
John Firebaugh
b87fe16169 [core] CollisionBox::indexedFeature to CollisionFeature::indexedFeature
This eliminates the CollisionBox constructor that instantiates an "empty" IndexedSubfeature.
2016-05-12 08:36:30 -07:00
John Firebaugh
00a86ba03f [core] Replace auto with actual types 2016-05-12 08:36:30 -07:00
John Firebaugh
e79858558d [core] Avoid instantiating temporary vector 2016-05-12 08:36:30 -07:00
John Firebaugh
e6296479f0 [core] Code formatting 2016-05-12 08:36:30 -07:00
Tobrun
e4a63684ec [android] - fixes style init bug, added unit test to prevent regression 2016-05-12 16:29:47 +02:00
Konstantin Käfer
3bde525711 [core] remove indirection via Task object in DefaultFileSource 2016-05-12 15:13:21 +02:00
John Firebaugh
1a030e7c33 [core] Normalize tile coordinates in VectorTile (#4966)
Previously, vector tile coordinates were being normalized to util::EXTENT in each place they were used, and for annotation and GeoJSON sources that don't require normalization.
2016-05-11 13:54:05 -07:00
Minh Nguyễn
5f1144f05a [osx] Fixed framework mastering 2016-05-11 13:37:34 -07:00
Bruno de Oliveira Abinader
12258215af [Qt] Update style to v9 + bumped min/max zoom levels 2016-05-11 16:25:51 +03:00
Bruno de Oliveira Abinader
ae7a0ddea4 [Qt] Added viewport mode
Qt Quick requires third-party rendering codes to follow its standards
with regards to viewport transform. Qt 5.6 adds a 'mirrorVertically'
property but that only solves the solution for that version of Qt
onwards. Telling Mapbox GL core to flip the Y axis makes QQuickMapboxGL
item available for Qt 5.2 onwards.

Qt 'mirrorVertically' property documentation:
http://doc.qt.io/qt-5/qquickframebufferobject.html#mirrorVertically-prop

Fixes #4866.
2016-05-11 15:50:28 +03:00
Bruno de Oliveira Abinader
c13dd32242 [core] Added Viewport mode
Satisfies embedding platforms that requires the viewport coordinate
systems to be set according to its standards e.g. viewport mirrored
vertically.
2016-05-11 15:48:51 +03:00
Minh Nguyễn
659c2568ec [core, osx] Updated changelogs 2016-05-11 00:09:01 -07:00
Jason Wray
4cf0a49265 [android] Update Outdoors style description 2016-05-11 02:24:08 -04:00
Minh Nguyễn
d14ca37570 [osx] Fixed nested framework
An error in the packaging script caused Mapbox.framework to be placed inside a folder named Mapbox.framework. This change moves the framework up one level.
2016-05-10 17:37:03 -07:00
Minh Nguyễn
03a20cd662 Update INSTALL.md 2016-05-10 17:22:10 -07:00
Brent W
348cfaab12 [ios] fix potential for very slow animations of user location dot (#4997)
fix logic error that could cause user location to animate extremely slowly if there is a significant time passing between location updates
2016-05-10 16:55:00 -07:00
Brad Leege
9c033cf9a3 [android] #4994 - Add events=true to mapbox http requests 2016-05-10 16:25:31 -05:00
Minh Nguyễn
5db85a4d7d [osx] Updated changelog for v0.1.0 2016-05-10 13:58:33 -07:00
Minh Nguyễn
02f89b23b8 Merge branch 'release-ios-v3.2.2' into 1ec5-release-ios-v3.2.2-master 2016-05-10 13:11:47 -07:00
Thiago Marcos P. Santos
e84b9a83fa [Qt] Always use setCoordinateZoom()
Because at low zoom levels setting a new coordinate won't
correspond to the actual coordinate on the map.
2016-05-10 21:04:06 +03:00
Minh Nguyễn
abe16952c6 ios-v3.2.2 2016-05-10 10:52:50 -07:00
Minh Nguyễn
eb1e6c0f0c [osx] Automate framework packaging
Added a package script and make rule that parallels the iOS SDK package script and make rule, but with far fewer intricacies.
2016-05-10 10:18:23 -07:00
Minh Nguyễn
1634058b51 [ios, osx] Reformatted documentation comments
Reformatted documentation comments in public headers in the OS X SDK and public headers shared between the iOS and OS X SDKs to wrap at column 80 and avoid excessive indentation that causes SourceKitten to detect code blocks.
2016-05-10 09:59:04 -07:00
Minh Nguyễn
a025d8327a [osx] Added changelog
Also updated developer installation guide to refer to the new make rule for generating documentation.
2016-05-10 09:59:04 -07:00
Minh Nguyễn
5616cd2bb1 [osx] Added OS X SDK documentation target
Added a target, script, and make rule for generating OS X SDK documentation with jazzy, along with a docset cover page.

Switched the umbrella header from framework header syntax to user header syntax so SourceKit can find all the headers.

Fixes #4871.
2016-05-10 09:59:04 -07:00
Konstantin Käfer
7332ae0073 [core] retain tiles differently and remove old TileID class 2016-05-10 14:50:56 +02:00
Konstantin Käfer
ec70125e41 [core] move TileData and dependents to new *TileID classes 2016-05-10 14:50:56 +02:00