Commit Graph

9120 Commits

Author SHA1 Message Date
Minh Nguyễn
4ff1a736d4 [ios, macos] Documented MGLStyleValue 2016-10-17 11:47:22 -07:00
Minh Nguyễn
cf5aa9c648 [ios, macos] Designated initializers
Added designated initializers to MGLStyleValue and friends. Restored custom equality and descriptions to MGLStyleFunction. Raise an exception if an unrecognized subclass of MGLStyleValue or MGLStyleValue itself is passed into a style attribute property.
2016-10-17 11:47:22 -07:00
Minh Nguyễn
9652028915 [ios, macos] Expand changes to entire API 2016-10-17 11:47:22 -07:00
Minh Nguyễn
0c8a3feffa [ios, macos] Replaced MGLStyleAttributeValue with MGLStyleValue
MGLStyleValue is an umbrella class serving as a variant container for MGLStyleConstantValue and MGLStyleFunction. These classes use lightweight generics to indicate the underlying type. A templated C++ class concisely converts between mbgl::style::PropertyValue and MGLStyleValue.
2016-10-17 11:47:22 -07:00
Minh Nguyễn
ae96e78ccd [ios, macos] Update changelogs (#6714)
* [macos] Subdivided release by topic in changelog

* [ios, macos] Updated changelogs
2016-10-17 10:14:21 -07:00
Tore Halset
a4b79ac289 [core] Optimize OfflineDownload::ensureResource (#6707)
Add `OfflineDatabase::hasRegionResource`, for use when the actual contents are not needed by the caller, avoiding IO and decompression costs.
2016-10-17 09:27:07 -07:00
Cameron Mace
76ed537be5 [android] added wearable module (#6702)
* added wearable module

* fixed spacing in feature list

* fixed tobruns suggestions and added checkstyle plugin
2016-10-17 09:30:30 -04:00
Tobrun
1bee9d34f5 Reusable point fromScreenLocation (#6652)
* Fixed bug where fromScreenLocation would modify the actual Point being passed in

* [android] - move reused point to Projection class, migrated screen density logic to projection

fixup code to be unit testable
2016-10-17 14:51:39 +02:00
Tobrun
d22d8a6c9b 6700 proguard update (#6718)
* [android] - include net package in proguard config, added the default EnclosingMethod disable warning and fixed up typo.

* update test app dependency leak canary to do a proguard release build, replaced keep support lib classes by dontwarn following Google guidelines, remove outdated/obsolete square configuration
2016-10-17 14:50:25 +02:00
Tobrun
bda0e94af2 MarkerView more robust when updates are asynchronous (#6717)
* [android] - remove ViewMarkers crash, show correct view cache size in test activity

* use MapboxMap to indicate a MarkerView is no longer added on a map, no future updates will be passed on to core.

* resolve memory leak
2016-10-17 14:50:09 +02:00
Ivo van Dongen
b3468f5db7 [android] fix android style code gen script 2016-10-17 14:01:31 +03:00
Mike Morris
9da7a4aaf0 [android] add lodash to devDependencies in package.json 2016-10-17 14:01:31 +03:00
Bruno de Oliveira Abinader
964183b481 [qt] Fix Qt5 bitrise bot 2016-10-17 12:51:21 +03:00
Justin R. Miller
674304bfae [ios, macos] fixes #6346: add support for configurable API base URL (#6709) 2016-10-15 20:12:36 -07:00
Ivo van Dongen
e5a473a301 [android] don't delete local reference on value copy 2016-10-15 10:51:19 +03:00
Jason Wray
4a0173bbd7 [ios, macos] Deprecate -[MGLMapViewDelegate mapView:alphaForShapeAnnotation:] (#6706) 2016-10-14 19:50:21 -04:00
Jesse Bounds
0a8858f2da [ios, macos] Teach features and shapes about GeoJSON and mbgl types
MGLShape subclasses can now return NSDictionaries that represent the shapes' GeoJSON geometries. MGLFeature classes can now return NSDictionaries that represent the features as GeoJSON features. This makes it trivial to serialize iOS and macOS shapes and features into GeoJSON.

MGLFeature instances can also return a representation of themselves as an mbgl::Feature. This capability is used in a refactoring of the implementations of MGLGeoJSONSource to more efficiently transform MGLFeatures into mbgl::Features so they can be fed directly into mbgl::GeoJSONSource without having to round trip through NSJSONSerialization. The MGLFeature identifier is converted into the mbgl::identifier type based on the type of the identifier. The MGLFeature attributes are recursively converted into an mbgl::PropertyMap and each value is converted into one of the types that the PropertyMap's Value variant supports.
2016-10-14 14:59:28 -07:00
ituaijagbone
f558f6bc4a [ios, macos] Add feature initializer
This adds a features initializer to MGLGeoJSONSource. The initializer
takes shapes and converts them to JSON representation before passing
to core. This also adds methods to the MGLShape concrete subclasses
so that they can represent themselves in NSDictionary form suitable
for transforming to JSON (GeoJSON).
2016-10-14 14:59:28 -07:00
Justin R. Miller
242c7f8fe6 better formatting for external libraries listing (#6696) 2016-10-13 16:23:28 -07:00
Tobrun
1898df606d [android] - add transparent image for MarkerViews ghosting SymbolAnnotations (#6675)
* [android] - add transparent image to core for MarkerView ghosting SymbolAnnotations. Removes logging messages: `Can't find sprite ... `. Cleanup MapView.

* [android] - use alpha_8 config to only allocate one byte, rename id for better readability.
2016-10-13 17:04:02 +02:00
Tobrun
b722d5c3a9 [android] - downscale amount of instrumentation tests run on CI to one (#6692) 2016-10-13 13:55:54 +02:00
Bruno de Oliveira Abinader
19d3c5ca25 [core] Cleanup SymbolLayout
Reuse reverse rotation matrix from CollisionTile when populating the
collision boxes.
2016-10-13 07:39:25 +03:00
Minh Nguyễn
f064744c36 [macos] Fixed compilation error (#6690)
Followup to last-minute refactoring in #6637.
2016-10-12 21:06:50 -07:00
Roman Blum
a24e559ac8 [ios, macos] possibility to set custom images to style (#6637)
* [ios, macos] possibility to set custom images to style

* [ios, macos] setImage:forName now supports MGLImage (UIImage/NSImage)

* [ios, macos] update documentation for setImage:forName: and removeImageForName:

* [ios, macos] rename method and fix prefix

* [ios, macos] change header visibility to project

* [ios, macos] update header imports

* [ios, macos] delete unnecessary whitespaces

* [ios, macos] remove unnecessary nil checks

* [ios, macos] delete unnecessary whitespaces

* [ios, macos] update documentation

* [ios, macos] make mgl_spriteImage a parameter-less instance method

* [ios, macos] add asserts
2016-10-12 12:30:20 -07:00
Tobrun
7bbf4a286e [android] - allow gradle to allocate more memory when building the test app (#6678) 2016-10-12 20:03:34 +02:00
Tobrun
9669997181 [android] Fix gestures when MapView is not full screen (#5562)
This fixes #5528
2016-10-12 20:02:04 +02:00
Bruno de Oliveira Abinader
a6d0e21472 [core] Disable stencil test when rendering collision boxes 2016-10-12 19:01:08 +03:00
Bruno de Oliveira Abinader
d00a32fe66 [android] Using mbgl::AnnotationIDs in JNI code 2016-10-12 18:59:40 +03:00
Bruno de Oliveira Abinader
436a22efe9 [core] Skip duplicated IDs when querying point annotations 2016-10-12 18:58:22 +03:00
tomlocks
0fc7fd11d9 [android] Fixed wrong location view interpolation (#6668) 2016-10-12 11:07:25 +02:00
Tobrun
e0b025ab4d [android] - correct android to core conversion of camera options. (#6660)
* [android] - correct android to core conversion of camera options.

* fix MarkerView tilting, tilt is already in degrees

* same fix for MyLocationView
2016-10-12 10:56:38 +02:00
Bruno de Oliveira Abinader
2726f9b8ae [macos] Merge mbgl-{test,benchmark} into CI scheme 2016-10-12 07:35:13 +03:00
Minh Nguyễn
3c22b14479 [ios, macos] Refer to style layer class in enum documentation 2016-10-11 15:30:16 -07:00
Minh Nguyễn
c78b5b1d7e [ios, macos] Simplified style property enum names
The name of each enumeration type no longer refers to the layer type that uses it.
2016-10-11 15:30:16 -07:00
John Firebaugh
c1b05c8f5b [tests] Get test-suite back on master branch (#6661) 2016-10-11 14:53:15 -07:00
Jason Wray
5f969e3302 [ios, macos] Add description string for MGLStyle class
Example: <MGLStyle: 0x60800001e0a0; name = "Mapbox Dark", URL = "mapbox://styles/mapbox/dark-v9">

- Adds an internal `URL` property.
2016-10-11 13:07:10 -04:00
Jason Wray
5d85dbd7cd [ios, macos] Add -mapView:didFinishLoadingStyle: delegate method 2016-10-11 13:07:10 -04:00
Bruno de Oliveira Abinader
9946e60536 [test] Added TileCoordinate tests 2016-10-11 19:36:21 +03:00
Bruno de Oliveira Abinader
36b3ba56b6 [core] Improve Source::Impl readability 2016-10-11 19:36:21 +03:00
Bruno de Oliveira Abinader
7b907b6d1c [core] Use TilePoint in Source::Impl::queryRenderedFeatures 2016-10-11 19:36:21 +03:00
Tobrun
94a014cde3 [android] - revert making bearing and tilt to radiants (#6656) 2016-10-11 16:51:33 +02:00
Tobrun
fb2338ceca [android] - close response body to avoid connection leak (#6650) 2016-10-11 15:53:16 +02:00
Antonio Zugaldia
4cc7e7de4f [android] #6617 - Introduce a setConnected method to manually set a connected flag
* [android] introduce a setConnected method to manually set a connected flag

* extend connected state to ConnectivityReceiver

* extend connected state to ConnectivityReceiver
2016-10-11 09:17:07 -04:00
Josh Burton
e3c79bfd34 [android] - Use correct nullity annotation for convertView (#6521) 2016-10-11 15:07:47 +02:00
Bruno de Oliveira Abinader
7dbc302b2f [test] Deploy core test fixtures on Bitrise 2016-10-11 12:10:32 +03:00
Bruno de Oliveira Abinader
89f3270f72 [node] Added set{Bearing,Center} + updated -test-suite
This gives the ability to pan and/or rotate the map in a posterior step
after initial render for testing purposes.
2016-10-11 12:10:32 +03:00
Bruno de Oliveira Abinader
ccef4be995 [test] Added Annotations.VisibleFeatures test
This provides a means of testing cases where an updated geometry tile
would return wrong results for `queryRenderedFeatures`.
2016-10-11 12:10:32 +03:00
Bruno de Oliveira Abinader
623a124e01 [core] Use query geometry from FeatureIndex into CollisionTile::queryRenderedSymbols 2016-10-11 12:10:32 +03:00
John Firebaugh
38e78e25df [core] No need for feature querying to support multipolygons 2016-10-11 10:54:58 +03:00
Ivo van Dongen
61d8ecefda [android] Runtime Style Filter enhancements (#6623)
* [android] Additional null check - prevents errors in array conversion

* [android] style conversion - delete local refs asap to avoid ref table overflow

* [android] Filter - hide concrete implementation classes to avoid confusion
2016-10-11 10:30:38 +03:00