Bruno de Oliveira Abinader
784eb35512
Revert "Revert "split renderSync and transition nudging to allow client view syncing""
...
This reverts commit 263f9fad30 .
2015-07-20 21:59:13 +03:00
Bruno de Oliveira Abinader
263f9fad30
Revert "split renderSync and transition nudging to allow client view syncing"
...
This reverts commit b8388168dd .
It seems 'nudgeTransitions()' is no longer necessary as #1548 has fixed the update issues.
2015-07-20 17:07:55 +03:00
Minh Nguyễn
1f78d28516
Merge branch 'release-v0.5.0'
2015-07-14 10:49:52 -07:00
Bruno de Oliveira Abinader
2aad2f4e14
Pass {Duration,TimePoint} by const ref if possible
2015-07-14 16:48:34 +03:00
Thiago Marcos P. Santos
d207166abe
Remove unused function: cwd()
2015-07-11 12:42:45 +03:00
Justin R. Miller
3318a3ced0
refs #1859 : use traditional struct declaration
2015-07-09 10:14:24 -07:00
Justin R. Miller
309eee35f3
refs #1859 : use traditional struct declaration
2015-07-09 09:48:09 -07:00
Minh Nguyễn
184afb01ad
Removed documentation for unavailable method
...
So it doesn’t show up in the generated docset.
2015-07-08 14:39:29 -07:00
Minh Nguyễn
8a971458a4
Removed documentation for unavailable method
...
So it doesn’t show up in the generated docset.
2015-07-08 13:49:07 -07:00
Justin R. Miller
b8388168dd
split renderSync and transition nudging to allow client view syncing
2015-07-08 12:10:12 -07:00
Justin R. Miller
e0384a98f7
explicitly bring in header
2015-07-08 19:46:04 +02:00
Justin R. Miller
445d3afa4f
fix nullability
2015-07-08 19:46:04 +02:00
Justin R. Miller
e3b823b11b
nullability for MGLAnnotationImage
2015-07-08 19:46:03 +02:00
Justin R. Miller
5ab58deb44
Cocoa custom marker imagery API
2015-07-08 19:46:03 +02:00
Konstantin Käfer
62ac43a85b
add ability to add random custom markers to test app
2015-07-08 19:46:02 +02:00
Konstantin Käfer
f9601ae685
add ability to set custom sprites on the Map object
2015-07-08 19:46:01 +02:00
Konstantin Käfer
6271f8e546
mark Image constructor as explicit to avoid accidental implicit argument conversion
...
when passing a std::string instead of an Image, the parameter gets implicitly and automatically converted (== parsed) to a temporary Image object. Since parsing an Image shouldn't be a frequent operation
2015-07-08 19:46:01 +02:00
Konstantin Käfer
55ef14f3a8
compress_png: void* => const void*
2015-07-08 19:45:59 +02:00
Konstantin Käfer
7f705da564
Sprite store API
2015-07-08 19:45:59 +02:00
Ansis Brammanis
888ae5ebdc
improve round line joins for semi-transparent lines
...
https://github.com/mapbox/mapbox-gl-js/pull/1359
Round line joins used to be drawn by adding a semicircle cap to the end
of each segment. This looked fine for opaque lines not for
semi-transparent lines.
This changes the triangulation so that round line joins don't overlap
with segments. The gap between segments is filled with small triangles
that look like pie slices. The edge of the round linejoin is made up of
many short straight lines that look round at the sizes we draw lines.
Since sharp angles are infrequent, this does not significantly affect
the total number of triangles created.
Joins for angles that are really sharp are still drawn with overlap.
2015-07-08 16:16:51 +02:00
Konstantin Käfer
675ddddee7
Make pixelRatio constant across a Map object lifetime
...
also moves framebuffer size out of TransformState into its own object
2015-07-08 10:40:05 +02:00
Minh Nguyễn
46a6173bd7
[wrap)
...
If (wrap] is desired, it is the responsibility of the caller to handle the case in which min is returned.
2015-07-06 13:07:34 -07:00
John Firebaugh
5fadda53e5
Move WorkerTask functionality into RunLoop core
...
As a byproduct, this makes FileCache get requests properly
cancelable.
2015-07-01 15:21:10 -07:00
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