Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [core] Port ensure a non-zero source tile cache size (#7438) | Jesse Bounds | 2016-12-14 | 1 | -2/+2 |
| | | | | | This ports https://github.com/mapbox/mapbox-gl-native/pull/7242/ commits/2d323211af54499d5c822b8e45d7415bf92112f0 to the iOS 3.4.0 release branch. | ||||
* | [core] Swap order of Style::recalculate and Style::relayout | Ivo van Dongen | 2016-12-13 | 1 | -4/+4 |
| | | | | Style::relayout uses source.baseImpl->loaded, a flag which is updated by Style::recalculate. So recalculate first, then relayout. | ||||
* | [core] guard against duplicate layer ids | Ivo van Dongen | 2016-12-13 | 1 | -0/+9 |
| | |||||
* | [core] use raii to guard backend deactivation | Ivo van Dongen | 2016-12-13 | 1 | -13/+5 |
| | |||||
* | [core, ios, macos] Add image accessor to MGLStyle (#7096) | Roman Blum | 2016-12-05 | 1 | -0/+7 |
| | | | | | | | | | | | | * [core] Add interface to get image from sprite atlas * [tests] Add tests for Map::getImage * [ios, macos] WIP: get MGLImage for name from style * [ios, macos] Fixed -imageForName: Convert from sprite images to platform images using the existing encodePNG() function, which is also used for printing. Allow -imageForName: to return nil without an assertion failure. Added a basic test. | ||||
* | [core] guard against duplicate source id’s | Ivo van Dongen | 2016-12-02 | 1 | -0/+10 |
| | |||||
* | [core, ios, macos] Added layers and sources properties to MGLStyle | Minh Nguyễn | 2016-11-28 | 3 | -1/+39 |
| | | | | | | | | Added new layers and sources properties to MGLStyle that contain all the style’s layers and sources, respectively. These properties are KVC-compliant with all the mutable to-many methods. Layers are ordered from topmost to bottommost, for consistency with Cocoa APIs where front/first means top and back/last means bottom. Also added storage for mbgl::style::Source in MGLSource proper for wrapping AnnotationSource. Until the style finishes loading, its name property is set to nil. Fixes #6003. | ||||
* | [core] cache raster tiles | Konstantin Käfer | 2016-11-22 | 1 | -1/+1 |
| | |||||
* | [core] don't run symbol placement more often than necessary | Konstantin Käfer | 2016-11-14 | 3 | -5/+3 |
| | |||||
* | [core] Return source and layer ownership (#7014) | Jesse Bounds | 2016-11-13 | 5 | -15/+41 |
| | | | | | | | | When a source or layer is removed transfer ownership back to the caller so it can (optionally) take it. Preserve the behavior that removing a CustomLayer triggers deinitialization. Deinitialize all custom layers when a style is destroyed in case those layers are not explicitly removed. | ||||
* | [core] symbol layer - recalculate style on icon/text size changes | Ivo van Dongen | 2016-11-13 | 6 | -43/+51 |
| | |||||
* | [core] Fix render tile ordering when querying sources | Bruno de Oliveira Abinader | 2016-11-13 | 2 | -21/+17 |
| | |||||
* | [core] Separate pathway for notifying workers of new images/glyphs | John Firebaugh | 2016-11-13 | 9 | -12/+77 |
| | |||||
* | [core] Ensure correct GL context in Map::onLowMemory() | John Firebaugh | 2016-11-09 | 1 | -0/+2 |
| | |||||
* | [core] move gl::Context to Backend and refactor View | Konstantin Käfer | 2016-10-25 | 21 | -256/+449 |
| | |||||
* | [core] separate Backend from View for headless rendering | Konstantin Käfer | 2016-10-25 | 8 | -57/+106 |
| | |||||
* | [core] geojson source - cancel any pending request when setting geojson ↵ | Ivo van Dongen | 2016-10-25 | 2 | -3/+12 |
| | | | | explicitly | ||||
* | [core] geojson source - clear cache when json content is set | Ivo van Dongen | 2016-10-25 | 2 | -1/+3 |
| | |||||
* | [core] geojson source - reset req on setURL | Ivo van Dongen | 2016-10-25 | 1 | -2/+2 |
| | |||||
* | [core] Reuse last placement data in CollisionTile::queryRenderedFeatures | Bruno de Oliveira Abinader | 2016-10-25 | 1 | -32/+68 |
| | | | | | | | | | | | To obtain precise results, we: 1. Round scale value to obtain same results from symbol shader. 2. Generate a boost geometry polygon to check if it intersects() against all feature boxes. 3. Check if current scale is within each feature's minimum and maximum placement scales. 4. De-scale feature boxes when intersecting to account for the fractional zoom scaling. | ||||
* | [core] Added util::polygonIntersectsPolygon | Bruno de Oliveira Abinader | 2016-10-25 | 2 | -20/+13 |
| | |||||
* | [core] Simplify CollisionTile::findPlacementScale | Bruno de Oliveira Abinader | 2016-10-25 | 2 | -8/+6 |
| | | | | | | Improve findPlacementScale semantics by moving the check if the placement scale result is bigger than minimum scale out of the function scope. | ||||
* | [core] Avoid duplicating edges for CollisionTile | Bruno de Oliveira Abinader | 2016-10-25 | 2 | -23/+16 |
| | | | | | Make 'edges' static to avoid every instance of CollisionTile having its own copy of it. | ||||
* | [core] Cleanup function signatures in CollisionTile | Bruno de Oliveira Abinader | 2016-10-25 | 2 | -7/+7 |
| | | | | | - Prefer pass-by-value for primitive types. - Use floating point precision for yStretch to match receiving type. | ||||
* | [core] fixup formatting | Ivo van Dongen | 2016-10-21 | 1 | -2/+2 |
| | |||||
* | [core] extract weak_ptr mailbox->receive into Mailbox::maybeReceive | Mike Morris | 2016-10-20 | 2 | -0/+8 |
| | |||||
* | [core] [node] pass thread pool impl to Map constructor | Mike Morris | 2016-10-20 | 3 | -89/+8 |
| | | | | | | | Updates mbgl::Map constructor usage everywhere Adds NodeThreadPool implementation using AsyncQueue to call Nan::AsyncQueueWorker from main thread | ||||
* | [core] reload geojson source on url change | Ivo van Dongen | 2016-10-20 | 4 | -0/+18 |
| | |||||
* | [core] Fix SymbolAnnotation coordinate system conversions | Bruno de Oliveira Abinader | 2016-10-19 | 1 | -20/+5 |
| | |||||
* | [core] TileCoordinate::fromLatLng no longer depens on TransformState | Bruno de Oliveira Abinader | 2016-10-19 | 2 | -12/+13 |
| | |||||
* | [core] Move TransformState::{un,}project() to Projection | Bruno de Oliveira Abinader | 2016-10-19 | 4 | -35/+16 |
| | |||||
* | [core] Move TransformState::worldSize() to Projection | Bruno de Oliveira Abinader | 2016-10-19 | 3 | -19/+14 |
| | |||||
* | [core] Skip redundant spherical mercator variable updates in {ease,fly}To | Bruno de Oliveira Abinader | 2016-10-19 | 1 | -5/+0 |
| | |||||
* | [core] Cleanup SymbolLayout | Bruno de Oliveira Abinader | 2016-10-13 | 3 | -34/+36 |
| | | | | | Reuse reverse rotation matrix from CollisionTile when populating the collision boxes. | ||||
* | [core] Disable stencil test when rendering collision boxes | Bruno de Oliveira Abinader | 2016-10-12 | 1 | -3/+1 |
| | |||||
* | [core] Skip duplicated IDs when querying point annotations | Bruno de Oliveira Abinader | 2016-10-12 | 1 | -3/+5 |
| | |||||
* | [core] Improve Source::Impl readability | Bruno de Oliveira Abinader | 2016-10-11 | 1 | -18/+11 |
| | |||||
* | [core] Use TilePoint in Source::Impl::queryRenderedFeatures | Bruno de Oliveira Abinader | 2016-10-11 | 3 | -22/+32 |
| | |||||
* | [core] Use query geometry from FeatureIndex into ↵ | Bruno de Oliveira Abinader | 2016-10-11 | 3 | -4/+16 |
| | | | | CollisionTile::queryRenderedSymbols | ||||
* | [core] No need for feature querying to support multipolygons | John Firebaugh | 2016-10-11 | 12 | -57/+46 |
| | |||||
* | [core] Ignore placement for symbol annotations | Bruno de Oliveira Abinader | 2016-10-11 | 1 | -0/+1 |
| | |||||
* | [core] Skip placement scale for features that ignore placement | Bruno de Oliveira Abinader | 2016-10-11 | 1 | -7/+13 |
| | |||||
* | Update mapbox-gl-shaders to 98a56d | John Firebaugh | 2016-10-10 | 8 | -40/+40 |
| | |||||
* | [core] Fix Map::setLatLng behavior | Bruno de Oliveira Abinader | 2016-10-07 | 1 | -1/+1 |
| | | | | | We were erroneously assigning a value to optional<ScreenCoordinate> (null island), causing it to be a valid anchor for Transform::easeTo. | ||||
* | [core] Rationalize shader names | John Firebaugh | 2016-10-06 | 36 | -156/+158 |
| | | | | {layer type}{subtype}Shader | ||||
* | [core] Adhere to vertices/vertexBuffer naming convention | John Firebaugh | 2016-10-05 | 8 | -23/+23 |
| | |||||
* | [core] TextureRectVertex ⇢ SymbolVertex | John Firebaugh | 2016-10-05 | 8 | -28/+27 |
| | |||||
* | [core] Make ElementGroup safer | John Firebaugh | 2016-10-05 | 15 | -181/+151 |
| | | | | | | 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. | ||||
* | [core] Improve attribute binding API | John Firebaugh | 2016-10-05 | 43 | -203/+257 |
| | |||||
* | [core] Put VertexArrayObject in gl namespace | John Firebaugh | 2016-10-05 | 7 | -37/+42 |
| |