Commit Graph

10226 Commits

Author SHA1 Message Date
Minh Nguyễn
d39ea23b09 [ios, macos] Hardened std::map usage in MGLMapVIew
Replaced std::map::operator[] usage with std::map::at(). Backed up an assertion on iOS with a guard when -annotationTagsInRect: returns the tag of a nonexistent annotation, for consistency with macOS. Removed an unnecessary and risky subscript into _annotationContextsByAnnotationTag in -positioningRectForCalloutForAnnotationWithTag: on iOS.
2017-04-05 14:56:06 -07:00
Jordan Kiley
5bfbe9603b [ios] replaced link to select a feature example (#8651) 2017-04-05 13:09:07 -07:00
Jesse Bounds
5d4d5dcf1b [ios, macos] Rename Data-driven styling guide (#8627)
* [ios, macos] Rename Data-driven styling guide

This turns the Data-driven styling guide into a guide for working with
style functions. This helps clarify that not all style functions are
DDS specific but keeps the discussion of this related functionality in
the same guide.
2017-04-05 12:05:29 -07:00
Fabian Guerra Soto
ec34813c90 [ios] assertion to check if an annotationTag > 0 (#8588)
* [ios] assertion to check if an annotationTag > 0

* [ios,macos] assertion and guard added to check annotations in  visibleAnnotationsInRect
2017-04-05 14:16:58 -04:00
Minh Nguyễn
8539d7092e [ios, macos] Preserve symlinks when zipping framework 2017-04-05 01:25:37 -07:00
Jesse Bounds
ff73371216 [ios] Silence incompatible type warning for callout view (#8608)
This silences a compatibility warning that was introduced in a previous
refactor that changed the return type of the callout view for
annotation delegate method. This also adds checks to ensure that the
callout view provided by the delegate to the map view is of the correct
type and conforms to the correct protocol.
2017-04-04 15:25:59 -07:00
Tobrun
e34b471842 Release android v5.0.2 (#8629)
* [android] - update CHANGELOG.md for v5.0.2 release

* [android] - bump version name to 5.0.2

* [android] - fixup javadoc errors

* bump SNAPSHOT version
2017-04-04 21:14:32 +02:00
Minh Nguyễn
6718d2cc51 [macos] Removed MGLUserTrackingMode from jazzy ToC 2017-04-03 15:36:07 -07:00
Minh Nguyễn
fc382f7108 [macos] Fixed broken images in DDS guide 2017-04-03 15:36:07 -07:00
Konstantin Käfer
f86333961e [core] cache binary shaders on Android 2017-04-03 11:01:43 -07:00
John Firebaugh
c1cd6759b4 [core] Extract and de-templatize several Program static methods 2017-04-03 11:01:43 -07:00
Minh Nguyễn
8af81ec88c macos-v0.4.0 2017-04-02 00:40:35 -07:00
Minh Nguyễn
b10bbecf34 [ios, macos] Updated changelogs 2017-04-02 00:40:07 -07:00
Jason Wray
228bff7602 [ios] Replaced UIActionSheet, UIAlertView with UIAlertController 2017-04-01 19:58:09 -07:00
Minh Nguyễn
aa3db60300 [ios, macos] Copyedited data-driven styling guides
Cursorily copy-edited the data-driven styling guide, removing a stray class reference, replacing a redundant h1, and making stops examples platform-agnostic and less redundant.

Fixed an issue in the style authors guide where style function tables appeared under each style layer type table.
2017-04-01 19:28:41 -07:00
Tobrun
8e538b4d06 Cherry pick v5.0.2 changes (#8586)
* [android] execute resource transform callback on the right thread

* [android] allow resetting of resource transform callback

* update CHANGELOG for v5.0.2

* [android] - correct anchoring when Icon is updated (#8519)
2017-03-31 13:48:47 +02:00
Tobrun
a46d91f7c5 Revert 5.x touch changes (#8585)
* Revert "[android] - only dispatch events if not handled by MarkerView (#8447)"

This reverts commit 09d76854ab.

* Revert "[android] - move touch handling of MarkerViews back to View#setOnClickListener. Workaround panning issue by dispatching touch events to the parent ViewGroup. (#8272)"

This reverts commit 1693b389d7.
2017-03-30 17:30:47 +02:00
Jesse Bounds
dcb14f98ee [ios] Modify return type so callout bridges with protocol in Swift
`- (nullable UIView <MGLCalloutView> *)mapView:(MGLMapView *)mapView
calloutViewForAnnotation:(id <MGLAnnotation>)annotation;` bridges
with a `UIView?` return type in Swift. This changes replaces the
`UIView` type in the method signature so that, when bridged to Swift,
the returned object is defined as `MGLCalloutView?`.
2017-03-29 16:58:07 -07:00
John Firebaugh
1edbb0f24b [core] check null data in query source features (#8553)
* [core] check null data in query source features

* Include what you use
2017-03-28 16:02:48 -07:00
Fabian Guerra Soto
c5c69102c5 [ios] nil check in visibleAnnotationsInRect to avoid crash (#8513) 2017-03-28 16:06:16 -04:00
John Firebaugh
8c34a5081c [linux, node] Build with clang 3.9 2017-03-28 10:13:35 -07:00
Dane Springmeyer
cfb26c0a79 [test] Fix polygon construction to compile with clang 3.9.x 2017-03-28 10:13:35 -07:00
John Firebaugh
348cffa119 [core] Avoid -Wundefined-var-template warnings with clang 3.9+ 2017-03-28 10:13:35 -07:00
Antonio Zugaldia
f169577aab [android] revert version name to snapshot 2017-03-24 09:49:00 -04:00
Antonio Zugaldia
81650240c4 [android] update CHANGELOG.md with 5.0.1 information 2017-03-24 09:49:00 -04:00
Antonio Zugaldia
3a6d748bc4 [android] [auto] Update properties to version 5.0.1 in preparation for build. 2017-03-24 09:49:00 -04:00
Anand Thakker
60717822e6 Use highp for color attributes (#8496)
Addresses #8385

Updates shaders to reflect https://github.com/mapbox/mapbox-gl-js/pull/4476
2017-03-22 14:32:22 -04:00
Fabian Guerra Soto
1ccaa1dc71 [ios] podspec update to 3.5.0 (#8487) 2017-03-21 12:54:29 -04:00
Eric Wolfe
e0fe42d832 [ios][macos] Update DDS guide
Clarifies linear and exponential interpolation, adds stops to each example for clarity, and other minor tweaks.
2017-03-20 22:34:15 -07:00
Eric Wolfe
af475f0175 [ios] Add next steps to Runtime Styling guide (#7855) 2017-03-20 22:34:15 -07:00
Eric Wolfe
f91072a6b0 [ios][macos] Document that transitions using setStyleURL are not supported (#8475) 2017-03-20 17:00:53 -07:00
Jason Wray
751fa3b8a2 [ios, build] Change version checker URL to ios-sdk site (#8468)
Decouple the version checker updating from the deploy process.
2017-03-19 01:29:25 -04:00
Jesse Bounds
7a5d313188 [ios] Bump podspec version for v3.5.0-rc.2
Reverts https://github.com/mapbox/mapbox-gl-native/pull/8462
2017-03-18 21:29:05 -07:00
Jesse Bounds
73ed8aa7be [ios] Guard against over calling pause or resume 2017-03-18 19:09:45 -07:00
Tobrun
e4981d5bd0 Bump Android SNAPSHOT version (#8453)
* [android] [auto] Update properties to version 5.0.0 in preparation for build.

* [android] - bump snapshot version

* [android] remove typo in gradle-javadoc.gradle

* [android] revert to 5.0.0-SNAPSHOT

* [android] revert to 5.0.0

* [android] [auto] Update properties to version 5.0.0 in preparation for build.

* next release is now 5.1.0-SNAPSHOT
2017-03-18 11:52:18 +01:00
Fabian Guerra Soto
7c0822887b [ios] updated pod spec to release version (#8462) 2017-03-17 20:33:54 -04:00
Jordan Kiley
789a49d46d [ios, macos] update iOS SDK guides (#8354)
- Added DDS guide
- Updated "For Style Authors" guide
2017-03-17 19:13:24 -04:00
Tobrun
41dec13573 [android] - update CHANGELOG.md for 5.0.0 release (#8449) 2017-03-17 17:55:48 +01:00
Antonio Zugaldia
a96c6ee82e [android] Update dependencies to MAS v2.0.0 final 2017-03-17 11:18:26 -04:00
Tobrun
09d76854ab [android] - only dispatch events if not handled by MarkerView (#8447)
use onTouch listener to ignore dispatching action up events to MapView when they are already handled by MarkerView.
2017-03-17 15:23:28 +01:00
Tobrun
2e6c0263d8 8322 javadoc 5.0.0 release (#8438)
* [android] - update javadoc 5.0.0 release

* update annotation and sources package javadoc

* update javadoc on MapboxMap and MapView
2017-03-17 13:24:07 +01:00
Tobrun
abeca4fe16 [android] - take in account focalpoint when performing transformations, simplify zoom methods (#8416) 2017-03-17 13:23:53 +01:00
Tobrun
8736b733f9 [android] - fix LOST location updates (#8445) 2017-03-17 13:22:11 +01:00
Justin R. Miller
aae11a3430 [core] fixes #8433: don't skip style recalculations for fade-from-zero transitions (#8440) 2017-03-16 16:23:15 -07:00
Tobrun
6fb1fb52af [android] - update proguard configuration for 5.0.0 (#8437) 2017-03-16 17:14:40 +01:00
Jordan Kiley
e04aaa4522 [ios] Update podspec for v3.5.0-rc.1 (#8422) 2017-03-15 14:50:10 -07:00
Jordan Kiley
2c0005c262 [ios, macos] Add more information to interpolation mode docs (#8425)
Addresses #8192 until #8354 lands.
2017-03-15 13:57:37 -07:00
Anand Thakker
458de43b9e Increase precision of shader variable (#8423)
Fixes #7599
2017-03-15 15:02:02 -04:00
Jesse Bounds
2b4b94d3a7 [ios, macos] Update changelogs for 8374 2017-03-14 15:46:31 -07:00
Minh Nguyễn
4430e65603 [ios, macos] Expanded feature querying documentation
Also fixed a couple incorrect Swift method names on macOS.
2017-03-14 14:42:57 -07:00