Commit Graph

3876 Commits

Author SHA1 Message Date
Justin R. Miller
583dfa7a2f iOS README clarifications 2015-05-05 17:02:25 -07:00
Justin R. Miller
388d5da305 add mention of CocoaPods to get ahead of release 2015-05-05 17:00:25 -07:00
Justin R. Miller
1e8a480e1b clear location services prompt if needed 2015-05-05 16:33:12 -07:00
John Firebaugh
92b3c03f5d Merge branch 'refs/heads/reenable-headless' 2015-05-05 16:24:45 -07:00
Justin R. Miller
c9b8d46abb Merge pull request #1432 from mapbox/fix-docs-packaging-private-headers
don't doc or package private headers
2015-05-05 15:58:01 -07:00
Peter Liu
48122200ca Merge branch 'master' of https://github.com/mapbox/mapbox-gl-native 2015-05-05 15:50:24 -07:00
Peter Liu
0f8b440477 updated Emerald and Streets styles 2015-05-05 15:50:13 -07:00
Justin R. Miller
84b60a6801 update header path 2015-05-05 15:15:15 -07:00
Justin R. Miller
8cb146fa02 don't doc or package private headers 2015-05-05 15:13:39 -07:00
John Firebaugh
af0e52a5fa Revert test/suite submodule to intended hash 2015-05-05 14:49:43 -07:00
Justin R. Miller
fd099593dc [publish ios-v0.2.21] 2015-05-05 14:31:25 -07:00
Justin R. Miller
ed8d2c892b bump podspec to 0.2.21 2015-05-05 14:30:54 -07:00
John Firebaugh
84fffb42f5 Revert "Disable headless tests temporarily"
This reverts commit 2b6e680e4a.
2015-05-05 14:13:46 -07:00
John Firebaugh
a7df0781f8 Don't crash if ResourceLoader::_sprite is null 2015-05-05 13:34:46 -07:00
Justin R. Miller
eeb27dba1b fixes #1391: install awscli for iOS deploys 2015-05-05 12:18:18 -07:00
Justin R. Miller
a104b3de3b no longer link iOS HTML docs since missing CSS 2015-05-05 12:18:18 -07:00
Brad Leege
acd27fc386 Merge pull request #1329 from mapbox/1225-start-token
MapboxGL Startup Infrastructure
2015-05-05 13:00:25 -05:00
Justin R. Miller
97fe50f35d [publish ios-v0.2.20] 2015-05-05 10:21:36 -07:00
John Firebaugh
6260dbe043 Merge pull request #1326 from mapbox/925-remove_promises
Remove promises from the parsing pipeline
2015-05-05 10:18:36 -07:00
Brad Leege
804c092c81 #1225 - Simplifying MGLAccountManager for initial setup and access to AccessToken 2015-05-05 11:50:01 -05:00
Justin R. Miller
81e6c2c6c3 [publish ios-v0.2.20] 2015-05-05 09:09:33 -07:00
Justin R. Miller
e36ca90a75 bump podspec to 0.2.20 2015-05-05 09:09:02 -07:00
Thiago Marcos P. Santos
19881f8b24 Cancel all pending requests before leaving
This still has the unwanted side effect off blocking the Map thread
waiting for the workers to return (because they hold a reference
to the Map thread main loop).

Maybe the only way to solve this would be having a I/O thread for
dispatching messages.

The Request is not bound anymore to the invoker thread because the workers
will request for glyphs, but the reply will arrive at the Map thread.
2015-05-05 18:35:40 +03:00
Thiago Marcos P. Santos
071e2e1731 Do not process buckets depending on Glyphs that were not loaded
For now, the buckets depending on Glyphs that are not yet available
are simply not created (or created and discarded). In the future
we could refactor the code to not create the bucket at all or put
the bucket in a suspended state until the glyph range is available.
2015-05-05 18:35:40 +03:00
Thiago Marcos P. Santos
f10839bac2 Make GlyphStore observable
GlyphStore will notify observers when a glyph range is loaded. By now
the notification is generic, but could be fine grained, causing the
processing of buckets depending on this particular range.
2015-05-05 18:35:40 +03:00
Thiago Marcos P. Santos
1455e5e53c Add partial tile parsing
This change will add a new state to the tile called "partial" which
is a state where the tile can be rendered but some information might
be missing.

