summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Fit to coordinatesMinh Nguyễn2015-06-262-0/+8
| | | | Whoever determined the boundaries of the District of Columbia did not have fit-to-bounds implementations in mind. With this change, shapes that are not unrotated rectangles fit much, much better.
* Remove duration argument from View::notifyMapChangeJohn Firebaugh2015-06-262-4/+2
| | | | Fixes #1026
* Move Transform from MapData to MapJohn Firebaugh2015-06-261-0/+2
| | | | | Pass current state to MapContext where needed. Remove mutex from Transform.
* drive Android rendering from the main thread via invalidate() callsKonstantin Käfer2015-06-262-0/+4
|
* drive map rendering from main threadKonstantin Käfer2015-06-264-6/+14
|
* remove unused renderAsync() functionKonstantin Käfer2015-06-261-1/+0
|
* Implemented -setVisibleCoordinateBounds:Minh Nguyễn2015-06-251-3/+5
| | | Followup to #1783: Implemented the non-animated version of fit to bounds and makes it a KVO-compliant property.
* Test fit to bounds; added MGLCoordinateBounds functionsMinh Nguyễn2015-06-255-15/+90
| | | | Added a bunch of functions to work with MGLCoordinateBounds in a separate header analogous to MKGeometry.h. Added resolution-independent tests for common fit to bounds scenarios.
* Fit to bounds with paddingMinh Nguyễn2015-06-252-1/+11
| | | | Each side of the bounding box is specified independently, allowing more flexibility than the offset + padding construct supported in mapbox/mapbox-gl-js’ Camera.
* Reimplemented fit to boundsMinh Nguyễn2015-06-253-0/+16
| | | | The new implementation is now public and takes advantage of MGLCoordinateBounds. It is re-ported from `Camera.prototype.fitBounds()` in mapbox/mapbox-gl-js to ensure correct behavior. A new function, MGLCoordinateBoundsMake(), makes it easier to create an MGLCoordinateBounds for use with this method.
* Get rid of Environment et al.Thiago Marcos P. Santos2015-06-251-77/+0
| | | | | mbgl::Environment is not used anymore and can removed.
* Merge branch 'release-v0.4.0'Justin R. Miller2015-06-192-3/+0
|\
| * refs #1759: remove header docs for now-unavailable APIJustin R. Miller2015-06-192-3/+0
| |
| * Support shape annotations on GLFWViewThiago Marcos P. Santos2015-06-171-0/+8
| | | | | | | | | | | | Add different random triangles count by using the keys 7, 8, 9 or 0. Q will clear all the annotations. W will remove one annotation.
| * Audited shape annotation classes for nullabilityMinh Nguyễn2015-06-177-3/+27
| | | | | | Audited various classes to match MapKit. Also, `-[MGLAnnotation title]` is nullable because titles are optional for shape annotations.
| * Corrected bundledStyleURLs doc commentMinh Nguyễn2015-06-171-1/+1
| | | | | | | | Per https://github.com/mapbox/mapbox-gl-native/commit/f46328655e027bf490692fcde4aab770912aac8d#commitcomment-11695358.
* | Support shape annotations on GLFWViewThiago Marcos P. Santos2015-06-181-0/+8
| | | | | | | | | | | | Add different random triangles count by using the keys 7, 8, 9 or 0. Q will clear all the annotations. W will remove one annotation.
* | Lightweight genericsMinh Nguyễn2015-06-172-6/+26
| | | | | | | | | | | | Added lightweight generics annotations to collection-typed method and protocol signatures to streamline usage of these members in Swift. Lightweight generic type specifiers are wrapped in conditionally-compiled macros for compatibility with Xcode 6.x. Manually preprocess the NS_*_OF() macros in a temporary copy of each header before appledoc sees the headers. Also removed the --ignore flag because we no longer have a private headers folder under include/mbgl/ios/.
* | Audited shape annotation classes for nullabilityMinh Nguyễn2015-06-167-3/+27
| | | | | | Audited various classes to match MapKit. Also, `-[MGLAnnotation title]` is nullable because titles are optional for shape annotations.
* | Corrected bundledStyleURLs doc commentMinh Nguyễn2015-06-161-1/+1
|/ | | | Per https://github.com/mapbox/mapbox-gl-native/commit/f46328655e027bf490692fcde4aab770912aac8d#commitcomment-11695358.
* squash of #1655: shape annotations support for core & iOSJustin R. Miller2015-06-1514-9/+509
|
* Revert "use array of structs rather than parallel arrays for annotations"Minh Nguyễn2015-06-152-25/+3
| | | | This reverts commit 2435c1ad2603432186ee61eb4c423244a088bc51 (#1710), which needs to be revisited in light of #1655, which is a much higher priority at the moment.
* Restored nullability compatibility shimMinh Nguyễn2015-06-131-0/+8
| | | | This reverts commit a425df0f95f5f0088444b8ebc67708756ff962aa for compatibility with Xcode 6.1.
* Namespaced reachability notification constantMinh Nguyễn2015-06-121-1/+1
| | | Fixes #1717.
* use array of structs rather than parallel arrays for annotationsKonstantin Käfer2015-06-112-3/+25
|
* Audited headers for nullabilityMinh Nguyễn2015-06-116-26/+52
| | | | | | | | Added some nullability qualifiers in method implementation selectors for consistency with declarations. The user dot view now has a non-zero size. Previously only its layer was sized properly. Also resolved some pedantic warnings about missing designated initializer overrides. Xcode 6.3 or above is now required for building this project.
* press 1 through 6 to add 10^(n-1) points in the current viewportKonstantin Käfer2015-06-091-0/+6
| | | | (only works correctly when rotated to north, but this is a just a debug functionality anyway)
* allow constructing LatLng/LatLngBounds objects from TileIDsKonstantin Käfer2015-06-081-0/+8
|
* Merge remote-tracking branch 'origin/master' into HEADAnsis Brammanis2015-06-031-2/+2
|\ | | | | | | | | Conflicts: src/mbgl/renderer/painter_fill.cpp
| * Remove references to ResourceLoaderThiago Marcos P. Santos2015-06-021-2/+2
| | | | | | | | ResourceLoader got merged with Style.
* | Merge remote-tracking branch 'origin/master' into new-labellingAnsis Brammanis2015-05-2814-86/+93
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/mbgl/map/source.cpp src/mbgl/map/source.hpp src/mbgl/map/tile_data.cpp src/mbgl/map/tile_parser.cpp src/mbgl/map/vector_tile_data.cpp src/mbgl/renderer/painter.cpp src/mbgl/renderer/symbol_bucket.cpp src/mbgl/text/glyph.hpp src/mbgl/text/glyph_store.cpp src/mbgl/text/placement.cpp test/suite
| * Defailablize init methodsMinh Nguyễn2015-05-271-2/+2
| | | | | | | | If an OpenGL context couldn’t be created, there’s just no point to soldiering on. Things are going to fall apart pretty quickly anyways. Assert and be done with it.
| * Replace mbgl::util::make_unique<> with std::make_unique<>Konstantin Käfer2015-05-264-26/+1
| |
| * DefaultFileSource has responsibility for handling mapbox:// URLsJohn Firebaugh2015-05-263-8/+10
| |
| * prefix Reachability with "MGL" to avoid linking conflicts and app store ↵Konstantin Käfer2015-05-261-4/+4
| | | | | | | | rejections
| * update Reachability with latest versionKonstantin Käfer2015-05-261-25/+8
| |
| * Notify failures when loading glyphsThiago Marcos P. Santos2015-05-221-0/+5
| |
| * Notify failures when loading tilesThiago Marcos P. Santos2015-05-221-0/+5
| |
| * Notify failures when loading the sprite JSON and imageThiago Marcos P. Santos2015-05-221-0/+5
| |
| * Notify failures when loading the source JSONThiago Marcos P. Santos2015-05-221-0/+5
| |
| * Add callback for error notifications on renderStill()Thiago Marcos P. Santos2015-05-222-1/+3
| | | | | | | | | | | | | | | | | | The callback will be called when any of the resources requested from the network failed to load. There is not recovery implemented yet, so the closest thing to reseting the Map object and reloading all the resources would be setting a new style.
| * Merge pull request #1561 from 1ec5-style-id-1500Minh Nguyễn2015-05-212-4/+5
| |\ | | | | | | | | | mapID → styleID
| | * mapID → styleIDMinh Nguyễn2015-05-142-4/+5
| | | | | | | | | | | | | | | | | | Deprecated `-mapID` and `-setMapID:` to accurately reflect the APIs the ID is used for. Marked the property unavailable but reimplemented its getter and setter to assert with helpful messages. Fixes #1500.
| * | Made accessToken uninspectableMinh Nguyễn2015-05-211-1/+0
| | |
| * | Merge branch '1ec5-plist-1535'Minh Nguyễn2015-05-202-17/+12
| |\ \
| | * | Removed accessToken from MGLMapView public APIMinh Nguyễn2015-05-201-16/+11
| | | | | | | | | | | | | | | | With helpful instructions for migrating to Info.plist or the `MGLAccountManager` API.
| | * | Obsoleted +setMapboxMetricsEnabledSettingShownInApp:Minh Nguyễn2015-05-131-1/+1
| | | | | | | | | | | | | | | | Made `+[MGLAccountManager setMapboxMetricsEnabledSettingShownInApp:]` unavailable, with a message explaining what to do instead. Removed a commented-out call to that method. Only the environment for an access token if one hasn’t already been set in Info.plist.
| | * | Grab access token and other app-wide data from Info.plistMinh Nguyễn2015-05-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | That way there’s no ambiguity about when you should call things like `+[MGLAccountManager setMapboxMetricsEnabledSettingShownInApp:]`. In fact, that method is now deprecated because it’s so easy to call in the wrong place. Fixes #1535.
| * | | only return locked FontStack objectsKonstantin Käfer2015-05-191-0/+30
| | | |
* | | | make collision debug boxes toggleableAnsis Brammanis2015-05-281-0/+3
|/ / /