Commit Graph

4631 Commits

Author SHA1 Message Date
Nicki Dlugash
d63f706c5f Merge pull request #1840 from mapbox/repeat-distance
Updates to labels along lines
2015-07-10 10:59:37 -04:00
Thiago Marcos P. Santos
a666c08274 Add unit tests for the Sprite class 2015-07-10 15:35:26 +03:00
Ansis Brammanis
1f2d439059 update test-suite 2015-07-10 12:52:51 +02:00
Thiago Marcos P. Santos
7fc6d0444c Re-enable Sprite resource loading tests 2015-07-10 10:48:46 +03:00
Thiago Marcos P. Santos
b33d5d8a95 Do not report isLoaded() if loading failed 2015-07-10 10:48:46 +03:00
Thiago Marcos P. Santos
0ee9f21c56 Report Sprite parsing errors to Observers
Parsing errors will be reported to Observers. In practice this will
bubble all the way to the Map object.

This will make possible to identify possible corrupted data instead
of rendering without sprites like we do in case of semantic errors.
2015-07-10 10:48:46 +03:00
Thiago Marcos P. Santos
f64ba78910 Merge Sprite loading notifications
Because they are pretty much the same thing.
2015-07-10 10:48:46 +03:00
Justin R. Miller
4acf6c4268 updated changelog for 0.5.0 2015-07-09 22:55:17 -07:00
Justin R. Miller
efa7dad89c updated changelog for 0.5.0 2015-07-09 22:54:54 -07:00
Justin R. Miller
7d250934b1 [publish ios-v0.5.0] 2015-07-09 22:28:02 -07:00
Justin R. Miller
91b2912c2d bump podspec to 0.5.0 final (no symbols) 2015-07-09 22:27:41 -07:00
Nicki Dlugash
f27bd6b68f Updates to labels along lines
Added a filter to remove anchors with the same text that are too close to each other.

Updates to spacing and offset of anchor placement along lines:

Takes into account icon size for calculating label length.

Recalculates spacing for long labels.

Adjusts offsets to first anchors if line is continued from outside the tile boundary.
2015-07-09 18:52:12 -04:00
Justin R. Miller
c780f1617e [publish ios-v0.5.0-rc.2] 2015-07-09 13:59:11 -07:00
Justin R. Miller
5f31697556 bump podspec to 0.5.0rc2 2015-07-09 13:58:28 -07:00
Justin R. Miller
7aa83b3c96 test on Xcode 6.4 / iOS 8.4 2015-07-09 13:57:52 -07:00
Justin R. Miller
987d961e5b Merge pull request #1868 from mapbox/xcode-6.4
move to Xcode 6.4
2015-07-09 13:56:43 -07:00
Justin R. Miller
2df80af3d3 Revert "Defer initialization until app enters foreground"
This reverts commit 0fd9fe78db.
2015-07-09 13:41:42 -07:00
Justin R. Miller
3318a3ced0 refs #1859: use traditional struct declaration 2015-07-09 10:14:24 -07:00
Justin R. Miller
82cddb5af2 fixes #1858: proper shape placement in style layers 2015-07-09 10:14:13 -07:00
Justin R. Miller
f15fb9f8e7 Merge pull request #1866 from mapbox/1858-fix-shape-order
fixes #1858: proper shape placement in style layers
2015-07-09 10:11:52 -07:00
Justin R. Miller
7892c50bcc Merge pull request #1865 from mapbox/traditionalize-edge-insets
refs #1859: use traditional struct declaration
2015-07-09 10:09:14 -07:00
Justin R. Miller
309eee35f3 refs #1859: use traditional struct declaration 2015-07-09 09:48:09 -07:00
Justin R. Miller
cd7c3ddb9c fixes #1858: proper shape placement in style layers 2015-07-09 08:55:12 -07:00
Justin R. Miller
00f9a477b7 abbreviate syntax for unused parameters 2015-07-08 22:58:50 -07:00
Justin R. Miller
b70e6f518a test on Xcode 6.4 / iOS 8.4 2015-07-08 22:30:52 -07:00
Justin R. Miller
b8522ba03a [publish ios-v0.5.0-rc.1] 2015-07-08 15:41:52 -07:00
Justin R. Miller
9e5dd29afe bump podspec to 0.5.0-rc.1 w/ symbols 2015-07-08 15:41:27 -07:00
Minh Nguyễn
0fd9fe78db Defer initialization until app enters foreground
Defer the creation of EAGLEContext and GLKView and the loading of OpenGL ES extensions. It is GLKView that drives the background crash, and Apple documentation specifically warns not to initialize an EAGLContext in the background. All the while, it should be safe for client code to avail itself of any public methods on MGLMapView.

Fixes #1460.
2015-07-08 15:40:15 -07:00
Minh Nguyễn
1a3ae88786 Defer initialization until app enters foreground
Defer the creation of EAGLEContext and GLKView and the loading of OpenGL ES extensions. It is GLKView that drives the background crash, and Apple documentation specifically warns not to initialize an EAGLContext in the background. All the while, it should be safe for client code to avail itself of any public methods on MGLMapView.

Fixes #1460.
2015-07-08 14:53:11 -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
49fe6df0db Assert if -mapView:symbolNameForAnnotation: is implemented
Fixes #1851.
2015-07-08 14:39:27 -07:00
Justin R. Miller
c53610f6ee Merge pull request #1854 from mapbox/1ec5-symbol-exception-1851
fixes #1851: assert if -mapView:symbolNameForAnnotation: is implemented
2015-07-08 14:31:35 -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
Minh Nguyễn
b3ea068e5d Assert if -mapView:symbolNameForAnnotation: is implemented
Fixes #1851.
2015-07-08 13:49:02 -07:00
Thiago Marcos P. Santos
1fbbedd47b Make FixtureLogObserver thread-safe
We can log for different threads (main, map, workers, etc) so
we need to lock before adding the messages on the list.

This was causing few tests to randomly crash.
2015-07-08 23:48:05 +03:00
Thiago Marcos P. Santos
0014c0bd8d Make MockFileSource behave more like the real one
This will help make some bugs more reproducible on the tests as
things will happen more asynchronously.
2015-07-08 23:48:05 +03:00
Justin R. Miller
a67e80219f refs #1125, 1813: update user dot tracking in one place
Now that we have cleanup around the map viewport change notifications,
this only needs to happen in one place: the GL frame draw loop.
2015-07-08 12:55:39 -07:00
Justin R. Miller
aa51c15670 Merge pull request #1852 from mapbox/update-user-dot-once
refs #1125, 1813: update user dot tracking in one place
2015-07-08 12:53:50 -07:00
Justin R. Miller
ed04e6d9f7 refs #1125, 1813: update user dot tracking in one place
Now that we have cleanup around the map viewport change notifications,
this only needs to happen in one place: the GL frame draw loop.
2015-07-08 12:21:40 -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
fb230dda51 clean up remainder of sprite removal for now 2015-07-08 19:46:04 +02:00
Justin R. Miller
c7011345c9 remove logging 2015-07-08 19:46:04 +02:00
Justin R. Miller
a1c2529e33 runtime imagery based on annotation title 2015-07-08 19:46:04 +02: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
e0da13dbfd fixes for runtime Cocoa imagery 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
5f9e675ee0 stub annotation symbol cleanup 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
1f4b5e7736 add custom imagery visual test 2015-07-08 19:46:03 +02:00