summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* [core] Port ensure a non-zero source tile cache size (#7438)Jesse Bounds2016-12-141-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::relayoutIvo van Dongen2016-12-131-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 idsIvo van Dongen2016-12-131-0/+9
|
* [core] use raii to guard backend deactivationIvo van Dongen2016-12-131-13/+5
|
* [core, ios, macos] Add image accessor to MGLStyle (#7096)Roman Blum2016-12-051-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’sIvo van Dongen2016-12-021-0/+10
|
* [core, ios, macos] Added layers and sources properties to MGLStyleMinh Nguyễn2016-11-283-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 tilesKonstantin Käfer2016-11-221-1/+1
|
* [core] don't run symbol placement more often than necessaryKonstantin Käfer2016-11-143-5/+3
|
* [core] Return source and layer ownership (#7014)Jesse Bounds2016-11-135-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 changesIvo van Dongen2016-11-136-43/+51
|
* [core] Fix render tile ordering when querying sourcesBruno de Oliveira Abinader2016-11-132-21/+17
|
* [core] Separate pathway for notifying workers of new images/glyphsJohn Firebaugh2016-11-139-12/+77
|
* [core] Ensure correct GL context in Map::onLowMemory()John Firebaugh2016-11-091-0/+2
|
* [core] move gl::Context to Backend and refactor ViewKonstantin Käfer2016-10-2521-256/+449
|
* [core] separate Backend from View for headless renderingKonstantin Käfer2016-10-258-57/+106
|
* [core] geojson source - cancel any pending request when setting geojson ↵Ivo van Dongen2016-10-252-3/+12
| | | | explicitly
* [core] geojson source - clear cache when json content is setIvo van Dongen2016-10-252-1/+3
|
* [core] geojson source - reset req on setURLIvo van Dongen2016-10-251-2/+2
|
* [core] Reuse last placement data in CollisionTile::queryRenderedFeaturesBruno de Oliveira Abinader2016-10-251-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::polygonIntersectsPolygonBruno de Oliveira Abinader2016-10-252-20/+13
|
* [core] Simplify CollisionTile::findPlacementScaleBruno de Oliveira Abinader2016-10-252-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 CollisionTileBruno de Oliveira Abinader2016-10-252-23/+16
| | | | | Make 'edges' static to avoid every instance of CollisionTile having its own copy of it.
* [core] Cleanup function signatures in CollisionTileBruno de Oliveira Abinader2016-10-252-7/+7
| | | | | - Prefer pass-by-value for primitive types. - Use floating point precision for yStretch to match receiving type.
* [core] fixup formattingIvo van Dongen2016-10-211-2/+2
|
* [core] extract weak_ptr mailbox->receive into Mailbox::maybeReceiveMike Morris2016-10-202-0/+8
|
* [core] [node] pass thread pool impl to Map constructorMike Morris2016-10-203-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 changeIvo van Dongen2016-10-204-0/+18
|
* [core] Fix SymbolAnnotation coordinate system conversionsBruno de Oliveira Abinader2016-10-191-20/+5
|
* [core] TileCoordinate::fromLatLng no longer depens on TransformStateBruno de Oliveira Abinader2016-10-192-12/+13
|
* [core] Move TransformState::{un,}project() to ProjectionBruno de Oliveira Abinader2016-10-194-35/+16
|
* [core] Move TransformState::worldSize() to ProjectionBruno de Oliveira Abinader2016-10-193-19/+14
|
* [core] Skip redundant spherical mercator variable updates in {ease,fly}ToBruno de Oliveira Abinader2016-10-191-5/+0
|
* [core] Cleanup SymbolLayoutBruno de Oliveira Abinader2016-10-133-34/+36
| | | | | Reuse reverse rotation matrix from CollisionTile when populating the collision boxes.
* [core] Disable stencil test when rendering collision boxesBruno de Oliveira Abinader2016-10-121-3/+1
|
* [core] Skip duplicated IDs when querying point annotationsBruno de Oliveira Abinader2016-10-121-3/+5
|
* [core] Improve Source::Impl readabilityBruno de Oliveira Abinader2016-10-111-18/+11
|
* [core] Use TilePoint in Source::Impl::queryRenderedFeaturesBruno de Oliveira Abinader2016-10-113-22/+32
|
* [core] Use query geometry from FeatureIndex into ↵Bruno de Oliveira Abinader2016-10-113-4/+16
| | | | CollisionTile::queryRenderedSymbols
* [core] No need for feature querying to support multipolygonsJohn Firebaugh2016-10-1112-57/+46
|
* [core] Ignore placement for symbol annotationsBruno de Oliveira Abinader2016-10-111-0/+1
|
* [core] Skip placement scale for features that ignore placementBruno de Oliveira Abinader2016-10-111-7/+13
|
* Update mapbox-gl-shaders to 98a56dJohn Firebaugh2016-10-108-40/+40
|
* [core] Fix Map::setLatLng behaviorBruno de Oliveira Abinader2016-10-071-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 namesJohn Firebaugh2016-10-0636-156/+158
| | | | {layer type}{subtype}Shader
* [core] Adhere to vertices/vertexBuffer naming conventionJohn Firebaugh2016-10-058-23/+23
|
* [core] TextureRectVertex ⇢ SymbolVertexJohn Firebaugh2016-10-058-28/+27
|
* [core] Make ElementGroup saferJohn Firebaugh2016-10-0515-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 APIJohn Firebaugh2016-10-0543-203/+257
|
* [core] Put VertexArrayObject in gl namespaceJohn Firebaugh2016-10-057-37/+42
|