Justin R. Miller
76333dfc0c
fixes #1770 : rename & expose compass, logo, and attribution
2015-07-01 12:09:33 -04:00
John Firebaugh
6532438fe4
Rationalize *RenderingMap notifications
2015-06-30 10:13:24 -07:00
John Firebaugh
42c06e7039
Use array of structs rather than parallel arrays for annotations
2015-06-29 10:54:17 -07:00
Minh Nguyễn
ac2ad993a5
Fit to coordinates
...
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.
2015-06-26 21:46:15 -07:00
John Firebaugh
d193083513
Remove duration argument from View::notifyMapChange
...
Fixes #1026
2015-06-26 10:32:07 -07:00
John Firebaugh
07a6d2ef64
Move Transform from MapData to Map
...
Pass current state to MapContext where needed. Remove mutex from
Transform.
2015-06-26 10:32:07 -07:00
Konstantin Käfer
dca42018d2
drive Android rendering from the main thread via invalidate() calls
2015-06-26 10:32:06 -07:00
Konstantin Käfer
84e2ea886d
drive map rendering from main thread
2015-06-26 10:32:06 -07:00
Konstantin Käfer
740281cc89
remove unused renderAsync() function
2015-06-26 10:32:06 -07:00
Minh Nguyễn
29fd554c32
Implemented -setVisibleCoordinateBounds:
...
Followup to #1783 : Implemented the non-animated version of fit to bounds and makes it a KVO-compliant property.
2015-06-25 22:26:35 -07:00
Minh Nguyễn
1d11624efd
Test fit to bounds; added MGLCoordinateBounds functions
...
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.
2015-06-25 21:54:57 -07:00
Minh Nguyễn
68e404c522
Fit to bounds with padding
...
Each side of the bounding box is specified independently, allowing more flexibility than the offset + padding construct supported in mapbox/mapbox-gl-js’ Camera.
2015-06-25 21:54:57 -07:00
Minh Nguyễn
c57799f26c
Reimplemented fit to bounds
...
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.
2015-06-25 21:54:53 -07:00
Thiago Marcos P. Santos
07086981fe
Get rid of Environment et al.
...
mbgl::Environment is not used anymore and can
removed.
2015-06-25 16:26:22 +03:00
Justin R. Miller
0955dfc19f
Merge branch 'release-v0.4.0'
2015-06-19 15:56:53 -07:00
Justin R. Miller
afb7095ecc
refs #1759 : remove header docs for now-unavailable API
2015-06-19 11:07:24 -07:00
Thiago Marcos P. Santos
1f12bcee90
Support shape annotations on GLFWView
...
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.
2015-06-18 13:39:18 +03:00
Thiago Marcos P. Santos
4f3fc3c2c9
Support shape annotations on GLFWView
...
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.
2015-06-17 17:07:16 -07:00
Minh Nguyễn
91641ffb01
Lightweight generics
...
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/.
2015-06-17 15:33:00 -07:00
Minh Nguyễn
e3e73220c1
Audited shape annotation classes for nullability
...
Audited various classes to match MapKit. Also, `-[MGLAnnotation title]` is nullable because titles are optional for shape annotations.
2015-06-17 12:55:05 -07:00
Minh Nguyễn
f50a27bc8a
Corrected bundledStyleURLs doc comment
...
Per f46328655e (commitcomment-11695358) .
2015-06-17 12:54:48 -07:00
Minh Nguyễn
0686807a21
Audited shape annotation classes for nullability
...
Audited various classes to match MapKit. Also, `-[MGLAnnotation title]` is nullable because titles are optional for shape annotations.
2015-06-16 16:32:57 -07:00
Minh Nguyễn
df6ab1dc00
Corrected bundledStyleURLs doc comment
...
Per f46328655e (commitcomment-11695358) .
2015-06-16 09:45:10 -07:00
Justin R. Miller
bd0bf294bf
squash of #1655 : shape annotations support for core & iOS
2015-06-15 18:30:39 -07:00
Minh Nguyễn
714b68f7b3
Revert "use array of structs rather than parallel arrays for annotations"
...
This reverts commit 2435c1ad26 (#1710 ), which needs to be revisited in light of #1655 , which is a much higher priority at the moment.
2015-06-15 15:58:22 -07:00
Minh Nguyễn
450a6beae0
Restored nullability compatibility shim
...
This reverts commit a425df0f95f5f0088444b8ebc67708756ff962aa for compatibility with Xcode 6.1.
2015-06-13 19:58:59 -07:00
Minh Nguyễn
4176d21d1c
Namespaced reachability notification constant
...
Fixes #1717 .
2015-06-12 11:54:46 -07:00
Konstantin Käfer
2435c1ad26
use array of structs rather than parallel arrays for annotations
2015-06-11 17:26:37 -04:00
Minh Nguyễn
f46328655e
Audited headers for nullability
...
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.
2015-06-11 11:37:23 -07:00
Konstantin Käfer
0c5f8a2c59
press 1 through 6 to add 10^(n-1) points in the current viewport
...
(only works correctly when rotated to north, but this is a just a debug functionality anyway)
2015-06-09 10:29:07 -04:00
Konstantin Käfer
f85889dc75
allow constructing LatLng/LatLngBounds objects from TileIDs
2015-06-08 16:13:37 -04:00
Ansis Brammanis
9c03b396c0
Merge remote-tracking branch 'origin/master' into HEAD
...
Conflicts:
src/mbgl/renderer/painter_fill.cpp
2015-06-03 19:20:41 -04:00
Thiago Marcos P. Santos
68989e671c
Remove references to ResourceLoader
...
ResourceLoader got merged with Style.
2015-06-02 20:23:03 +03:00
Ansis Brammanis
ff6a5ce5bc
Merge remote-tracking branch 'origin/master' into new-labelling
...
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
2015-05-28 20:01:15 -04:00
Ansis Brammanis
8962442b1b
make collision debug boxes toggleable
2015-05-28 19:17:07 -04:00
Minh Nguyễn
86dd0e99bc
Defailablize init methods
...
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.
2015-05-27 12:51:30 -07:00
Konstantin Käfer
f4707f72e0
Replace mbgl::util::make_unique<> with std::make_unique<>
2015-05-26 17:57:38 +02:00
John Firebaugh
87b1da7611
DefaultFileSource has responsibility for handling mapbox:// URLs
2015-05-26 12:14:10 +02:00
Konstantin Käfer
f11a9f8fd9
prefix Reachability with "MGL" to avoid linking conflicts and app store rejections
2015-05-26 11:13:08 +02:00
Konstantin Käfer
ba3a6ea2b0
update Reachability with latest version
2015-05-26 11:08:31 +02:00
Thiago Marcos P. Santos
ee9b172152
Notify failures when loading glyphs
2015-05-22 10:44:18 +03:00
Thiago Marcos P. Santos
ac64bef87f
Notify failures when loading tiles
2015-05-22 10:44:18 +03:00
Thiago Marcos P. Santos
7274d2e195
Notify failures when loading the sprite JSON and image
2015-05-22 10:44:18 +03:00
Thiago Marcos P. Santos
90fd06762c
Notify failures when loading the source JSON
2015-05-22 10:44:18 +03:00
Thiago Marcos P. Santos
da81211fea
Add callback for error notifications on renderStill()
...
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.
2015-05-22 10:44:18 +03:00
Minh Nguyễn
0689ad693e
Merge pull request #1561 from 1ec5-style-id-1500
...
mapID → styleID
2015-05-21 15:28:27 -07:00
Minh Nguyễn
c718d2ea66
Made accessToken uninspectable
2015-05-21 01:51:18 -07:00
Minh Nguyễn
256b748458
Merge branch '1ec5-plist-1535'
2015-05-20 14:38:36 -07:00
Minh Nguyễn
9a57464f82
Removed accessToken from MGLMapView public API
...
With helpful instructions for migrating to Info.plist or the `MGLAccountManager` API.
2015-05-20 10:45:26 -07:00
Konstantin Käfer
bcf66b7449
only return locked FontStack objects
2015-05-19 16:13:36 +02:00