For now we skip the SymbolBucket if the Sprites are not loaded (will
also do the same for the glyphs in the future). When the Sprites are
finally loaded, we trigger another update, this time the Tile will
get completely re-rendered and change the state to "parsed".
2015-05-05 18:35:40 +03:00
Thiago Marcos P. Santos
c487c521b4 Move the Sprite handling to ResourceLoader
This is the first concrete step to remove promises from the parsing
pipeline. Buckets depending on the Sprite (i.e. SymbolBucket) won't
be created if the Sprite is not loaded yet. When the Sprite finally gets
loaded, it will fire a signal that will ultimately trigger a reparse.

We still have to expose the Sprite to the Map object as it is needed
for getting offset pixels for annotation symbols, but we can probably
improve that.
2015-05-05 18:10:21 +03:00
Thiago Marcos P. Santos
d726613f6f Update the tiles via ResourceLoader 2015-05-05 18:10:21 +03:00
Thiago Marcos P. Santos
f4baa0ba3e Notify data changes using Observer pattern
This pattern, in contrast with callbacks, allows us to clearly see
the dependency and hierarchy between the objects. It will also help
on writing unit tests as we can count how many times a notification
was triggered.
2015-05-05 18:10:20 +03:00
Thiago Marcos P. Santos
4956da61b9 Introduce the ResourceLoader
ResourceLoader will handle all the tile changes and notifications
through the Source object owned by the Style. This object lives
entirely on the Map thread and should be only accessed by it.

The observer will receive notifications every time the tile data changes
and this will probably trigger a new rendering operation.

This first patch will delegate Source loading to the ResourceLoader.
2015-05-05 18:04:54 +03:00
Konstantin Käfer
fab65e75d0 Merge pull request #1380 from mapbox/benchmark
Add benchmarking application for iOS
2015-05-05 12:14:20 +02:00
Konstantin Käfer
5aa0caf5c5 don't trigger cleanups when we're not rendering 2015-05-05 11:53:23 +02:00
Konstantin Käfer
24083c582c [iOS] add benchmarking application 2015-05-05 11:53:20 +02:00
Konstantin Käfer
691c305467 add Map::isFullyLoaded()
returns whether the Map is still loading/parsing any assets or whether everything is there and a render will likely be complete
2015-05-05 11:47:23 +02:00
Konstantin Käfer
248e48eacc decode URLS when loading from file system 2015-05-05 11:47:23 +02:00
Konstantin Käfer
4cf3d4ef9f show failed glyph URL 2015-05-05 11:47:22 +02:00
Konstantin Käfer
286338c978 [iOS] send map rendering notifications 2015-05-05 11:47:22 +02:00
Konstantin Käfer
307ad680ba [iOS] allow calling invalidate() on MGLMapView 2015-05-05 11:47:16 +02:00
Konstantin Käfer
efec7b2c12 Merge pull request #1418 from mapbox/1418-correct-aspect-ratio-after-rotation
Screen stretched on rotation
2015-05-05 11:41:45 +02:00
Konstantin Käfer
63bb10a06b apply the framebuffer size before calling updateMatrices() 2015-05-05 11:16:02 +02:00
John Firebaugh
24a0d77c83 Merge pull request #1419 from mapbox/strict-pause
Ensure no GL commands are executed after pause
2015-05-04 18:40:07 -07:00
John Firebaugh
00a1f44cfc Ensure no GL commands are executed after pause 2015-05-04 18:27:48 -07:00
John Firebaugh
da8aaa2114 Update a couple more spots in README with new requirements 2015-05-04 16:47:05 -07:00
Justin R. Miller
a2e481eb74 Merge pull request #1415 from mapbox/1413-install-ios-docs
refs #1413: provide iOS docs with binary download
2015-05-04 16:42:26 -07:00
Justin R. Miller
150c695177 use brew git to get tag flag needed 2015-05-04 16:28:41 -07:00
Justin R. Miller
33b1b0a47b improvements to source install docs script 2015-05-04 16:07:29 -07:00
Justin R. Miller
af8f060a0d missing docs tuneups 2015-05-04 16:07:16 -07:00
Justin R. Miller
8151a1e17f add HTML docs generation to iOS packaging script 2015-05-04 16:07:08 -07:00
John Firebaugh
b952f7e64b Merge pull request #1412 from mapbox/1309-another-try
Ensure worker tasks are complete before destroying TileData
2015-05-04 15:55:54 -07:00
John Firebaugh
5c7867f435 Join worker tasks before destroying TileData
Fixes #1309
2015-05-04 15:09:19 -07:00