Commit Graph

9058 Commits

Author SHA1 Message Date
Minh Nguyễn
0acf1ed596 [ios, macos] Renamed files to match renamed classes 2016-10-06 15:19:38 -07:00
Minh Nguyễn
50d2c01d7d [ios, macos] Revamped MGLStyleLayer, MGLSource inheritance
Removed the MGLStyleLayer protocol, because almost none of its members was actually implemented in every class that adopted the protocol. Removed the unused mapView backpointer property with no replacement. Renamed MGLBaseStyleLayer to MGLStyleLayer. Created the intermediate abstract classes MGLForegroundStyleLayer and MGLVectorStyleLayer to cover subsets of style layer classes with like functionality.

Moved each MGLBaseStyleLayer initializer and the corresponding properties down to an abstract subclass such that the initializer makes sense for all concrete subclasses. Moved more initializers and the predicate property up to MGLVectorStyleLayer to eliminate duplication among the concrete subclasses. Marked these initializers as designated initializers.

Removed “source” or “layer” before identifier wherever the type of identifier is apparent. Removed extra MGLGeoJSONSource initializer variants in favor of nullable parameters.

Added copious documentation comments for source and style layer classes, including several previously undocumented methods and properties. In particular, some preconditions and postconditions have been documented. Added pragma marks to break up the jazzy documentation pages into sections. Reformatted exceptions for consistency.
2016-10-06 15:19:38 -07:00
John Firebaugh
21d7ee11e1 [core] Rationalize shader names
{layer type}{subtype}Shader
2016-10-06 14:47:58 -07:00
John Firebaugh
388fa9cf10 [macos] Restore core unit tests in CI 2016-10-06 10:16:45 -07:00
Konstantin Käfer
08809b4d44 [macos,ios] initialize util::RunLoop in SDK rather than by default 2016-10-06 10:16:45 -07:00
Antonio Zugaldia
7bcb04a609 [android] #6522 - Automate build process for Android SDK releases
* [android] draft release supporting snapshots

