summaryrefslogtreecommitdiff
path: root/platform
Commit message (Collapse)AuthorAgeFilesLines
...
* Only listen to connectivity broadcast events when needed (#8222)Tobrun2017-03-015-73/+48
| | | | | | * [android] - only listen to connectivity change events when needed. * [android] - fix compile var args warning, remove redundant test
* [iOS] Replaced gifs from gesture recognizer guide (#8227)Jordan Kiley2017-02-282-0/+0
| | | | * [ios] replaced gifs
* [core] Implement data-driven styling for ↵Anand Thakker2017-02-285-122/+1348
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | {text,icon}-{color,opacity,halo-color,halo-blur,halo-width} (#7939) * Add symbol dds attributes and adapt style code generation * Update to mapbox-gl-js/master * Refactor SymbolFeature as a subclass of GeometryTileFeature Prepares for enabling DDS on symbol paint properties by allowing the SymbolFeatures, which we keep around after constructing SymbolLayout, to be used in evaluating data-driven paint properties later in the layout process. * Draft approach for splitting icon/text paint properties The `Program` types are set up to bind GL attributes to each of the data-driven paint properties specified in the `PaintProperties` type provided. Since `SymbolPaintProperties` specifies both `Text*` and `Icon*` properties, the symbolIcon, symbolIconSDF, and symbolGlyph programs each attempt to bind roughly double the number of attributes that they actually need. This change addresses this by: - Adding the more specific `IconPaintProperties` and `TextPaintProperties` types, which are subsets of the full `SymbolPaintProperties`. - The symbol layer continues to use its `SymbolPaintProperties paint` member to track layer property state, but it provides helpers that construct objects of each the specific `{Icon,Text}PaintProperties::Evaluated` type, for use by the painter. - The three symbol programs instantiate `Program<>` using the appropriate `{Icon,Text}PaintProperties` type. * check in generated style code * Populate paint buffers for symbol DDS properties * Address first round of review comments * Refactor VectorTile{Layer,Feature} to explicitly share data * Update submodule
* [android] fix unit tests for #7944Ivo van Dongen2017-02-282-3/+3
|
* [core] [android] - allow zooming/scaling to use AnimationOptions (#8181)Tobrun2017-02-282-10/+10
| | | [glfw] - allow glfw binding to use AnimationOptions instead of using direction directly
* [android] raise checkstyle file length limitIvo van Dongen2017-02-281-1/+1
|
* [android] insert layer at indexIvo van Dongen2017-02-285-0/+82
|
* [android] remove layer at indexIvo van Dongen2017-02-285-2/+75
|
* [android] insert layer aboveIvo van Dongen2017-02-289-15/+118
|
* [android] remove source returns referenceIvo van Dongen2017-02-285-14/+26
|
* [android] remove layer returns referenceIvo van Dongen2017-02-284-12/+20
|
* [android] fix ownership of style layer after deleteIvo van Dongen2017-02-2819-18/+184
|
* [android] source list accessor + exampleIvo van Dongen2017-02-287-0/+81
|
* [android] layer list accessor + exampleIvo van Dongen2017-02-287-0/+88
|
* [android] add unknown source typeIvo van Dongen2017-02-285-3/+102
|
* [android] add unknown layer typeIvo van Dongen2017-02-285-3/+112
|
* [WIP] InfoWindow refactor (#8080)Pablo Guardiola2017-02-2813-245/+773
| | | | | | | | | | * [android] remove unnecessary info window class and add bubble layout * fix some PR comments (remove hungarian notation, make bubble popup helper package protected and fix some code style issues) * refactor replace enum in favor of intdef * make bubble layout package protected and remove useless info window tip view class
* [android] - don't allow transforming to the same camera position, ignore ↵Tobrun2017-02-281-24/+29
| | | | redundant updates. (#8134)
* Fix a NPE that occurs when MapView is initialized with a null ↵Tobrun2017-02-281-1/+1
| | | | MapboxMapOptions (#8131)
* [core] private OffscreenView implementationKonstantin Käfer2017-02-273-23/+52
|
* [android] - add javadoc to test activities. (#8203)Tobrun2017-02-2746-80/+193
| | | | | | * [android] - add javadoc to test activities. * fix checkstyle issue
* [android] - reverse compass direction (#8130)Tobrun2017-02-271-6/+12
|
* [core] Reserve vector sizeJohn Firebaugh2017-02-271-0/+2
|
* [core] Avoid some string copies in bidi implementationJohn Firebaugh2017-02-271-6/+7
| | | | As of C++11, it's safe to preallocate std::[u16]string and write to the buffer via &s[0] (C++17 makes it possible via .data() as well).
* [glfw] Make P pause/resume the network threadThiago Marcos P. Santos2017-02-253-2/+23
| | | | Simple test of the DefaultFileSource pause/resume API.
* [core] Add a pause/resume API to the DefaultFileSourceThiago Marcos P. Santos2017-02-251-0/+8
| | | | | It will halt the networking thread completely. Expired and error'ed tiles won't get re-requested until resume() is called again.
* [android] jni high level binding refactorIvo van Dongen2017-02-2462-2846/+3709
|
* [ios, macos] Make source removal consistent with layer removalJesse Bounds2017-02-234-13/+74
| | | | | | | | | | | | | | | This refactors the source removal methods to make them consistent with the way layers are removed. This makes removal of nonexistent sources and removal of sources of a different type but same identifier as a previously added source a no-ops. As with layers, the check at the top of the method to ensure that the raw pointer is the same as the one in mbgl for the same identifier string should make it impossible to attempt to remove a source of a different type than the one in mbgl for the same identifier. However, for consistency with the layer implementation, the reinterpret_cast has been replaced with a dynamic_cast and check for nullptr.
* [android] remove nonexistent layer or source handlingIvo van Dongen2017-02-239-108/+31
|
* [ios, macos] Simplify implementation of layer removal from map viewJesse Bounds2017-02-238-31/+44
| | | | | | | | | | | This reverts a previous change that recreated the pending and raw layer pointers if an identifier match caused a layer to be removed but the removed layer was of a different type than the layer triggering the removal This refactors the pointer replacement to use a simpler solution that returns early if the layer does not have a raw pointer loaded in the mbgl map instance.
* [ios, macos] Update changelog for style and layer removal behaviorJesse Bounds2017-02-232-2/+2
|
* [core, ios, macos] Return null when removing nonexistent sourceJesse Bounds2017-02-234-6/+29
|
* [ios, macos] Recreate pending and raw layer ref when layer is removedJesse Bounds2017-02-238-21/+68
|
* [core] Return null when removing nonexistent layerEimantas Vaiciunas2017-02-232-0/+2
| | | | | In case of exception, silently ignore removal of nonexistent layer and return nullptr
* [node] adhere to node module naming requirementsKonstantin Käfer2017-02-232-2/+2
| | | | https://nodejs.org/api/addons.html#addons_building specifies that "The module_name must match the filename of the final binary (excluding the .node suffix).". While the mismatch between `mapbox-gl-native` and `mapbox_gl_native` hasn't caused issues so far, we should play by the book.
* [android] fix units in runtime styling javadoc (#8161)Pablo Guardiola2017-02-232-5/+8
|
* [build] Fix build on Ubuntu 16.04+Thiago Marcos P. Santos2017-02-232-2/+2
| | | | gtest was broken because of lack of CXX11ABI support.
* Update to MAS 2.0.0-beta.2 and handle dependencies consistently (#8169)Antonio Zugaldia2017-02-232-25/+32
| | | | | | * [android] update to mas 2.0-beta2 and handle dependencies consistenly * extract remaining dependencies and bump stable versions
* [android] - move calculating a bounding box zoom level to projection. (#8133)Tobrun2017-02-232-11/+11
|
* [android] - remove filter Object[] from ejs template file for layer (#7658)Tobrun2017-02-235-105/+5
|
* [linux] Don't manually activate context before destroying itJohn Firebaugh2017-02-222-6/+0
|
* [build] use system-provided Android NDK when availableKonstantin Käfer2017-02-223-33/+119
| | | | and fall back to Mason if it isn't
* [Qt] Document QMapbox + qdoc fixesBruno de Oliveira Abinader2017-02-224-20/+224
|
* Merge branch 'release-ios-v3.4.0' into 1ec5-release-ios-v3.4.2Minh Nguyễn2017-02-2118-91/+251
|\
| * ios-v3.4.2, macos-v0.3.1macos-v0.3.1ios-v3.4.2upstream/release-ios-v3.4.0Minh Nguyễn2017-02-216-7/+9
| |
| * [macos] reuse OpenGL context when switching screensKonstantin Käfer2017-02-202-1/+11
| | | | | | | | Cherry-picked from 43e81509fb0be54bea5912fb5a10bfa0e0667a44.
| * [ios, macos] Updated changelogsMinh Nguyễn2017-02-182-9/+9
| | | | | | | | Removed a duplicate entry; moved the #7125 entry to the right release; added a blurb about #7937.
| * [ios, macos] Short-circuit redundant camera changesMinh Nguyễn2017-02-188-53/+156
| | | | | | | | | | | | | | | | Avoid canceling transitions (and triggering preexisting completion handlers) until we get a chance to ensure that a new transition really does have to begin. Consistently avoid mbgl transitions for redundant camera changes. Upon bailing, schedule the completion handler to run asynchronously on a delay equivalent to the requested animation duration. Added a “functional” equality method to MGLMapCamera that avoids trivial differences. Fixed invocations of XCTAssertEqualWithAccuracy() that incorrectly expressed the accuracy as a number of digits rather than a scalar tolerance.
| * [ios] persistent user tracking modeFredrik Karlsson2017-02-062-3/+4
| |
| * [ios] add user interaction guide (#7937)Jordan Kiley2017-02-065-1/+40
| | | | | | | | | | * added gesture recognizer guide and gifs