Commit Graph

2672 Commits

Author SHA1 Message Date
Tobrun
d5c63e6c82 [android] #3276 - Marker view becomes selected when clicked 2016-05-20 12:00:02 +02:00
Tobrun
69ae499a88 [android] #3276 - View Marker click listener integration 2016-05-20 12:00:02 +02:00
Tobrun
d8dfc921b4 [android] #3276 - fix unit tests on MapboxMapTest related to Marker/BaseMarker 2016-05-20 12:00:02 +02:00
Tobrun
20e7b140b7 [android] #3276 - make view marker only visible after first x,y update 2016-05-20 12:00:02 +02:00
Tobrun
b7d47d4c3f [android] #3276 - using a pool to do view reuse 2016-05-20 12:00:02 +02:00
Tobrun
c53533270b [android] #3276 - introduced rate limited discovery for view markers 2016-05-20 12:00:02 +02:00
Tobrun
16a2765adc [android] #3276 - android view annotations adapter approach 2016-05-20 12:00:01 +02:00
Tobrun
1d912a409a [android] #3276 - add event listener on REGION_IS_CHANGING to determine the annotations in bounds of the viewport. 2016-05-20 12:00:01 +02:00
Tobrun
028ef7a323 [android] #3276 - WIP Android View Annotations, showing an Android SDK view on the screen 2016-05-20 12:00:01 +02:00
Brad Leege
ef257c257d [android] #5068 - Switching to Mapbox Locale Constant 2016-05-18 18:58:13 -07:00
John Firebaugh
5864c8fc4c [core] Include geometry in queryRenderedFeatures results 2016-05-18 17:29:16 -07:00
frederoni
a220efcae6 [ios] Allow annotation views to be flattened (#5067)
* [ios] wip flatten annotation view

* [ios] wip flatten annotation view

* [ios] naming conventions

* [ios] removed unused property
2016-05-18 17:03:08 -07:00
Tobrun
5fe43e43f2 [android] - using deprecate annotation for access token javadoc 2016-05-18 14:45:04 -07:00
frederoni
e8ea7483a7 [ios] Added centerOffset to MGLAnnotationView (#5062)
* [ios] Added centerOffset to MGLAnnotationView

* [ios] Reposition immediately after changing the centerOffset

closes #5059
2016-05-18 09:47:54 -07:00
Konstantin Käfer
8ee222c45e [core] allow creating optional requests
Introduces "optional" requests. These should be fulfilled by the FileSource only there's a low-cost/easy way to obtain the data (e.g. from a local cache). If the data for an optional request cannot be found, it *must* return a Response object with a NotFound error.

Traditional "required" requests still work the same way, with one change: If you set any prior* field in the Resource (i.e. priorModified, priorEtag, or priorExpires), the DefaultFileSource assumes that you already have the cache value and will not consult the cache before performing the request. If a prior cache lookup didn't turn up any data, and you therefore don't have an Etag or Modified value, you can still skip the cache by setting priorExpires. This will of course always result in a non-conditional HTTP request.
2016-05-18 12:40:22 +02:00
Tobrun
1d84a8964e [android] #4942 - using Android SDK Compass example 2016-05-18 12:02:04 +02:00
Tobrun
73bf8b6ef6 [android] #4942 - removes jumpiness from compass updates, removes old way of rotating via canvas rotation, streamlines updates through setCompass 2016-05-18 12:02:04 +02:00
Cameron Mace
cdda083a6f [android] Animate MylocationView direction
Fixes #4942
2016-05-18 12:02:03 +02:00
Brad Leege
56979500d8 [android] #5060 - Adding Reset functionality to menu 2016-05-17 18:12:30 -07:00
Brad Leege
7390ec833f [android] #5060 - Restoring rotation support for markers 2016-05-17 18:00:01 -07:00
Brad Leege
dd5af9e901 [android] #5060 - Initial setup of PressForMarkerActivity 2016-05-17 17:51:00 -07:00
John Firebaugh
3c49fdc99d [core] Feature IDs are always integers 2016-05-17 13:20:25 -07:00
Brad Leege
0c9c524912 [android] #5045 - Adding Async Location Permissions Approval Check 2016-05-17 12:03:59 -07:00
Jason Wray
22447373ae [ios] Make MGLCoordinateInCoordinateBounds() public (#5053)
Bounds should always be in NE, SW order — any other coordinate order (e.g., NW, SE) will give false results.
2016-05-17 11:02:22 -04:00
Brad Leege
4434c0438a [android] #5049 - Updating LOST To Version 1.1.0 2016-05-16 17:55:05 -07:00
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
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
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
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