* [android] release.py ready for testing
2016-10-06 10:07:27 -04:00
Jason Wray
8d221cafe0 [ios] Deploy script enhancements (#6581)
* Add `make ideploy` command for publishing iOS releases.
* Get release version from latest ios git tag.
* Use caffeinate to prevent the system from sleeping during the deploy process.
* Checkout tag to ensure correct commit is used
* Fail if release has already been published (not a draft) on GitHub
* Add publish step logging and colorize it.
* Allow s3 upload to show progress.
* Use build/ios/deploy directory for downloaded release zips; always overwrite via -O flag.
* Add zip filename to s3 step.
* Auto-install github-release command
2016-10-05 20:29:17 -04:00
Tobrun
c2333658f0 [android] - invalidate focal point when setting MyLocationView padding (#6413) 2016-10-05 22:55:54 +02:00
Tobrun
d96aabec43 [android] - correct focal point data when double tapping (#6595) 2016-10-05 22:54:54 +02:00
Tobrun
8b5228d6ec [android] - correct focal point with padding and tilt enabled + cleanup code MyLocationView (#6594) 2016-10-05 22:54:35 +02:00
Jesse Bounds
dab8ee93c8 [ios] Observer that app did become active instead of will foreground (#6600) 2016-10-05 11:53:47 -07:00
Minh Nguyễn
6877e3efe7 [ios, macos] Remove support for CONTAINS operator (#6590)
* [ios, macos] Removed support for CONTAINS operator

* [ios, macos] Removed CONTAINS test
2016-10-05 11:10:07 -07:00
John Firebaugh
f438bb68b0 [core] Adhere to vertices/vertexBuffer naming convention 2016-10-05 10:52:19 -07:00
John Firebaugh
da4527cd3a [core] TextureRectVertex ⇢ SymbolVertex 2016-10-05 10:52:19 -07:00
John Firebaugh
9cf57e7142 [core] Make ElementGroup safer
Template on shader types, rather than count. This allows the compiler to enforce using the correct VAO for the shader and PaintMode. This fixes OverdrawMode with circle layers.

While here, avoid using unique_ptrs for groups. Instead, ensure ElementGroup is movable.
2016-10-05 10:52:19 -07:00
John Firebaugh
e4310aa874 [core] Improve attribute binding API 2016-10-05 10:52:19 -07:00
John Firebaugh
b9b8657d43 [core] Put VertexArrayObject in gl namespace 2016-10-05 10:52:19 -07:00
John Firebaugh
73334ac8fa [core] Move shader and uniform to gl directory 2016-10-05 10:52:19 -07:00
John Firebaugh
7a3bef091e [core] Refactor Buffer 2016-10-05 10:52:19 -07:00
John Firebaugh
ac8a74ebcc [core] Don't refer to geometry coordinates as "vertices" 2016-10-05 10:52:19 -07:00
John Firebaugh
31be5d3c3a [core] Tiles that error on load are not renderable 2016-10-05 10:26:04 -07:00
Tobrun Van Nuland
3b72c288ad [android] refactored exposed api on MapboxMap
fix unit tests

fixup comments
2016-10-05 17:10:45 +02:00
clydebarrow
a4b0e2f30c [android] Revise handling of tracking modes and interactions
with touch gestures.

This fixes issues #6549 and #6567. Also pertinent to #6557.
Additional code has been added to the test app (Activity "User Tracking
Mode") to test.
A potential race condition in the MapboxMap#easeCamera() methods where
a camera change generated by tracking which could have reset the tracking
modes has been eliminated by factoring out a new method
MapboxMap#easeCameraInternal().
2016-10-05 17:10:45 +02:00
Bruno de Oliveira Abinader
214ec4e96a [build] Add support for 'benchmark' target on macOS 2016-10-05 15:34:30 +03:00
Ivo van Dongen
dd7713f6ee [android] javadoc - inter-link style properties properly 2016-10-05 12:15:15 +02:00
Ivo van Dongen
93166aef48 [android][build] always generate style sources on build 2016-10-05 12:15:15 +02:00
Thiago Marcos P. Santos
0ae25aa2ad [tests] Do not run benchmarks with GDB 2016-10-05 11:32:11 +03:00
Thiago Marcos P. Santos
a38104ee22 [tests] Added benchmarks for querying for features 2016-10-05 11:12:16 +03:00
Thiago Marcos P. Santos
82b801250e [tests] Add unit tests for query features fiters 2016-10-05 11:12:16 +03:00
Thiago Marcos P. Santos
5829c0dbc6 [build] Re-add benchmark tests to the buildsystem
Probably lost on the cmake migration
2016-10-05 11:12:16 +03:00
Thiago Marcos P. Santos
dd604a7b36 [core] Pre-filter sources based on the layers they contain 2016-10-05 11:12:16 +03:00
Justin R. Miller
105673efc1 [ios, macos] fixes #6160: allow updating multipoint coordinates (#6565) 2016-10-04 18:42:12 -07:00
Konstantin Käfer
07315711d6 [core] remove Raster object in favor of a more low-level Texture object 2016-10-04 14:00:30 -07:00
Tobrun
e103d92b18 Rework setStyleUrl() logic to avoid NPE as per #6512 (#6574)
* [android] Rework setStyleUrl() logic to avoid NPE as per #6512

* fixup brackets + comment
2016-10-04 15:19:25 +02:00
Jesse Bounds
26c32f5c11 [ios] Remove double counting of content inset top and bottom (#6566)
This removes the calls to top and bottom for content inset of the
map view when calculating the edge padding for following. A previous
commit added this along with the left and right values. This
eliminates a bug where the map did not scroll to the correct location
for the user dot and also a bug in
`didUpdateLocationWithUserTrackingAnimated:` where the map panning
operations would always occur because the current and correct points
never matched up even if a stream of location values that were the
same were processed.
2016-10-03 17:21:38 -07:00
Minh Nguyễn
d4151c9f36 [ios, macos] Updated changelogs 2016-10-03 19:06:30 -04:00
Jason Wray
f8a0dc0ff9 ios-v3.4.0-alpha.5 2016-10-03 19:06:30 -04:00
Sam Matthews
280fd8c28e [core] Preserve non-access_token query parameters in canonicalizeTileURL 2016-10-03 10:08:17 -07:00
Tobrun
4bbdb448fd [android] - make MyLocationView responsible for converting tilt to degrees. (#6558) 2016-10-03 17:19:47 +02:00
Minh Nguyễn
132954b563 [ios, macos] Loosened style doc transform regex (#6543)
Mildly decoupled the transformation from the style specification to the format required for iOS/macOS documentation so it’s harder for style specification references to other properties’ values to fall through the cracks.

Fixes #6541.
2016-09-30 18:20:47 -07:00
Justin R. Miller
ee4715a821 update style generation code for new style spec enum values docs (#6508)
Documentation for enum values landed in mapbox/mapbox-gl-style-spec#510. 

This updates Android, iOS, and macOS documentation code gen scripts to capitalize on them.
2016-09-30 15:55:46 -07:00
Jason Wray
5b28ebbeca [ios][macos] Update changelog for dSYM, symbol stripping fix 2016-09-30 18:49:05 -04:00
Jason Wray
d3b308a695 [macos] Add 'Packaging builds' section to developing doc 2016-09-30 18:49:05 -04:00
Jason Wray
d7a44a6b90 [macos][build] Validate dSYM and framework UUIDs 2016-09-30 18:49:05 -04:00
Jason Wray
161955209d [macos][build] Generate debug symbols for all builds 2016-09-30 18:49:05 -04:00
Jason Wray
9a92a3a5dd [ios][build] Validate dSYM and framework UUIDs 2016-09-30 18:49:05 -04:00
Jason Wray
c72deacdcf [ios][build] Generate debug symbols for all builds
Fixes the issue where our stripped dynamic build did not have a valid dSYM.

Disabling GCC_GENERATE_DEBUGGING_SYMBOLS for SYMBOLS=NO builds meant
that those builds had no debug symbols to strip or add to a dSYM.
2016-09-30 18:49:05 -04:00
Jason Wray
43f70465f5 [macos] Don't specify Swift version for jazzy doc generation (#6539)
Counterpart to https://github.com/mapbox/mapbox-gl-native/pull/6377/.
2016-09-30 14:47:52 -07:00
Ivo van Dongen
ca20767e9c [android] Add sprite image example 2016-09-30 17:11:22 +02:00
Ivo van Dongen
8fbc1bc750 [android] addImage / removeImage jni bindings 2016-09-30 17:11:22 +02:00