summaryrefslogtreecommitdiff
path: root/include/mbgl/map
Commit message (Collapse)AuthorAgeFilesLines
* [core, android, ios, macos] Replaced getPointAnnotationsInBounds() w/ ↵Minh Nguyễn2016-08-121-2/+1
| | | | | | | queryPointAnnotations() (#5165) queryPointAnnotations() accepts a screen rectangle instead of a geographic bounding box, so marker hit testing works at the edges of a rotated, tilted map view. Fixes #5151.
* [core] code style cleanupsKonstantin Käfer2016-07-011-13/+13
| | | | | | | - puts function definitions in a namespace ... {} rather than using namespace ...; - remove trailing whitespace - add trailing newline - protect SQL statements from being formatted by clang-format
* [core] s/Wireframe/Overdraw/gBruno de Oliveira Abinader2016-06-201-1/+1
|
* [core] Avoid redundant 'inline' usageBruno de Oliveira Abinader2016-06-181-2/+2
|
* [core] Cleaned up enum classesBruno de Oliveira Abinader2016-06-182-12/+12
| | | | | - Replaced static_cast with C++ casts. - Replaced inline with constexpr.
* [core] Avoid unnecessary work when a symbol annotation is updatedJohn Firebaugh2016-06-171-1/+2
| | | | In particular, if only the geometry changes, don't cascade and recalculate the style.
* [core] Runtime source API: Map methodsJohn Firebaugh2016-06-161-0/+7
|
* [core, node] Implement setPaintProperty for color properties (#5380)John Firebaugh2016-06-161-0/+1
|
* [core] Introduce Map::getLayerJohn Firebaugh2016-06-131-0/+1
|
* [tidy] Check llvm-namespace-commentBruno de Oliveira Abinader2016-06-131-1/+1
| | | | Ref: http://clang.llvm.org/extra/clang-tidy/checks/llvm-namespace-comment.html
* [core, node, android] Remove used "base" parameter from setStyleJSONJohn Firebaugh2016-06-021-2/+2
|
* [core] Rationalize naming for style-related codeJohn Firebaugh2016-06-021-6/+9
|
* [core] Generalize Map::{add,remove}CustomLayerJohn Firebaugh2016-06-022-10/+5
|
* [all] Rationalize annotation APIJohn Firebaugh2016-06-011-11/+2
|
* [core] use #pragma once instead of ifdef include guardsKonstantin Käfer2016-05-255-20/+5
|
* [core] Move GLFW stencil clip debug to coreBruno de Oliveira Abinader2016-05-241-0/+4
| | | | | | This makes the stencil clip debug available to all platforms. Fixes #4669.
* [core] Implement MapDebugOptions::WireframeBruno de Oliveira Abinader2016-05-231-0/+1
| | | | | | | | Together with MapDebugOptions::Collision, provides "wireframe" rendering output so all drawn objects are visible. This mode ignores the line width, background and fill colors for better visualization. Fixes #4359.
* [core] remove MockView and View dependency in TransformKonstantin Käfer2016-05-181-17/+1
|
* [core] Use mapbox::geometry::box in queryRenderedFeaturesJohn Firebaugh2016-05-131-2/+2
|
* [core] Fix code style issuesJohn Firebaugh2016-05-121-1/+1
|
* [core] Added Viewport modeBruno de Oliveira Abinader2016-05-112-2/+14
| | | | | | Satisfies embedding platforms that requires the viewport coordinate systems to be set according to its standards e.g. viewport mirrored vertically.
* [core] Use geometry.hpp feature typeJohn Firebaugh2016-05-031-2/+3
|
* [core] implement queryRenderedFeaturesAnsis Brammanis2016-04-291-0/+4
|
* [core] Added mbgl::underlying_typeBruno de Oliveira Abinader2016-04-281-2/+4
|
* [core] Fix view class docsThiago Marcos P. Santos2016-04-281-2/+0
|
* [core, ios, osx] cameraThatFitsCoordinateBoundsMinh Nguyễn2016-04-221-2/+3
| | | | | | Added an API to get a camera that you can pass into -[MGLMapView setCamera:] that fits the given coordinate bounds, by analogy with -[MKMapView regionThatFits:] or -[MKMapView mapRectThatFits:edgePadding:]. Added mbgl::Map::getCameraOptions() for getting the current camera options more conveniently.
* [core] Convert MapContext to Map::Impl; eliminate indirectionJohn Firebaugh2016-04-151-19/+2
|
* [core] Render from the main threadJohn Firebaugh2016-04-142-42/+29
| | | | Do not create a thread for the MapContext anymore.
* Merge branch 'release-ios-3.2.0-android-4.0.0'John Firebaugh2016-03-301-0/+1
|\
| * [core] Localize and simplify state for MapChangeDidFinishLoadingMap eventJohn Firebaugh2016-03-301-0/+1
| | | | | | | | Only Map needs to track this state, and it can simply be set when beginning to load a style and reset when finished.
* | [core] Default fade duration is now a constantBruno de Oliveira Abinader2016-03-181-3/+0
| |
* | [core] Remove default transition durationBruno de Oliveira Abinader2016-03-182-12/+8
| |
* | [core] s/Update::Zoom/Update/RecalculateStyle/Bruno de Oliveira Abinader2016-03-181-1/+1
| |
* | [core] Added user-defined transition properties when modifying classesBruno de Oliveira Abinader2016-03-181-3/+5
| |
* | [core] Remove MapData::defaultTransitionDelayBruno de Oliveira Abinader2016-03-181-3/+0
| |
* | [core] Harden Transform anchor & padding usageBruno de Oliveira Abinader2016-03-131-14/+15
|/ | | | | Use optional values for anchor & padding in Map and Transform functions instead of NaNs. Added unit tests to stress some edge cases.
* [core] PrecisionPoint is now ScreenCoordinateBruno de Oliveira Abinader2016-03-012-10/+10
|
* Merge branch 'release-ios-v3.1.0'Minh Nguyễn2016-02-242-0/+5
|\
| * [core, ios, osx] Only constrain after adding to a windowMinh Nguyễn2016-02-102-0/+5
| | | | | | | | | | | | Introduced a setter/getter for constrain mode. On iOS and OS X, the zoom level inspectable causes the zoom level to be set independently from the longitude and latitude. Thus, the latitude inspectable had no effect because the latitude was constrained to 0 at z0. Temporarily removing the heightwise constraint allows the map to center on the intended location before zooming, which is the usual case for storyboards and XIBs. On iOS, the only guarantee we have timing-wise is that all the inspectables are applied after initialization but before the view is added to a window. So we reimpose the heightwise constraint as soon as the view is added to a window, that is, before the user has a chance to pan the map out of bounds. Fixes #3868.
* | [core] Add support for updating point annotationsGabriel Miklós2016-02-121-0/+2
|/
* [core] Remove unusedJohn Firebaugh2016-02-021-1/+0
|
* [core] Remove unusedJohn Firebaugh2016-02-021-3/+0
|
* [core] add setMaxZoom, setMinZoomAnsis Brammanis2016-01-281-0/+2
| | | | also change the default maxZoom to 20 to match -js.
* [core, ios, osx] Tilt around visual center pointMinh Nguyễn2016-01-261-0/+1
| | | | The tilt gesture on both iOS and OS X now respects the content insets. On iOS, in user tracking mode, it additionally respects the user dot’s position if it’s aligned to the top or bottom of the view.
* Cleanup std::chrono usageBruno de Oliveira Abinader2016-01-251-2/+2
| | | | Use mbgl::Duration and mbgl::{,Milli}Seconds whenever possible.
* [core] Use experimental optional instead of mapbox::util::optionalJohn Firebaugh2016-01-191-12/+11
|
* [core, osx] Added optional padding to convenience methodsMinh Nguyễn2016-01-181-2/+6
| | | | Methods that offer a convenient way to jump or ease now accept an optional padding parameter. MGLMapView specifies the padding to ensure that keyboard-based zooming and rotation respects the toolbar.
* [core] Added padding option to CameraOptionsMinh Nguyễn2016-01-182-8/+6
| | | | | | Moved EdgeInsets to geo.hpp so CameraOptions and Transform can refer to it. Added a padding option to CameraOptions that alters the frame of reference for the center option. Added optional padding parameters to LatLng getters and setters. Working towards #2600.
* [core] Consolidated zoom and angle anchor logicMinh Nguyễn2016-01-141-0/+4
| | | | Made anchor a CameraOption for easeTo().
* [core] Cleaned up TransformMinh Nguyễn2016-01-142-2/+9
| | | | | | Eliminated many redundant methods on Transform. Minimized usage of TransformState::x and TransformState::y. Added convenient constructors for AnimationOptions. When scaling, passing in view’s origin as the anchor no longer anchors the scaling operation at the view’s center. To specify no anchor, use NaN. Increased precision of worldSize(), now that it’s used much more heavily in transform methods.