| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
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.
|
|
|
|
| |
Fixes #1026
|
|
|
|
|
| |
Pass current state to MapContext where needed. Remove mutex from
Transform.
|
| |
|
| |
|
| |
|
|
|
| |
Followup to #1783: Implemented the non-animated version of fit to bounds and makes it a KVO-compliant property.
|
|
|
|
| |
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.
|
|
|
|
| |
Each side of the bounding box is specified independently, allowing more flexibility than the offset + padding construct supported in mapbox/mapbox-gl-js’ Camera.
|
|
|
|
| |
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.
|
|
|
|
|
| |
mbgl::Environment is not used anymore and can
removed.
|
|\ |
|
| | |
|
| |
| |
| |
| |
| |
| | |
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 various classes to match MapKit. Also, `-[MGLAnnotation title]` is nullable because titles are optional for shape annotations.
|
| |
| |
| |
| | |
Per https://github.com/mapbox/mapbox-gl-native/commit/f46328655e027bf490692fcde4aab770912aac8d#commitcomment-11695358.
|
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| | |
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 various classes to match MapKit. Also, `-[MGLAnnotation title]` is nullable because titles are optional for shape annotations.
|
|/
|
|
| |
Per https://github.com/mapbox/mapbox-gl-native/commit/f46328655e027bf490692fcde4aab770912aac8d#commitcomment-11695358.
|
| |
|
|
|
|
| |
This reverts commit 2435c1ad2603432186ee61eb4c423244a088bc51 (#1710), which needs to be revisited in light of #1655, which is a much higher priority at the moment.
|
|
|
|
| |
This reverts commit a425df0f95f5f0088444b8ebc67708756ff962aa for compatibility with Xcode 6.1.
|
|
|
| |
Fixes #1717.
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
(only works correctly when rotated to north, but this is a just a debug functionality anyway)
|
| |
|
|\
| |
| |
| |
| | |
Conflicts:
src/mbgl/renderer/painter_fill.cpp
|
| |
| |
| |
| | |
ResourceLoader got merged with Style.
|
|\ \
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| | |
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.
|
| | |
|
| | |
|
| |
| |
| |
| | |
rejections
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |\
| | |
| | |
| | | |
mapID → styleID
|
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | | |
|
| |\ \ |
|
| | | |
| | | |
| | | |
| | | | |
With helpful instructions for migrating to Info.plist or the `MGLAccountManager` API.
|
| | | |
| | | |
| | | |
| | | | |
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.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
| | | | |
|
|/ / / |
|