Commit Graph

9145 Commits

Author SHA1 Message Date
Cameron Mace
da9864f25d Made telemetry dialog material (#6726)
* Made telemetry dialog material

* cleaned up attribution_main_menu
2016-10-21 10:29:12 -04:00
Mike Morris
7bbd49c72c [core] extract weak_ptr mailbox->receive into Mailbox::maybeReceive 2016-10-20 14:39:11 -04:00
Mike Morris
a894870fb8 [node] remove internal NodeRequest class from public API 2016-10-20 14:38:36 -04:00
Mike Morris
817c26111a [core] [node] pass thread pool impl to Map constructor
Updates mbgl::Map constructor usage everywhere

Adds NodeThreadPool implementation using AsyncQueue to call
Nan::AsyncQueueWorker from main thread
2016-10-20 14:37:36 -04:00
Ivo van Dongen
ab85fdb452 [glfw] add map change callback methods to glfw_view 2016-10-20 17:02:40 +03:00
Tobrun
04a9a98b98 [android] - add realtime geojson example from gl-js (#6751) 2016-10-20 15:45:57 +02:00
Ivo van Dongen
ab63a9494f [core] reload geojson source on url change 2016-10-20 16:18:08 +03:00
Ivo van Dongen
5527887c4b [android] geojson source - remove explicit repaint requests 2016-10-20 11:41:24 +03:00
Tobrun
6d50435880 [android] - Configure Gradle properties as part of the instalation process. (#6729) 2016-10-20 10:21:15 +02:00
Tobrun
9a7139b65c [android] - move instrumentation test code to correct package for Android Studio run configurations integration. (#6748) 2016-10-20 10:20:56 +02:00
Tobrun
76f91cc88d [android] - configures AWS Device farm plugin from testapp. (#6750) 2016-10-20 10:20:26 +02:00
Cameron Mace
61a534241f Adds map dialog activity to testapp (#6741)
* adds map dialog activity to testapp

* added to genertate-test-code script
2016-10-19 12:06:16 -04:00
Bruno de Oliveira Abinader
c50577d039 [core] Fix SymbolAnnotation coordinate system conversions 2016-10-19 08:11:41 +03:00
Bruno de Oliveira Abinader
ef62b78fce [core] TileCoordinate::fromLatLng no longer depens on TransformState 2016-10-19 08:11:41 +03:00
Bruno de Oliveira Abinader
2188d68b6c [core] Move TransformState::{un,}project() to Projection 2016-10-19 08:11:41 +03:00
Bruno de Oliveira Abinader
f01a829dc9 [core] Move TransformState::worldSize() to Projection 2016-10-19 08:11:41 +03:00
Bruno de Oliveira Abinader
3a12dd2d4f [core] Skip redundant spherical mercator variable updates in {ease,fly}To 2016-10-19 08:11:41 +03:00
Minh Nguyễn
ce243043f5 [ios, macos] Raise correct style layer misuse exception (#6738)
Implement the layer property on MGLStyleLayer itself, where it’s declared, so that the check for an abstract style layer doesn’t itself raise an exception. The concrete style layer classes still declare their own layers as covariant properties, although those properties aren’t actually used anywhere.
2016-10-18 15:03:10 -07:00
Tobrun
e5762ab728 [android] - update map change events javadoc (#6732) 2016-10-19 00:00:15 +02:00
Tobrun
f45712a6b3 [android] - add package-info.java for net package (#6733) 2016-10-18 23:59:57 +02:00
Tobrun
0ccc7f51ba [android] - fixup MyLocationView heading (#6671)
[android] - convert angles to radiants in jni, correct follow animation for MyLocationView

do not sanitise input when recreating from other camera object, input is already sanitised before

cleanup mylocationview, made animation bit more smooth, improved UX when switching between tracking modes

cleanup CameraUpdateFactory, hide internally used api.

only invalidate position if required, remove outdated comments

correct camera position values

made zoom activity a bit more interesting

made dynamic marker activity a bit more interesting

FIXUP
2016-10-18 17:56:39 +02:00
Jesse Bounds
87885008a6 [ios, macos] Use swift_name for MGLMultiPoint and subclasses (#6727)
Decorate the class factory methods so that when they are translated to
swift the method to create an MGLMultiPoint is not ambiguous with the
methods to create MGLPolygon and MGLPolyline.
2016-10-17 21:29:04 -07:00
Jason Wray
d10c1714d5 ios-v.3.4.0-beta.1 2016-10-17 18:36:30 -04:00
Minh Nguyễn
74c2bf8791 [macos] Added MGLTileSet to project (#6713)
Also reformatted some MGLTileSet documentation.
2016-10-17 15:19:36 -07:00
Jason Wray
a1d803f518 [ios, macos] Change runtime styling category method prefix to mgl_
This makes runtime styling category method naming consistent with the rest of the SDK.
2016-10-17 11:47:22 -07:00
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